@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ivory:      #FAF8F4;
  --cream:      #EFE8DC;
  --terra:      #C4714A;
  --terra-lt:   #D8926E;
  --terra-dk:   #9E5A38;
  --sage:       #7A9C76;
  --sage-lt:    #A8C4A4;
  --dark:       #1E1610;
  --dark-m:     #4A3728;
  --dark-l:     #7A6558;
  --border:     rgba(30,22,16,.10);
  --border-m:   rgba(30,22,16,.20);
  --shadow:     0 2px 24px rgba(30,22,16,.08);
  --r:          4px;
  --font-disp:  'Cormorant Garamond', Georgia, serif;
  --font-body:  'Jost', sans-serif;
  --ease:       cubic-bezier(.22,.68,0,1.2);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* Subtle grain texture */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

/* ── Typography ───────────────────────────────────── */
.disp { font-family: var(--font-disp); }

h1, h2, h3 { font-family: var(--font-disp); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.6rem; }

.label {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dark-l);
}

/* ── Navigation ───────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(250,248,244,.88);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}

nav.scrolled { box-shadow: var(--shadow); }

.nav-logo {
  font-family: var(--font-disp);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--dark);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dark-m);
  transition: color .2s;
}
.nav-links a:hover { color: var(--terra); }

.nav-right { display: flex; align-items: center; gap: 1.5rem; }

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dark-m);
  transition: color .2s;
}
.cart-btn:hover { color: var(--terra); }

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: var(--terra);
  color: white;
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 500;
}
.cart-count.hidden { display: none; }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 2.5rem;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: var(--r);
  transition: all .22s var(--ease);
  cursor: pointer;
}

.btn-primary {
  background: var(--dark);
  color: white;
  border: 1.5px solid var(--dark);
}
.btn-primary:hover {
  background: var(--terra);
  border-color: var(--terra);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--border-m);
}
.btn-outline:hover {
  border-color: var(--dark);
  transform: translateY(-1px);
}

.btn-terra {
  background: var(--terra);
  color: white;
  border: 1.5px solid var(--terra);
}
.btn-terra:hover {
  background: var(--terra-dk);
  border-color: var(--terra-dk);
  transform: translateY(-1px);
}

.btn-full { width: 100%; }

.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── Hero ─────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 72px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 3rem 5rem 5rem;
}

.hero-text h1 {
  font-weight: 300;
  font-style: italic;
  color: var(--dark);
  margin: .75rem 0 1.5rem;
}

.hero-text p {
  font-size: 1rem;
  color: var(--dark-m);
  max-width: 38ch;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-img {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}
.hero-img:hover img { transform: scale(1.04); }

.hero-badge {
  position: absolute;
  bottom: 2.5rem; left: 2.5rem;
  background: rgba(250,248,244,.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: .75rem 1.25rem;
}

/* ── Section ──────────────────────────────────────── */
section { padding: 6rem 5rem; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
}

/* ── Product Grid ─────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  animation: fadeUp .5s var(--ease) both;
}

.product-card-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--cream);
  margin-bottom: 1.1rem;
  position: relative;
}

.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.product-card:hover .product-card-img img { transform: scale(1.06); }

.product-tag {
  position: absolute;
  top: .75rem; left: .75rem;
  background: var(--terra);
  color: white;
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 2px;
}

.product-card-info { padding: 0 .25rem; }

.product-name {
  font-family: var(--font-disp);
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: .25rem;
}
.product-desc {
  font-size: .82rem;
  color: var(--dark-l);
  line-height: 1.6;
  margin-bottom: .75rem;
}
.product-price {
  font-size: .95rem;
  font-weight: 500;
  color: var(--dark);
}
.product-price .orig {
  text-decoration: line-through;
  color: var(--dark-l);
  font-weight: 300;
  margin-left: .5rem;
  font-size: .85rem;
}

.product-actions {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
}

/* ── Product Detail ───────────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  padding-top: calc(72px + 4rem);
  min-height: 100svh;
}

.product-gallery { position: sticky; top: calc(72px + 2rem); height: fit-content; }

.product-gallery-main {
  aspect-ratio: 4/5;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--cream);
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.product-info { padding: 4rem 5rem 4rem 0; }
.product-info .label { margin-bottom: 1rem; }
.product-info h1 { font-size: clamp(2rem, 3vw, 2.8rem); margin-bottom: 1rem; }
.product-info .price { font-size: 1.4rem; font-weight: 300; margin-bottom: 2rem; color: var(--dark-m); }
.product-info .desc { color: var(--dark-m); line-height: 1.9; margin-bottom: 2rem; }

.qty-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.qty-btn {
  width: 36px; height: 36px;
  border: 1.5px solid var(--border-m);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--dark-m);
  cursor: pointer;
  transition: all .2s;
}
.qty-btn:hover { border-color: var(--dark); color: var(--dark); }
.qty-num { font-size: 1rem; font-weight: 500; min-width: 2rem; text-align: center; }

.product-features {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 2rem;
}
.feature { display: flex; gap: 1rem; margin-bottom: 1rem; align-items: flex-start; }
.feature-icon { color: var(--sage); font-size: 1.1rem; margin-top: .1rem; flex-shrink: 0; }
.feature-text { font-size: .85rem; color: var(--dark-m); }
.feature-text strong { color: var(--dark); display: block; margin-bottom: .1rem; font-weight: 500; }

/* ── About Strip ──────────────────────────────────── */
.about-strip {
  background: var(--dark);
  color: white;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.about-strip-item {
  padding: 4rem 3rem;
  border-right: 1px solid rgba(255,255,255,.08);
  text-align: center;
}
.about-strip-item:last-child { border-right: none; }
.about-strip-item h3 { font-size: 2.2rem; font-weight: 300; color: var(--terra-lt); margin-bottom: .5rem; }
.about-strip-item p { font-size: .85rem; color: rgba(255,255,255,.55); line-height: 1.7; }

/* ── Story Section ────────────────────────────────── */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--cream);
  padding: 0;
}
.story-img { aspect-ratio: 1; overflow: hidden; }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.story-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem;
}
.story-text .label { margin-bottom: 1.5rem; }
.story-text h2 { margin-bottom: 1.5rem; font-weight: 300; font-style: italic; }
.story-text p { font-size: .95rem; color: var(--dark-m); line-height: 1.9; margin-bottom: 1.5rem; }

/* ── Cart ─────────────────────────────────────────── */
.cart-page {
  padding-top: calc(72px + 3rem);
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  padding-left: 5rem;
  padding-right: 5rem;
  padding-bottom: 5rem;
}

.cart-items { }
.cart-page h1 { font-size: 2.5rem; margin-bottom: 2.5rem; font-weight: 300; font-style: italic; }

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  animation: fadeUp .3s var(--ease) both;
}

.cart-item-img {
  width: 100px; height: 120px;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--cream);
  flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-name { font-family: var(--font-disp); font-size: 1.2rem; margin-bottom: .25rem; }
.cart-item-variant { font-size: .8rem; color: var(--dark-l); margin-bottom: .75rem; }

.cart-item-price { font-size: 1rem; font-weight: 500; text-align: right; white-space: nowrap; }

.remove-btn {
  font-size: .72rem;
  color: var(--dark-l);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color .2s;
}
.remove-btn:hover { color: var(--terra); }

.cart-empty {
  text-align: center;
  padding: 6rem 2rem;
  color: var(--dark-l);
}
.cart-empty h2 { font-size: 2rem; font-weight: 300; font-style: italic; margin-bottom: 1rem; }
.cart-empty p { margin-bottom: 2rem; }

/* Order Summary */
.order-summary {
  background: var(--cream);
  border-radius: var(--r);
  padding: 2.5rem;
  height: fit-content;
  position: sticky;
  top: calc(72px + 2rem);
}
.order-summary h3 { font-size: 1.4rem; margin-bottom: 2rem; font-weight: 400; }

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: .75rem 0;
  font-size: .9rem;
  color: var(--dark-m);
  border-bottom: 1px solid var(--border);
}
.summary-row.total {
  border-bottom: none;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark);
  padding-top: 1.25rem;
}

.trust-badges { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.trust-badge { display: flex; align-items: center; gap: .5rem; font-size: .75rem; color: var(--dark-l); }

/* ── Success Page ─────────────────────────────────── */
.success-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  padding-top: 72px;
}
.success-inner { max-width: 480px; }
.success-icon { font-size: 3rem; margin-bottom: 1.5rem; }
.success-inner h1 { font-size: 2.8rem; font-weight: 300; font-style: italic; margin-bottom: 1rem; }
.success-inner p { color: var(--dark-m); margin-bottom: 2rem; line-height: 1.8; }

/* ── Footer ───────────────────────────────────────── */
footer {
  background: var(--dark);
  color: white;
  padding: 5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
}

footer .footer-brand { }
.footer-logo {
  font-family: var(--font-disp);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: .75rem;
  color: white;
}
footer p { font-size: .85rem; color: rgba(255,255,255,.45); line-height: 1.8; max-width: 30ch; }

.footer-col h4 {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .75rem; }
.footer-col a { font-size: .85rem; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-col a:hover { color: var(--terra-lt); }

.footer-bottom {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.5rem 5rem;
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: rgba(255,255,255,.3);
}

/* ── Toast ────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--dark);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--r);
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  z-index: 999;
  transform: translateY(100px);
  opacity: 0;
  transition: all .3s var(--ease);
  max-width: 320px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-check { color: var(--sage-lt); font-size: 1.1rem; }

/* ── Announcement Bar ─────────────────────────────── */
.announce {
  background: var(--terra);
  color: white;
  text-align: center;
  padding: .6rem 1rem;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ── Animations ───────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeUp .6s var(--ease) both; }
.fade-in-2 { animation: fadeUp .6s var(--ease) .15s both; }
.fade-in-3 { animation: fadeUp .6s var(--ease) .3s both; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  section { padding: 4rem 1.5rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-img { aspect-ratio: 4/3; }
  .hero-text { padding: 3rem 1.5rem; }
  .product-detail { grid-template-columns: 1fr; gap: 2rem; padding: calc(72px + 2rem) 1.5rem 3rem; }
  .product-gallery { position: static; }
  .product-info { padding: 0; }
  .about-strip { grid-template-columns: 1fr; }
  .about-strip-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); padding: 3rem 2rem; }
  .story { grid-template-columns: 1fr; }
  .story-text { padding: 3rem 1.5rem; }
  .cart-page { grid-template-columns: 1fr; padding: calc(72px + 2rem) 1.5rem 3rem; }
  .order-summary { position: static; }
  footer { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 1.5rem; }
  .footer-bottom { padding: 1.25rem 1.5rem; flex-direction: column; gap: .5rem; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
