/* ------------------------------
   Global Reset & Base Styles
------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: #A85E27;
  color: #f0f0f0;
}

a {
  color: #f0f0f0;
}

/* ------------------------------
   Age Gate Modal
------------------------------ */
.age-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.age-gate-content {
  background-color: #333;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}
.age-gate-content h1 {
  margin-bottom: 1rem;
}
.age-gate-content p {
  margin-bottom: 1.5rem;
}
.age-gate-content button {
  background-color: #A85E27;
  border: none;
  padding: 0.8rem 1.2rem;
  margin: 0.5rem;
  color: #f0f0f0;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

/* ------------------------------
   Header & Hamburger Menu
------------------------------ */
.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;
  cursor: pointer;
}
.hamburger div {
  width: 30px;
  height: 3px;
  background-color: #f0f0f0;
  margin: 5px 0;
  transition: 0.4s;
}
.menu-overlay {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100%;
  background-color: #333;
  padding-top: 60px;
  transition: right 0.3s ease;
  z-index: 1050;
  text-align: center;
}
.menu-overlay.open {
  right: 0;
}
.menu-overlay a {
  display: block;
  padding: 15px;
  color: #f0f0f0;
  text-decoration: none;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.menu-overlay a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.menu-overlay .submenu-toggle {
  width: 100%;
  padding: 15px;
  background: none;
  border: none;
  color: #f0f0f0;
  font-size: 1.1rem;
  text-align: center;
  cursor: pointer;
}
.menu-overlay .submenu-toggle {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.menu-overlay .submenu-toggle:hover,
.menu-overlay .submenu-toggle:focus {
  background-color: rgba(255, 255, 255, 0.1);
  outline: none;
}
.menu-overlay .submenu {
  background-color: rgba(255, 255, 255, 0.05);
}
.menu-overlay .submenu a {
  padding-left: 30px;
  font-size: 1rem;
}

/* ------------------------------
   Content & Page Layout
------------------------------ */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  padding-bottom: 100px; /* extra space so content is not hidden behind footer */
  min-height: calc(100vh - 60px);
  text-align: center;
}
img.main-image {
  max-width: 100%;
  height: auto;
  max-height: 70vh; /* index hero trimmed so CTA stays visible */
  padding: 1rem;
}

img.etiket-image {
  max-width: 100%;
  height: auto;
  max-height: 50vh; /* image takes up to 80% of viewport height */
  padding: 1rem;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.page-content ul,
.page-content ol {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0 0;
}

.page-content li + li {
  margin-top: 0.85rem;
}

.page-content img.responsive {
  max-width: 100%;
  height: auto;
  padding: 1rem;
}

.products-page {
  max-width: 1050px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  width: 100%;
  margin-top: 2rem;
}

.fixed-products-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.custom-product-grid {
  grid-template-columns: minmax(0, 1fr);
}

.product-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: left;
  box-shadow: 0 18px 38px rgba(55, 25, 5, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.standard-card,
.gift-example {
  cursor: pointer;
}

.standard-card {
  display: flex;
  flex-direction: column;
}

.product-copy {
  position: relative;
  z-index: 1;
}

.product-card h2 {
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
}

.product-card p {
  margin: 0.45rem 0 0;
}

.product-visual {
  position: relative;
  height: 240px;
  margin: -1.5rem -1.5rem 1.2rem;
  border-radius: 14px 14px 28px 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 247, 236, 0.3), rgba(255, 250, 244, 0.06)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.32), transparent 36%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.product-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(77, 33, 8, 0.18));
  pointer-events: none;
}

.product-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform-origin: center;
  transition: transform 0.35s ease;
}

.product-card:hover .product-image {
  transform: scale(1.04);
}

.image-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: rgba(106, 50, 13, 0.78);
  font-size: 0.95rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.45), transparent 36%),
    linear-gradient(160deg, rgba(255, 248, 239, 0.56), rgba(255, 255, 255, 0.2));
}

.product-visual.image-missing .image-fallback {
  display: flex;
}

.product-detail {
  display: block;
  color: rgba(240, 240, 240, 0.75);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-price {
  display: block;
  margin-top: 1rem;
  font-size: 1.6rem;
  font-weight: bold;
}

.product-card.note-card {
  background: linear-gradient(145deg, rgba(255, 248, 239, 0.3), rgba(255, 255, 255, 0.14));
}


.custom-card {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: center;
}

.custom-card .product-visual {
  height: 360px;
  margin: 0;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.custom-card .product-visual::after {
  height: 28%;
}

.custom-card .product-image {
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.02);
}

.custom-card .product-copy {
  padding-right: 0.5rem;
}

.custom-card h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.custom-card p {
  max-width: 42ch;
}

@media (min-width: 901px) {
  .custom-card {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  }
}

.gift-product-grid {
  grid-template-columns: minmax(0, 1fr);
}

.gift-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gift-card .gift-header,
.gift-card .gift-examples,
.gift-card .product-price {
  position: relative;
  z-index: 1;
}

.gift-card h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.gift-card .gift-header p {
  margin: 0;
}

.gift-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.gift-example {
  display: flex;
  flex-direction: column;
}

.gift-example h3 {
  font-size: 1.1rem;
  margin: 0.85rem 0 0.4rem;
}

.gift-example > p {
  margin: 0;
}

.gift-card .gift-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
}

.gift-card .gift-list li + li {
  margin-top: 0.4rem;
}

.gift-visual {
  position: relative;
  height: 240px;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 247, 236, 0.3), rgba(255, 250, 244, 0.06)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.32), transparent 36%);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.gift-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(77, 33, 8, 0.18));
  pointer-events: none;
}

.gift-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

.gift-example:hover .gift-image {
  transform: scale(1.04);
}

.gift-visual.image-missing .image-fallback {
  display: flex;
}

.gift-card .product-price {
  margin-top: 0.5rem;
}

.home-hero {
  gap: 1rem;
  padding-bottom: 160px; /* keeps hero CTAs clear of fixed footer */
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cta-buttons a {
  background-color: #333;
  color: #f0f0f0;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid transparent;
}

.cta-buttons a:hover,
.cta-buttons a:focus {
  border-color: rgba(240, 240, 240, 0.4);
}

#calendar iframe {
  border: 0;
  width: 100%;
  height: 50vh;
  max-height: 600px; /* Adjust height as needed */
}


/* ------------------------------
   Footer
------------------------------ */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #333;
  padding: 1rem 0;
  text-align: center;
  z-index: 1000;
}
.footer-content {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}
.footer-content a {
  display: inline-block;
}
.footer-content img {
  width: 32px;
  height: 32px;
}
.footer-note {
  font-style: italic;
  font-size: 0.9rem;
}

/* ------------------------------
   Responsive Adjustments
------------------------------ */
@media (max-width: 600px) {
  .hamburger div {
    width: 25px;
  }
  .menu-overlay {
    width: 200px;
  }
  .page-content {
    padding: 0 1rem;
  }
}

@media (max-width: 900px) {
  .fixed-products-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .custom-card {
    grid-template-columns: 1fr;
  }

  .custom-card .product-visual {
    min-height: 220px;
  }
}

@media (max-width: 700px) {
  .products-grid {
    gap: 1rem;
  }

  .fixed-products-grid,
  .custom-product-grid {
    grid-template-columns: 1fr;
  }

  .standard-card,
  .custom-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    text-align: left;
  }

  .standard-card .product-visual,
  .custom-card .product-visual {
    height: 132px;
    min-height: 132px;
    margin: 0;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .standard-card .product-visual::after,
  .custom-card .product-visual::after {
    height: 22%;
  }

  .standard-card:hover .product-image,
  .custom-card:hover .product-image {
    transform: scale(1.04);
  }

  .standard-card .product-copy,
  .custom-card .product-copy {
    padding-right: 0;
  }

  .custom-card h2,
  .standard-card h2 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
  }

  .custom-card p,
  .standard-card p {
    max-width: none;
  }

  .product-detail {
    font-size: 0.85rem;
  }

  .product-price {
    margin-top: 0.75rem;
    font-size: 1.15rem;
  }

  .gift-examples {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gift-card {
    gap: 1rem;
  }

  .gift-card h2 {
    font-size: 1.4rem;
  }

  .gift-example {
    width: 100%;
  }

  .gift-example > .gift-visual {
    width: 100%;
    max-width: 320px;
    height: 200px;
    margin: 0 auto;
  }
}

/* ------------------------------
   Image Gallery Modal
------------------------------ */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  height: 100dvh; /* dynamic viewport for mobile Safari */
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.85);
  padding-top: 40px;
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
}

.gallery-modal-content {
  position: relative;
  margin: 60px auto 40px auto;
  padding: 20px;
  max-width: 90%;
  text-align: center;
  background-color: transparent;
}

.gallery-images img {
  max-width: 100%;
  max-height: 80vh;
  margin: 10px auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(255,255,255,0.3);
}

.gallery-close {
  position: absolute;
  top: 10px;
  right: 20px;
  background: #A85E27;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}
