:root {
  --ink: #24160f;
  --ink-soft: #4a3428;
  --muted: #8a6f5c;
  --line: rgba(36, 22, 15, 0.1);
  --paper: #f7f3ee;
  --paper-2: #efe8df;
  --sky: #7eb8d8;
  --sky-soft: #d7ebf5;
  --gold: #c9962a;
  --gold-bright: #e8b84a;
  --brown: #3a2518;
  --danger: #b42318;
  --good: #2f6b3a;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --shadow: 0 28px 70px rgba(36, 22, 15, 0.12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 100% -10%, rgba(126, 184, 216, 0.28), transparent 55%),
    radial-gradient(700px 420px at -10% 20%, rgba(232, 184, 74, 0.16), transparent 50%),
    linear-gradient(180deg, #fbf8f4 0%, var(--paper) 45%, #f3ece3 100%);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

/* —— Nav —— */
.store-nav {
  --nav-h: 72px;
  --logo-size: 128px;
  position: sticky; top: 0; z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: var(--nav-h);
  padding: 0 clamp(16px, 4vw, 48px);
  background: rgba(251, 248, 244, 0.9);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(36, 22, 15, 0.04);
}

.store-links {
  display: flex; align-items: center; gap: 4px;
}
.store-links-left { justify-content: flex-end; }
.store-links-right { justify-content: flex-start; }
.store-links a {
  padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 0.94rem;
  color: var(--ink-soft); transition: .18s ease;
}
.store-links a:hover, .store-links a.is-active {
  color: var(--ink); background: rgba(126, 184, 216, 0.18);
}

.store-brand {
  position: relative;
  z-index: 60;
  width: var(--logo-size);
  height: var(--logo-size);
  margin-bottom: calc(var(--logo-size) * -0.45);
  display: grid; place-items: center;
  transition: transform .2s ease;
}
.store-brand:hover { transform: translateY(2px) scale(1.03); }
.brand-ring {
  width: 100%; height: 100%;
  border-radius: 50%;
  display: grid; place-items: center;
  padding: 14px;
  background:
    radial-gradient(circle at 30% 25%, #fffef9, #f3ebe1 70%),
    #fff;
  border: 3px solid rgba(232, 184, 74, 0.95);
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.95),
    0 0 0 7px rgba(201, 150, 42, 0.35),
    0 18px 36px rgba(36, 22, 15, 0.22);
  overflow: hidden;
}
.brand-ring img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
}

.cart-link {
  display: inline-flex !important; align-items: center; gap: 8px !important;
  margin-left: 4px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold)) !important;
  color: var(--brown) !important;
  box-shadow: 0 10px 24px rgba(201, 150, 42, 0.28);
}
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: var(--brown); color: #fff8f0; font-size: 0.72rem; font-weight: 700;
}
.store-menu {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 14px;
  background: #fff; box-shadow: var(--shadow); cursor: pointer; font-size: 1.1rem;
  position: absolute; right: 14px; top: 12px;
}
.store-mobile-nav { display: none; }

/* Space under protruding badge on non-hero pages */
body:not(.home) main {
  padding-top: calc(var(--logo-size, 98px) * 0.38);
}
body.home .hero {
  margin-top: calc(var(--logo-size, 98px) * -0.28);
}

.store-flash {
  margin: 12px clamp(16px, 4vw, 48px) 0;
  padding: 14px 16px; border-radius: 14px; font-weight: 600;
}
.store-flash.ok { background: #e8f5ec; color: var(--good); }
.store-flash.err { background: #fdecec; color: var(--danger); }

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(94vh, 900px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff8f0;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center 35%;
  transform: scale(1.04);
  animation: ken 18s ease-in-out infinite alternate;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(36, 22, 15, 0.78) 0%, rgba(36, 22, 15, 0.45) 48%, rgba(36, 22, 15, 0.25) 100%),
    linear-gradient(180deg, rgba(36, 22, 15, 0.15) 0%, rgba(36, 22, 15, 0.55) 70%, rgba(36, 22, 15, 0.88) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  padding: clamp(56px, 12vh, 120px) clamp(18px, 5vw, 64px) clamp(44px, 8vh, 80px);
  max-width: 720px;
  animation: rise 0.9s cubic-bezier(.22, 1, .36, 1) both;
}
.hero-brand { margin: 0 0 22px; }
.hero-brand img {
  height: clamp(72px, 14vw, 120px); width: auto; object-fit: contain;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.4));
}
.hero-kicker {
  display: inline-block; margin: 0 0 14px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(232, 184, 74, 0.95);
}
.hero h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}
.hero p {
  margin: 0 0 28px;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 36ch;
  color: rgba(255, 248, 240, 0.88);
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes ken {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* —— Buttons —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 14px 22px; font-weight: 700; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--brown);
  box-shadow: 0 16px 34px rgba(201, 150, 42, 0.35);
}
.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px);
}
.btn-outline {
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  box-shadow: 0 8px 20px rgba(36, 22, 15, 0.05);
}
.btn-sm { padding: 9px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* —— Cities ribbon —— */
.cities {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--brown); color: #fff8f0;
}
.city {
  padding: 22px 16px; text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--display); font-weight: 600; font-size: 1.15rem;
  letter-spacing: -0.02em;
  animation: fadeUp 0.7s ease both;
}
.city:last-child { border-right: 0; }
.city:nth-child(2) { animation-delay: .06s; }
.city:nth-child(3) { animation-delay: .12s; }
.city:nth-child(4) { animation-delay: .18s; }
.city small {
  display: block; margin-top: 6px;
  font-family: var(--font); font-weight: 600; font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(232, 184, 74, 0.9);
}

/* —— Sections —— */
.section {
  padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 48px);
  max-width: 1240px; margin: 0 auto;
}
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 20px;
  margin-bottom: 32px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 42ch; line-height: 1.5; }
.muted { color: var(--muted); }

.story-band {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0;
  max-width: 1240px; margin: 0 auto clamp(24px, 4vw, 40px);
  border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.story-band img {
  width: 100%; height: 100%; min-height: 360px; object-fit: cover;
}
.story-copy {
  padding: clamp(28px, 5vw, 48px);
  display: flex; flex-direction: column; justify-content: center;
  background:
    linear-gradient(160deg, #fff 0%, #f7f3ee 100%);
}
.story-copy h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.story-copy p { margin: 0 0 22px; color: var(--muted); line-height: 1.6; max-width: 38ch; }

/* —— Products —— */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(36, 22, 15, 0.06);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: fadeUp 0.65s ease both;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(36, 22, 15, 0.14);
}
.product-media {
  aspect-ratio: 1;
  background: linear-gradient(160deg, #efe8df, #d7ebf5);
  overflow: hidden; position: relative;
}
.product-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.product-card:hover .product-media img { transform: scale(1.06); }
.product-media .placeholder {
  height: 100%; display: grid; place-items: center;
  font-family: var(--display); font-size: 2.6rem; font-weight: 600;
  color: rgba(36, 22, 15, 0.2);
}
.product-body {
  padding: 16px 18px 20px;
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.product-body h3 {
  margin: 0; font-size: 1.05rem; font-weight: 650;
  letter-spacing: -0.02em; line-height: 1.25;
}
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price { font-weight: 750; font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.price-was { color: var(--muted); text-decoration: line-through; font-size: 0.85rem; }
.stock-tag {
  display: inline-flex; width: fit-content;
  padding: 4px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  background: rgba(126, 184, 216, 0.22); color: #2a5f7a;
}
.stock-tag.out { background: rgba(180, 35, 24, 0.1); color: var(--danger); }

.page-wrap { padding: 28px clamp(16px, 4vw, 48px) 56px; max-width: 1240px; margin: 0 auto; }
.page-title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.page-sub { margin: 0 0 32px; color: var(--muted); font-size: 1.05rem; max-width: 48ch; }

.product-detail {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: start;
}
.detail-media {
  aspect-ratio: 1; border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, #efe8df, #d7ebf5);
  box-shadow: var(--shadow);
}
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-media .placeholder {
  height: 100%; display: grid; place-items: center;
  font-family: var(--display); font-size: 5rem; font-weight: 600; color: rgba(36, 22, 15, 0.18);
}
.detail-copy h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.detail-copy .lead { color: var(--muted); line-height: 1.65; margin: 0 0 22px; }
.qty-row { display: flex; gap: 10px; align-items: center; margin: 18px 0; }
.qty-row input {
  width: 88px; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 12px; background: #fff;
}

.cart-layout, .checkout-layout {
  display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 22px; align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-pad { padding: 22px; }
.cart-row {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: 0; }
.cart-thumb {
  width: 80px; height: 80px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, #efe8df, #d7ebf5);
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.summary-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.summary-row.total {
  border: 0; padding-top: 14px;
  font-family: var(--display); font-size: 1.25rem; font-weight: 650;
}
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-stack label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.form-stack input, .form-stack select, .form-stack textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: 12px 13px; outline: none;
}
.form-stack input:focus, .form-stack select:focus, .form-stack textarea:focus {
  border-color: rgba(201, 150, 42, 0.55); box-shadow: 0 0 0 3px rgba(232, 184, 74, 0.18);
}
.cod-note {
  margin: 0 0 14px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(126, 184, 216, 0.22), rgba(232, 184, 74, 0.16));
  font-weight: 700; font-size: 0.92rem;
}

/* —— Wholesale / About —— */
.about-hero-wrap {
  position: relative;
  min-height: min(62vh, 560px);
  display: grid; align-items: end;
  overflow: hidden; color: #fff8f0;
}
.about-hero-wrap .hero-media { animation: ken 22s ease-in-out infinite alternate; }
.about-hero-wrap .hero-inner { max-width: 760px; }
.about-hero-wrap h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.about-hero-wrap p {
  margin: 0; color: rgba(255, 248, 240, 0.88);
  font-size: 1.1rem; line-height: 1.6; max-width: 46ch;
}
.coverage {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  padding: 36px clamp(16px, 4vw, 48px) 28px;
  max-width: 1100px; margin: 0 auto;
}
.coverage article {
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(36, 22, 15, 0.05);
  transition: transform .2s ease;
}
.coverage article:hover { transform: translateY(-3px); }
.coverage h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.coverage p { margin: 0; color: var(--muted); line-height: 1.55; }
.partner-cta {
  max-width: 1100px; margin: 0 auto 64px;
  padding: 0 clamp(16px, 4vw, 48px);
}
.partner-cta .panel {
  padding: clamp(24px, 4vw, 36px);
  background:
    linear-gradient(135deg, rgba(126, 184, 216, 0.12), rgba(232, 184, 74, 0.12)),
    #fff;
}

.thankyou {
  min-height: 60vh; display: grid; place-items: center; text-align: center;
  padding: 48px 20px;
}
.thankyou h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.order-chip {
  display: inline-flex; margin: 12px 0 22px; padding: 10px 16px; border-radius: 999px;
  background: rgba(126, 184, 216, 0.28); font-weight: 800;
}

/* —— Footer —— */
.store-foot {
  margin-top: 24px;
  background:
    radial-gradient(600px 280px at 90% 0%, rgba(126, 184, 216, 0.18), transparent 50%),
    linear-gradient(180deg, #2f1d14, #1f120c);
  color: #fff8f0;
  padding: 56px clamp(16px, 4vw, 48px) 28px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px;
  max-width: 1180px; margin: 0 auto 28px;
}
.foot-brand { display: inline-block; margin-bottom: 14px; }
.foot-brand img {
  height: 56px; width: auto; object-fit: contain;
  background: #fff; border-radius: 14px; padding: 6px;
}
.store-foot h4 {
  margin: 0 0 12px; font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; opacity: 0.65; font-weight: 700;
}
.store-foot a, .store-foot p {
  display: block; margin: 0 0 8px; color: rgba(255, 248, 240, 0.78); line-height: 1.45;
}
.foot-bottom {
  max-width: 1180px; margin: 0 auto;
  padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem; opacity: 0.65;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
}
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 28px; }
.pagination a, .pagination span {
  padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; font-weight: 700; font-size: 0.85rem;
}

@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cities { grid-template-columns: 1fr 1fr; }
  .city:nth-child(2) { border-right: 0; }
  .product-detail, .cart-layout, .checkout-layout, .foot-grid, .coverage, .story-band {
    grid-template-columns: 1fr;
  }
  .story-band img { min-height: 260px; }
}
@media (max-width: 720px) {
  .store-nav {
    --nav-h: 64px;
    --logo-size: 100px;
    grid-template-columns: 44px 1fr 44px;
  }
  .store-links-left,
  .store-links-right { display: none !important; }
  .store-brand { grid-column: 2; justify-self: center; }
  .store-menu {
    display: inline-grid; place-items: center;
    grid-column: 3; justify-self: end; position: static;
  }
  body.nav-open .store-mobile-nav {
    display: flex;
    position: absolute; left: 12px; right: 12px;
    top: calc(var(--nav-h) + 44px);
    flex-direction: column; gap: 4px;
    background: #fbf8f4; border: 1px solid var(--line); border-radius: 18px;
    padding: 10px; box-shadow: var(--shadow); z-index: 70;
  }
  .store-mobile-nav a {
    padding: 12px 14px; border-radius: 12px; font-weight: 650;
    color: var(--ink-soft);
  }
  .store-mobile-nav a:hover { background: rgba(126, 184, 216, 0.18); color: var(--ink); }
  .product-grid { grid-template-columns: 1fr; }
  .cities { grid-template-columns: 1fr 1fr; }
}
