:root {
  --bg: #f3efe6;
  --bg-deep: #e7e0d2;
  --surface: #fffdf8;
  --ink: #14201c;
  --ink-soft: #3d4a44;
  --muted: #6b756f;
  --line: rgba(20, 32, 28, 0.12);
  --brand: #1f4f46;
  --brand-deep: #143832;
  --accent: #c46b2d;
  --accent-soft: #f0d7c2;
  --ok: #2a6b4a;
  --warn: #8a4b1f;
  --radius: 2px;
  --radius-lg: 18px;
  --shadow: 0 18px 50px rgba(20, 32, 28, 0.12);
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Sora", "Helvetica Neue", sans-serif;
  --max: 1180px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(31, 79, 70, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(196, 107, 45, 0.1), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
.brand-name,
.hero-brand {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(243, 239, 230, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    conic-gradient(from 210deg, var(--brand), var(--accent), var(--brand-deep), var(--brand));
  box-shadow: inset 0 0 0 3px var(--bg);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--surface);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-size: 1.15rem;
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a.is-active,
.site-nav a:hover {
  color: var(--brand-deep);
}

.nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.cart-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #f7f3ea;
}

.btn-primary:hover {
  background: var(--brand-deep);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
}

.btn-secondary:hover,
.btn-secondary.is-added {
  background: var(--brand);
  color: #fff;
}

.btn-sm {
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn-ghost {
  background: rgba(255, 253, 248, 0.16);
  border-color: rgba(255, 253, 248, 0.4);
  color: #fffdf8;
}

.btn-ghost:hover {
  background: #fffdf8;
  color: var(--brand-deep);
}

/* Hero */
.hero {
  position: relative;
  height: min(52vh, 520px);
  min-height: 380px;
  max-height: 520px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fffdf8;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 28, 24, 0.78) 0%, rgba(14, 28, 24, 0.45) 48%, rgba(14, 28, 24, 0.25) 100%),
    linear-gradient(0deg, rgba(14, 28, 24, 0.72) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 2.75rem 0 3rem;
  max-width: 40rem;
  animation: riseIn 0.9s ease both;
}

.hero-brand {
  display: block;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  margin: 0 0 0.85rem;
  color: #fffdf8;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0;
  max-width: 28ch;
}

.hero p {
  color: rgba(255, 253, 248, 0.88);
  max-width: 38ch;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-head > div {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.section-head p {
  margin: 0 auto;
  color: var(--muted);
  max-width: 42ch;
}

.notice-strip {
  background: var(--brand-deep);
  color: #f3efe6;
  padding: 1rem 0;
}

.notice-strip p {
  margin: 0;
  font-size: 0.92rem;
  text-align: center;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}

.filter-btn {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.55);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: riseIn 0.6s ease both;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-deep);
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-media img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  background: var(--surface);
  color: var(--brand-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
}

.product-card-body {
  padding: 1rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.product-card-body h3 {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.product-card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.product-card-price {
  margin: 0;
  font-weight: 700;
  color: var(--brand-deep);
}

.stock {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.stock.in {
  color: var(--ok);
}

.stock.out {
  color: var(--warn);
}

.product-card .btn {
  margin-top: auto;
  width: 100%;
}

/* Trust / process */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.process-item {
  padding: 1.5rem 0;
  border-top: 2px solid var(--brand);
}

.process-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.process-item p {
  margin: 0;
  color: var(--muted);
}

/* Product page */
.product-page {
  padding: 2.5rem 0 4rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.product-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
}

.gallery {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.gallery-main {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.gallery-thumbs button {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
}

.gallery-thumbs button.is-active,
.gallery-thumbs button:hover {
  border-color: var(--brand);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.product-price {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--brand-deep);
  margin: 0 0 0.5rem;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
}

.qty-control button {
  width: 44px;
  height: 48px;
  border: 0;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
}

.qty-control input {
  width: 48px;
  height: 48px;
  border: 0;
  text-align: center;
  font-family: inherit;
  font-size: 1rem;
  background: transparent;
}

.disclaimer-box {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  font-size: 0.92rem;
}

.disclaimer-box p {
  margin: 0;
}

.info-panels {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.info-panel {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.info-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-family: var(--font-body);
}

.info-panel p,
.info-panel li {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.specs {
  display: grid;
  gap: 0.55rem;
}

.specs div {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
}

.specs dt {
  color: var(--muted);
}

.specs dd {
  margin: 0;
  font-weight: 500;
}

/* Cart */
.cart-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.cart-list {
  display: grid;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.cart-item img {
  width: 96px;
  height: 96px;
  object-fit: cover;
}

.cart-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-family: var(--font-body);
}

.cart-summary {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.cart-summary h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

.summary-row.total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 1.15rem;
  font-weight: 700;
}

.empty-cart {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
}

/* Pages */
.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.page-hero p {
  margin: 0;
  max-width: 50ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.content-block {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
}

.content-block h2 {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
}

.content-block h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  font-family: var(--font-body);
}

.content-block ul,
.content-block ol {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.content-block li {
  margin-bottom: 0.4rem;
  list-style: disc;
}

.content-block ol li {
  list-style: decimal;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.contact-card {
  padding: 1.25rem 0;
  border-top: 2px solid var(--brand);
}

.contact-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.contact-card p {
  margin: 0;
  color: var(--ink-soft);
}

.map-note {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: var(--brand-deep);
  color: rgba(243, 239, 230, 0.9);
}

.footer-compliance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.25rem 0 0.25rem;
}

.compliance-item {
  margin: 0;
  padding: 0.85rem 0.9rem;
  background: rgba(255, 253, 248, 0.08);
  border: 1px solid rgba(255, 253, 248, 0.14);
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: center;
}

.footer-grid {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 1.5rem;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
  color: #fffdf8;
}

.footer-brand p {
  color: rgba(243, 239, 230, 0.78);
  font-size: 0.92rem;
}

.age-badge {
  display: inline-grid !important;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: 0.75rem !important;
  border: 2px solid rgba(243, 239, 230, 0.7);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fffdf8 !important;
}

.site-footer h3 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fffdf8;
}

.site-footer a {
  color: rgba(243, 239, 230, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer li {
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}

.footer-bottom {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid rgba(255, 253, 248, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(243, 239, 230, 0.65);
}

.footer-bottom p {
  margin: 0;
}

/* Cookie + toast */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: 520px;
  margin-left: auto;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  animation: riseIn 0.4s ease both;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translate(-50%, 12px);
  z-index: 90;
  padding: 0.75rem 1.1rem;
  background: var(--brand-deep);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Legal compact */
.legal-meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-layout,
  .cart-layout,
  .process,
  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    position: static;
  }

  .footer-compliance {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: rgba(243, 239, 230, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-cart {
    border: 0;
    background: transparent;
    padding-left: 0.25rem;
  }

  .hero {
    height: 420px;
    min-height: 360px;
    max-height: 420px;
  }

  .hero-content {
    padding: 2.5rem 0 2.75rem;
  }

  .hero-brand {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .footer-compliance {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 72px 1fr;
  }

  .cart-item > :last-child {
    grid-column: 1 / -1;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-media img {
    transform: none;
  }
}
