@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --brand-cream: #f7f2e8;
  --brand-earth: #5c4a3a;
  --brand-sage: #7a8b6f;
  --brand-clay: #c4a484;
  --brand-dark: #2f261f;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--brand-cream);
  color: var(--brand-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-5, .display-6 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "calt" 0;
}

.site-nav {
  background-color: var(--brand-cream) !important;
}

.navbar-brand,
.nav-link {
  color: var(--brand-dark);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--brand-earth);
}

.hero-section {
  background: linear-gradient(180deg, #efe6d6 0%, var(--brand-cream) 100%);
  padding: 3rem 0;
}

#hero.hero-home {
  background: var(--brand-cream);
  padding: 3.5rem 0;
  min-height: 20rem;
}

.section-pad {
  padding: 3rem 0;
}

.section-alt {
  background-color: #efe6d6;
}

/* Üveggömb galéria: kisebb, de stabil szélesség (flex kártyán belül ne omoljon össze) */
.ornament-gallery,
.shop-ornament-carousel {
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
  flex-shrink: 0;
}

.ornament-gallery .shop-ornament-carousel {
  width: 100%;
}

.ornament-shop-copy {
  max-width: 36rem;
}

.shop-ornament-carousel .carousel-control-prev,
.shop-ornament-carousel .carousel-control-next {
  width: 3rem;
}

.shop-ornament-carousel .carousel-control-prev-icon,
.shop-ornament-carousel .carousel-control-next-icon {
  filter: invert(1) grayscale(100);
}

.card-product-placeholder {
  border-color: var(--brand-clay);
  background-color: #fff;
}

.checkout-fieldset-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.checkout-option {
  border: 1px solid var(--brand-clay);
  border-radius: 0.375rem;
  padding: 0.65rem 0.85rem;
  background-color: #fff;
}

.checkout-option .form-check-label {
  width: 100%;
}

.checkout-option-price {
  font-weight: 600;
  white-space: nowrap;
}

.social-follow-btn .bi-instagram {
  color: #E1306C;
}

.social-follow-btn .bi-facebook {
  color: #1877F2;
}

.order-success-bank .font-monospace {
  letter-spacing: 0.02em;
}

#order-success-modal .modal-content {
  background-color: var(--brand-cream, #faf8f5);
}

#order-success-panel:not(.d-none) {
  display: block !important;
}

.order-summary {
  background: #fff;
  color: #3d342c;
  border-radius: 0.375rem;
  padding: 0.75rem 0.9rem;
  margin: 0.75rem 0;
}

#cart-checkout.checkout-transfer-only > form,
#cart-checkout.checkout-transfer-only > h2,
#cart-checkout.checkout-transfer-only > p,
#cart-checkout.checkout-transfer-only > #order-form-success {
  display: none;
}

.order-transfer-box {
  border: 1px solid rgba(92, 64, 51, 0.2);
  border-radius: 0.5rem;
  padding: 1rem 1.1rem;
  background-color: #fff;
}

.site-footer {
  background-color: #efe6d6;
  margin-top: auto;
}

.site-footer a {
  color: var(--brand-earth);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.btn-brand {
  background-color: var(--brand-earth);
  border-color: var(--brand-earth);
  color: #fff;
}

.btn-brand:hover {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.btn-hero-cta {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background-color: var(--brand-cream);
  color: var(--brand-dark);
  border: 1px solid var(--brand-clay);
  border-radius: 0;
  padding: 0.875rem 2.5rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-hero-cta:hover,
.btn-hero-cta:focus {
  background-color: #efe6d6;
  border-color: var(--brand-earth);
  color: var(--brand-dark);
}

.collection-tile {
  min-height: 140px;
  background-color: #fff;
  border: 1px solid var(--brand-clay);
  border-radius: 0.5rem;
}

.collection-tile-photo {
  min-height: 160px;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  font-weight: 600;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-prose p {
  line-height: 1.75;
  margin-bottom: 1.15rem;
}

.about-prose p:last-child {
  margin-bottom: 0;
}

.about-signature {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--brand-earth);
  text-align: right;
  margin-top: 2rem;
  margin-bottom: 0;
}

/* —— Kezdőlap hero design előnézet (home-hero-previews.html) —— */
.hero-preview-label {
  margin: 0;
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-earth);
  background: #e8dfd0;
}

.hero-preview-label span {
  display: inline-block;
  min-width: 1.5rem;
  margin-right: 0.35rem;
  font-weight: 700;
}

.hero-preview-block + .hero-preview-block {
  border-top: 3px solid var(--brand-clay);
}

.hero-v-mosaic {
  background: var(--brand-cream);
  padding: 3.5rem 0;
  min-height: 22rem;
}

.hero-v-mosaic .hero-content-panel {
  background: rgba(255, 252, 247, 0.94);
  border: 1px solid rgba(196, 164, 132, 0.5);
  padding: 2rem 2.25rem;
  box-shadow: 0 1rem 2.5rem rgba(47, 38, 31, 0.08);
}

.hero-content-panel-glass {
  backdrop-filter: blur(8px);
  background: rgba(255, 252, 247, 0.88) !important;
}

/* A: rács */
.hero-mosaic-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  pointer-events: none;
}

.hero-mosaic-grid > span {
  background-size: cover;
  background-position: center;
  opacity: 0.78;
  filter: saturate(0.95) contrast(1.02);
}

.hero-veil-a {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(247, 242, 232, 0.88) 0%,
    rgba(247, 242, 232, 0.42) 42%,
    rgba(239, 230, 214, 0.55) 100%
  );
  pointer-events: none;
}

.hero-v-a .hero-content-panel-a {
  max-width: 26rem;
  margin-inline: auto;
  padding: 1.5rem 1.65rem;
}

.hero-v-a .hero-content-panel-a .display-5 {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
}

.hero-v-a .hero-content-panel-a .lead {
  font-size: 1.05rem;
  margin-bottom: 1.25rem !important;
}

/* A2 – nyitott szöveg */
.hero-veil-a-left {
  background: linear-gradient(
    90deg,
    rgba(247, 242, 232, 0.94) 0%,
    rgba(247, 242, 232, 0.78) 38%,
    rgba(247, 242, 232, 0.28) 62%,
    rgba(239, 230, 214, 0.2) 100%
  ) !important;
}

.hero-text-plain {
  max-width: 28rem;
  text-shadow: 0 1px 0 rgba(255, 252, 247, 0.9), 0 2px 12px rgba(247, 242, 232, 0.85);
}

.hero-v-a2 .display-5,
.hero-v-a2 .lead {
  text-shadow: 0 0 1px rgba(255, 252, 247, 1), 0 2px 18px rgba(247, 242, 232, 0.95);
}

/* A3 – bal sín */
.hero-text-rail {
  max-width: 30rem;
  margin-inline: auto;
  padding: 1.35rem 1.5rem 1.35rem 1.25rem;
  border-left: 3px solid var(--brand-clay);
  background: linear-gradient(
    90deg,
    rgba(255, 252, 247, 0.9) 0%,
    rgba(255, 252, 247, 0.55) 75%,
    rgba(255, 252, 247, 0) 100%
  );
}

.hero-text-rail .lead {
  font-size: 1.05rem;
}

/* A4 – cím chip */
.hero-text-split {
  max-width: 32rem;
  margin-inline: auto;
}

.hero-title-chip {
  display: inline-block;
  padding: 0.35rem 0.75rem 0.5rem;
  background: rgba(255, 252, 247, 0.92);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  line-height: 1.35;
}

.hero-lead-float {
  max-width: 28rem;
  margin-inline: auto;
  text-shadow: 0 1px 0 rgba(255, 252, 247, 0.85), 0 2px 14px rgba(247, 242, 232, 0.8);
}

@media (min-width: 992px) {
  .hero-text-split {
    margin-inline: 0;
  }

  .hero-lead-float {
    margin-inline: 0;
  }
}

/* B: szétszórt */
.hero-scatter {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-scatter-item {
  position: absolute;
  width: 26%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  border-radius: 0.35rem;
  opacity: 0.62;
  filter: saturate(0.92);
  box-shadow: 0 0.5rem 1.5rem rgba(47, 38, 31, 0.12);
}

.hero-scatter-item:nth-child(1) { top: 8%; left: 4%; transform: rotate(-4deg); }
.hero-scatter-item:nth-child(2) { top: 12%; right: 6%; width: 22%; transform: rotate(3deg); }
.hero-scatter-item:nth-child(3) { top: 42%; left: 10%; width: 20%; transform: rotate(2deg); }
.hero-scatter-item:nth-child(4) { bottom: 10%; left: 28%; width: 24%; transform: rotate(-2deg); }
.hero-scatter-item:nth-child(5) { top: 38%; right: 12%; width: 28%; transform: rotate(-5deg); }
.hero-scatter-item:nth-child(6) { bottom: 18%; right: 4%; width: 18%; transform: rotate(4deg); }
.hero-scatter-item:nth-child(7) { top: 58%; left: 42%; width: 16%; transform: rotate(1deg); }
.hero-scatter-item:nth-child(8) { bottom: 6%; right: 32%; width: 20%; transform: rotate(-3deg); }

.hero-veil-b {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 65% at 50% 48%,
    rgba(247, 242, 232, 0.82) 0%,
    rgba(247, 242, 232, 0.38) 55%,
    rgba(247, 242, 232, 0.18) 100%
  );
  pointer-events: none;
}

/* C: filmszalag */
.hero-v-c {
  padding: 0 !important;
  min-height: auto;
}

.hero-filmstrip {
  display: flex;
  height: 13rem;
  overflow: hidden;
  filter: saturate(0.92);
}

.hero-filmstrip > span {
  flex: 1 1 0;
  min-width: 5rem;
  background-size: cover;
  background-position: center;
  opacity: 0.92;
}

.hero-filmstrip-veil {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 13rem;
  background: linear-gradient(
    180deg,
    rgba(247, 242, 232, 0.12) 0%,
    rgba(247, 242, 232, 0.45) 55%,
    rgba(247, 242, 232, 0.78) 100%
  );
  pointer-events: none;
}

.hero-v-c-copy {
  background: var(--brand-cream);
  padding-top: 2.5rem !important;
  padding-bottom: 3rem !important;
}

@media (max-width: 767.98px) {
  .hero-mosaic-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }

  .hero-scatter-item {
    opacity: 0.52;
  }

  .hero-v-mosaic .hero-content-panel {
    padding: 1.5rem 1.25rem;
  }

  .hero-filmstrip {
    height: 9.5rem;
  }

  .hero-filmstrip-veil {
    height: 9.5rem;
  }
}

.product-img-wrap {
  overflow: hidden;
}

.product-card-carousel .carousel-control-prev,
.product-card-carousel .carousel-control-next {
  width: 2rem;
}

.product-card-carousel .carousel-control-prev-icon,
.product-card-carousel .carousel-control-next-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.owner-placeholder {
  background-color: #fff3cd;
  padding: 0 0.2em;
  border-radius: 0.15rem;
}

/* Welcome snow (snow-intro.js) */
.snow-intro-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1070;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.8s ease;
}

.snow-intro-layer.is-fading {
  opacity: 0;
}

.snow-intro-flake {
  position: absolute;
  top: -3vh;
  display: block;
  line-height: 1;
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-variant-emoji: text;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 1),
    0 0 3px rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(47, 38, 31, 0.12);
  /* Ne Apple Color Emoji – mobilon kék „hó” emoji lenne */
  font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', 'Symbola', sans-serif;
  user-select: none;
  animation-name: snow-intro-fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  will-change: transform;
}

@keyframes snow-intro-fall {
  from {
    transform: translate3d(0, 0, 0) rotate(var(--snow-rot-start, 0deg));
  }
  to {
    transform: translate3d(var(--snow-drift, 0), 105vh, 0)
      rotate(calc(var(--snow-rot-start, 0deg) + 220deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .snow-intro-layer {
    display: none !important;
  }
}

.cookie-consent-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1080;
  background-color: #fff;
  border-top: 1px solid var(--brand-clay);
  box-shadow: 0 -4px 12px rgba(47, 38, 31, 0.08);
}

body.cookie-banner-visible {
  padding-bottom: 5.5rem;
}

/* HU | EN nyelvváltó – mobilon a menü gomb mellett, asztali nézetben a menü jobb végén */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  margin-right: 0.75rem;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--brand-dark);
}

.lang-switch a {
  color: inherit;
  text-decoration: none;
  opacity: 0.55;
}

.lang-switch a:hover,
.lang-switch a:focus {
  color: var(--brand-earth);
  opacity: 1;
}

.lang-switch a.active {
  font-weight: 600;
  opacity: 1;
}

.lang-switch-sep {
  opacity: 0.4;
}

@media (min-width: 992px) {
  .site-nav .navbar-collapse {
    order: 2;
  }

  .site-nav .lang-switch {
    order: 3;
    margin-left: 1rem;
    margin-right: 0;
  }
}
