/* ============================
   Zlatna Košnica — Custom styles
   ============================ */

html { scroll-behavior: smooth; }
body { font-feature-settings: "kern", "liga"; }

/* Selection */
::selection { background: #C89B3C; color: #F5EFE6; }

/* ---------- Header ---------- */
#site-header { background: rgba(245, 239, 230, 0); backdrop-filter: blur(0); }
#site-header.scrolled {
  background: rgba(245, 239, 230, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(200, 155, 60, 0.15);
}

/* ---------- Language buttons ---------- */
.lang-btn { color: #3A2E2A; opacity: 0.55; }
.lang-btn.active { background: #C89B3C; color: #F5EFE6; opacity: 1; }
.lang-btn:hover { opacity: 1; }

/* ---------- Hero patterns ---------- */
.hero-pattern {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(200, 155, 60, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(102, 112, 86, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(221, 208, 188, 0.40) 0%, transparent 70%);
}

.values-pattern {
  background-image:
    radial-gradient(circle at 10% 20%, #C89B3C 1px, transparent 1px),
    radial-gradient(circle at 60% 80%, #C89B3C 1px, transparent 1px);
  background-size: 60px 60px, 80px 80px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Scroll indicator bounce ---------- */
@keyframes gentle-bounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.8; }
  50%      { transform: translate(-50%, 6px); opacity: 1; }
}
.animate-bounce-slow { animation: gentle-bounce 2.4s ease-in-out infinite; }

/* ---------- Product cards ---------- */
.product-card {
  background: #F5EFE6;
  border: 1px solid rgba(200, 155, 60, 0.18);
  padding: 1.75rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -20px rgba(58, 46, 42, 0.25);
  border-color: rgba(200, 155, 60, 0.5);
}

.product-image {
  background: linear-gradient(180deg, rgba(221, 208, 188, 0.4) 0%, rgba(245, 239, 230, 0.2) 100%);
  padding: 1.5rem;
  margin: -0.5rem -0.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
}
.product-image img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.product-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  line-height: 1.25;
  color: #3A2E2A;
  letter-spacing: 0.01em;
}

.product-volume {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #C89B3C;
  margin-top: 0.4rem;
}

.product-desc {
  margin-top: 0.85rem;
  color: rgba(58, 46, 42, 0.75);
  font-size: 0.92rem;
  line-height: 1.55;
  flex-grow: 1;
}

.product-ingredients {
  margin-top: 1rem;
  border-top: 1px solid rgba(200, 155, 60, 0.2);
  padding-top: 0.8rem;
}
.product-ingredients summary {
  cursor: pointer;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #667056;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-ingredients summary::-webkit-details-marker { display: none; }
.product-ingredients summary::after {
  content: "+";
  font-size: 1rem;
  color: #C89B3C;
  transition: transform 0.3s ease;
}
.product-ingredients[open] summary::after { content: "−"; }
.product-ingredients p {
  margin-top: 0.7rem;
  color: rgba(58, 46, 42, 0.7);
  font-size: 0.85rem;
  line-height: 1.55;
  font-style: italic;
}

.product-badges {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(200, 155, 60, 0.35);
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #667056;
  background: rgba(245, 239, 230, 0.5);
}
.product-badge svg { width: 12px; height: 12px; stroke: #C89B3C; flex-shrink: 0; }

.product-cta {
  margin-top: 1.5rem;
  display: inline-block;
  text-align: center;
  padding: 0.85rem 1.5rem;
  border: 1px solid #C89B3C;
  color: #3A2E2A;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}
.product-cta:hover { background: #C89B3C; color: #F5EFE6; }

/* ---------- Form inputs ---------- */
input, textarea {
  font-family: 'Montserrat', sans-serif;
  color: #3A2E2A;
}

/* ---------- Mobile menu ---------- */
#mobile-menu.open { display: block; }

/* ---------- Smooth fade on language switch ---------- */
[data-i18n] { transition: opacity 0.2s ease; }
.lang-changing [data-i18n] { opacity: 0.4; }

/* ---------- Collections ---------- */
.collection-header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}
.collection-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border: 1px solid rgba(200, 155, 60, 0.4);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 239, 230, 0.6);
}
.collection-icon svg { width: 36px; height: 36px; }

.collection-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.25rem;
  letter-spacing: 0.05em;
  color: #3A2E2A;
}
.collection-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #667056;
  margin-top: 0.5rem;
}
.collection-header::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: #C89B3C;
  margin: 1.25rem auto 0;
}

.collection-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 360px);
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}
.collection-grid > .product-card { width: 100%; }

@media (min-width: 640px) {
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 340px));
  }
}
@media (min-width: 1024px) {
  .collection-grid {
    grid-template-columns: repeat(3, minmax(0, 340px));
    gap: 2.5rem;
  }
}

.product-card-soon {
  background: rgba(245, 239, 230, 0.5);
  border-style: dashed;
  border-color: rgba(200, 155, 60, 0.35);
  opacity: 0.92;
}
.product-card-soon:hover { transform: translateY(-2px); }
.product-card-soon .product-image {
  background: transparent;
  border: 1px dashed rgba(200, 155, 60, 0.25);
  border-radius: 4px;
}

/* ---------- Brand pillars strip ---------- */
.pillar { text-align: center; }
.pillar-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.85rem;
  border: 1px solid rgba(200, 155, 60, 0.35);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}
.pillar:hover .pillar-icon {
  transform: translateY(-3px);
  border-color: #C89B3C;
  background: rgba(200, 155, 60, 0.08);
}
.pillar-icon svg { width: 28px; height: 28px; }
.pillar-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #3A2E2A;
}

/* ---------- Thank-you card ---------- */
.thank-you-card {
  position: relative;
  max-width: 460px;
  background: rgba(221, 208, 188, 0.35);
  border: 1px solid rgba(200, 155, 60, 0.3);
  padding: 3rem 2.5rem 2.5rem;
  text-align: center;
}
.thank-you-seal {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  box-shadow: 0 6px 20px -8px rgba(200, 155, 60, 0.6);
  border-radius: 999px;
}
.thank-you-seal svg { width: 100%; height: 100%; display: block; }

/* ---------- Footer value pills ---------- */
.value-pill {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 239, 230, 0.85);
}
.value-pill-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ---------- Photo swap states ---------- */
.product-image img.is-photo {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}
.has-photo-cover img,
.has-photo-cover p {
  display: none;
}
.has-photo-cover {
  background-color: transparent !important;
}

/* ---------- Misc ---------- */
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #C89B3C;
  outline-offset: 3px;
}
