/* ===== ALAP ===== */

html, body {
  margin: 0;
  padding: 0;
  background-color: rgb(51, 56, 58);  /* Impact háttér */
  color: #333;
  font-family: Arial, Helvetica, sans-serif;
}


/* OLDAL HÁTTÉR */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #e9e9e9;
  color: #333;
}

/* FIX BANNER */
/* BANNER KÜLSŐ (OLDALSÁV) */
.header-outer {
  background-color: rgb(51, 56, 58);  /* SÖTÉTSZÜRKE */
}

/* FIX BANNER */
.landing-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  background-color: rgb(51, 56, 58);
  border-bottom: 1px solid #222;
}


/* BANNER BELSEJE = FEHÉR, KÖZÉPEN */
.header-inner {
  background: #ffffff;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}


/* FEHÉR OLDALTARTALOM */
.page-inner {
  background: #ffffff;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 0;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}


/* TARTALOM LEJJEBB A FIX BANNER MIATT */
.landing-main {
  padding-top: 200px;   /* banner magasság */
  background-color: rgb(51, 56, 58);  /* OLDALSÁV */
}


.landing-main {
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}


/* ===== FIX BANNER ===== */

.banner-link {
  display: block;
}

.banner-wrapper {
  position: relative;
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 180px;
  object-fit: cover;
  transition: filter 0.3s ease;
}

/* Sötétítés */
.banner-wrapper:hover .banner-image {
  filter: brightness(70%);
}

/* Hint szöveg */
.banner-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Hint megjelenik hoverre */
.banner-wrapper:hover .banner-hint {
  opacity: 1;
}


/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

/* ===== CELLÁK ===== */
.grid-item {
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;   /* float clearing */
  text-align: justify;
   position: relative;   /* kell az abszolút gombhoz */
  padding: 15px;
  padding-bottom: 55px; /* hely a gombnak!!! */
}


.grid-item .buy-btn {
  position: absolute;
  left: 250px;
  bottom: 0px;
  z-index: 2;  /* fölötte legyen mindennek */
}


/* KÉP – valódi körbefolyás */
.grid-image {
  float: left;
  width: 120px;
  height: 120px;
  object-fit: cover;
  margin: 0 15px 15px 0;
}


/* SZÖVEG + GOMB */
.grid-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* gomb mindig a cella alján */
  overflow: hidden;               /* a szöveg körbefolyik a kép mellett */
  min-height: 120px;    
}

/* GOMB */
.grid-content .btn {
  position: absolute;
  left: 0;
  bottom: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {

  .landing-banner {
    position: fixed;
    height: 110px;          /* <-- EZ A KULCS */
  }

  .banner-wrapper {
    height: 110px;
    overflow: hidden;
  }

  .banner-image {
    height: 100%;
    width: 100%;
    object-fit: cover;     /* kitölti, de nem nő túl */
    max-height: none !important;
  }

  .landing-main {
    padding-top: 120px;    /* igazodjon a kisebb bannerhez */
  }

  .banner-hint {
    font-size: 13px;
    padding: 6px 10px;
  }

}




/* ===== GOMB ===== */
.btn {
  display: inline-block;
  background: #1e73be;   /* Impact-szerű kék */
  color: #fff;
  padding: 10px 20px;
  border-radius: 3px;
  font-weight: bold;
  text-decoration: none;
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 20px;
}

.btn:hover {
  opacity: 0.9;
}

.qr-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

.qr-modal-content {
  background: #fff;
  max-width: 400px;
  margin: 10% auto;
  padding: 25px;
  border-radius: 6px;
  text-align: center;
  position: relative;
}

.qr-image {
  max-width: 250px;
  width: 100%;
  margin: 15px auto;
  display: block;
}

.qr-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 26px;
  cursor: pointer;
}

/* ===== MOBIL BANNER HARD FIX ===== */
@media (max-width: 768px) {

  .landing-banner {
    height: 110px !important;
    overflow: hidden !important;
  }

  .header-outer,
  .header-inner {
    height: 110px !important;
    overflow: hidden !important;
  }

  .banner-wrapper {
    height: 110px !important;
    overflow: hidden !important;
  }

  .banner-image {
    width: 100% !important;
    height: 110px !important;
    max-height: 110px !important;
    object-fit: cover !important;
    display: block !important;
  }

  .landing-main {
    padding-top: 120px !important;
  }

}
/* ===== BANNER KATTINTÁS + MOBIL FIX ===== */

.banner-link {
  display: block;
}

/* MOBILON KÉNYSZERÍTETT MAGASSÁG */
@media (max-width: 768px) {

  .landing-banner {
    height: 110px !important;
    overflow: hidden !important;
  }

  .header-outer,
  .header-inner,
  .banner-link,
  .banner-wrapper {
    height: 110px !important;
    max-height: 110px !important;
    overflow: hidden !important;
  }

  .banner-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  .banner-hint {
    display: none !important; /* mobilon nincs hover → csak gondot okoz */
  }

  .landing-main {
    padding-top: 120px !important;
  }
}
/* ===== MOBIL GRID: 1 OSZLOP ===== */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 768px) {
  /* Grid cellákban a gombok mobilon egymás alatt legyenek */
  .grid-item .btn {
    position: static !important;  /* ne absolute */
    display: block;
    margin: 10px auto 0 auto;     /* középre igazítás, felül 10px, alul 0 */
    transform: none;               /* az abszolút translateX törlése */
  }

  /* Ha a cella belső flex-et használ */
  .grid-content {
    justify-content: flex-start;  /* gombokat ne erőltessük a cella aljára */
  }
}
@media (max-width: 768px) {
  .grid-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .grid-item .btn {
    position: static;      /* ne absolute */
    display: inline-block; /* ne block, csak a tartalom szélessége */
    margin: 10px 0 0 0;    /* csak felül 10px, balra 0 */
    width: auto;           /* ne nyúljon végig a cellán */
    padding: 10px 20px;    /* opcionális: vizuális padding */
  }
}