/* ============================================================
   SERENOVA DESIGN SYSTEM
   Replicated from reference: serene-sprezze.lovable.app
   Fonts: Inter (body) + Instrument Serif (display)
   ============================================================ */

:root {
  --radius: .75rem;
  --cream: oklch(97.5% .012 85);
  --ink: oklch(22% .02 150);
  --sage: oklch(82% .045 145);
  --sage-deep: oklch(42% .045 150);
  --lavender: oklch(78% .075 300);
  --terra: oklch(62% .11 40);
  --background: var(--cream);
  --foreground: var(--ink);
  --card: oklch(100% 0 0);
  --card-foreground: var(--ink);
  --primary: var(--sage-deep);
  --primary-foreground: var(--cream);
  --secondary: oklch(94% .02 145);
  --secondary-foreground: var(--sage-deep);
  --muted: oklch(95.5% .01 140);
  --muted-foreground: oklch(48% .02 150);
  --accent: var(--lavender);
  --accent-foreground: oklch(28% .05 300);
  --destructive: oklch(57.7% .245 27.325);
  --border: oklch(90% .015 140);
  --input: oklch(90% .015 140);
  --ring: var(--sage-deep);
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}

/* ---------- Base ---------- */
.srn-page,
body.srn-body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.srn-body { margin: 0; }
.srn-body a { text-decoration: none; color: inherit; transition: color .18s ease, background-color .18s ease, border-color .18s ease, opacity .18s ease; }
.srn-body img { max-width: 100%; display: block; }
.srn-body h1, .srn-body h2, .srn-body h3, .srn-body h4 { margin: 0; font-weight: 400; }
.srn-body p { margin: 0; }
.srn-body ul { margin: 0; padding: 0; list-style: none; }
.srn-body button { font-family: inherit; cursor: pointer; }
.srn-body input, .srn-body textarea, .srn-body select { font-family: inherit; }

.srn-container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .srn-container { padding: 0 24px; } }

.srn-serif { font-family: var(--font-serif); }

/* ---------- Eyebrow / section headers ---------- */
.srn-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.srn-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.srn-section-head h2 { font-family: var(--font-serif); font-size: 36px; line-height: 1.1; letter-spacing: -.02em; }
@media (max-width: 640px) { .srn-section-head h2 { font-size: 28px; } }
.srn-view-all { font-size: 14px; font-weight: 500; color: var(--sage-deep); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.srn-view-all:hover { opacity: .75; color: var(--sage-deep); }

/* ---------- Buttons ---------- */
.srn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 9999px; padding: 12px 24px;
  font-size: 14.4px; font-weight: 500; line-height: 1.2;
  border: 1px solid transparent; transition: all .18s ease;
}
.srn-btn-primary { background: var(--primary); color: var(--primary-foreground); }
.srn-btn-primary:hover { background: oklch(36% .045 150); color: var(--primary-foreground); }
.srn-btn-outline { background: transparent; color: var(--ink); border-color: oklch(22% .02 150 / .25); }
.srn-btn-outline:hover { border-color: var(--ink); color: var(--ink); background: oklch(22% .02 150 / .04); }
.srn-btn-light { background: var(--cream); color: var(--ink); }
.srn-btn-light:hover { background: #fff; color: var(--ink); }
.srn-btn-lg { padding: 14px 30px; font-size: 15.5px; }
.srn-btn-sm { padding: 8px 16px; font-size: 13px; }
.srn-btn-block { width: 100%; }
.srn-btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- Top announcement bar ---------- */
.srn-topbar { background: var(--ink); color: var(--cream); font-size: 13px; }
.srn-topbar-in { display: flex; align-items: center; justify-content: center; gap: 24px; min-height: 38px; padding: 6px 0; position: relative; }
.srn-topbar-msg { text-align: center; }
.srn-topbar-links { display: none; align-items: center; gap: 18px; position: absolute; right: 0; }
.srn-topbar-links a { color: oklch(97.5% .012 85 / .85); display: inline-flex; align-items: center; gap: 6px; }
.srn-topbar-links a:hover { color: var(--cream); }
@media (min-width: 1024px) { .srn-topbar-links { display: flex; } }

/* ---------- Header ---------- */
.srn-header { background: var(--cream); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 300; }
.srn-header-in { display: flex; align-items: center; gap: 18px; padding: 14px 0; }
.srn-logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.srn-logo-badge {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--sage-deep); color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
}
.srn-logo-badge img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.srn-logo-name { font-family: var(--font-serif); font-size: 27px; letter-spacing: -.01em; color: var(--ink); }
.srn-search { flex: 1; max-width: 560px; margin: 0 auto; position: relative; display: none; }
@media (min-width: 768px) { .srn-search { display: block; } }
.srn-search input {
  width: 100%; height: 46px; border: 1px solid var(--input); background: #fff;
  border-radius: 9999px; padding: 0 118px 0 42px; font-size: 14px; color: var(--ink);
  outline: none; transition: border-color .15s ease, box-shadow .15s ease;
  box-sizing: border-box; line-height: 46px;
}
.srn-search input:focus { border-color: var(--ring); box-shadow: 0 0 0 3px oklch(42% .045 150 / .12); }
.srn-search .srn-search-ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted-foreground); font-size: 14px; }
.srn-search button {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  border: 0; background: var(--primary); color: var(--primary-foreground);
  border-radius: 9999px; padding: 0 20px; font-size: 13px; font-weight: 500;
  width: auto !important; height: 36px !important; line-height: 36px;
}
.srn-header-acts { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.srn-header-act { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 9999px; font-size: 14px; font-weight: 500; color: var(--ink); position: relative; }
.srn-header-act:hover { background: oklch(22% .02 150 / .05); color: var(--ink); }
.srn-cart-badge {
  position: absolute; top: -2px; right: 2px;
  background: var(--terra); color: #fff; font-size: 10.5px; font-weight: 600;
  min-width: 17px; height: 17px; border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ---------- Nav ---------- */
.srn-nav { background: var(--cream); border-bottom: 1px solid var(--border); }
.srn-nav-in { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 4px 0; }
.srn-nav-in::-webkit-scrollbar { display: none; }
.srn-nav a { font-size: 14px; font-weight: 500; color: oklch(22% .02 150 / .8); padding: 6px 12px; border-radius: 9999px; white-space: nowrap; }
.srn-nav a:hover, .srn-nav a.active { color: var(--ink); background: oklch(22% .02 150 / .06); }
.srn-catnav { background: var(--cream); border-bottom: 1px solid var(--border); }
.srn-catnav-in { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 9px 0; }
.srn-catnav-in::-webkit-scrollbar { display: none; }
.srn-catnav a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: oklch(22% .02 150 / .75);
  border: 1px solid var(--border); background: #fff;
  border-radius: 9999px; padding: 7px 14px; white-space: nowrap;
}
.srn-catnav a:hover { border-color: var(--sage-deep); color: var(--sage-deep); }
.srn-catnav a i { font-size: 12px; color: var(--sage-deep); }

/* ---------- Mobile menu / offcanvas ---------- */
.srn-burger { display: inline-flex; border: 0; background: none; font-size: 20px; color: var(--ink); padding: 8px; }
@media (min-width: 1024px) { .srn-burger { display: none; } }
.srn-mobilemenu { position: fixed; inset: 0; z-index: 500; pointer-events: none; }
.srn-mobilemenu.open { pointer-events: auto; }
.srn-mobilemenu-bg { position: absolute; inset: 0; background: oklch(22% .02 150 / .45); opacity: 0; transition: opacity .25s ease; }
.srn-mobilemenu.open .srn-mobilemenu-bg { opacity: 1; }
.srn-mobilemenu-panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(320px, 85vw);
  background: var(--cream); transform: translateX(-100%); transition: transform .25s ease;
  padding: 22px; overflow-y: auto;
}
.srn-mobilemenu.open .srn-mobilemenu-panel { transform: translateX(0); }
.srn-mobilemenu-panel a { display: block; padding: 11px 4px; font-size: 15px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--border); }

/* ---------- Hero ---------- */
.srn-hero { padding: 22px 0 10px; }
.srn-hero-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1024px) { .srn-hero-grid { grid-template-columns: 2fr 1fr; } }
.srn-hero-main { position: relative; border-radius: 24px; overflow: hidden; min-height: 380px; background: var(--sage); }
@media (min-width: 1024px) { .srn-hero-main { min-height: 460px; } }
.srn-hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.srn-hero-slide.active { opacity: 1; }
.srn-hero-slide img.srn-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.srn-hero-overlay {
  position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center;
  padding: 40px; max-width: 560px;
}
.srn-hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, oklch(97.5% .012 85 / .82) 0%, oklch(97.5% .012 85 / .35) 55%, transparent 100%); }
.srn-hero-pill {
  align-self: flex-start; background: oklch(78% .075 300 / .45); color: var(--ink);
  font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  border-radius: 9999px; padding: 7px 14px; margin-bottom: 18px;
}
.srn-hero-title { font-family: var(--font-serif); font-size: 44px; line-height: 1.05; letter-spacing: -.01em; color: var(--ink); margin-bottom: 14px; }
@media (min-width: 1024px) { .srn-hero-title { font-size: 60px; line-height: 63px; letter-spacing: -0.6px; } }
.srn-hero-sub { font-size: 15.5px; color: oklch(22% .02 150 / .8); max-width: 400px; margin-bottom: 22px; }
.srn-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.srn-hero-dots { position: absolute; z-index: 3; left: 40px; bottom: 26px; display: flex; gap: 7px; }
.srn-hero-dots button { width: 22px; height: 4px; border-radius: 9999px; border: 0; background: oklch(22% .02 150 / .25); transition: background .2s ease; padding: 0; }
.srn-hero-dots button.active { background: var(--ink); }
.srn-hero-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (min-width: 1024px) { .srn-hero-side { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; } }
.srn-hero-tile { position: relative; border-radius: 24px; overflow: hidden; min-height: 170px; display: block; background: var(--ink); }
@media (min-width: 1024px) { .srn-hero-tile { min-height: 0; } }
.srn-hero-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.srn-hero-tile:hover img { transform: scale(1.04); }
.srn-hero-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, oklch(22% .02 150 / .72) 100%); }
.srn-hero-tile-txt { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; color: #fff; }
.srn-hero-tile-txt .tag { font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: oklch(97.5% .012 85 / .8); display: block; margin-bottom: 5px; }
.srn-hero-tile-txt .tt { font-family: var(--font-serif); font-size: 22px; line-height: 1.15; display: block; margin-bottom: 6px; }
.srn-hero-tile-txt .lk { font-size: 12.5px; font-weight: 500; color: oklch(97.5% .012 85 / .9); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Trust bar ---------- */
.srn-trust { padding: 26px 0 8px; }
.srn-trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .srn-trust-grid { grid-template-columns: repeat(4, 1fr); } }
.srn-trust-item {
  display: flex; align-items: center; gap: 13px;
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 15px 18px;
}
.srn-trust-ic {
  width: 40px; height: 40px; border-radius: 9999px; flex-shrink: 0;
  background: var(--secondary); color: var(--sage-deep);
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}
.srn-trust-item b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.srn-trust-item span { font-size: 12px; color: var(--muted-foreground); }

/* ---------- Sections ---------- */
.srn-section { padding: 36px 0; }
.srn-section-sm { padding: 26px 0; }

/* ---------- Product grid & card ---------- */
.srn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .srn-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .srn-grid { grid-template-columns: repeat(4, 1fr); } }
.srn-grid-5 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .srn-grid-5 { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .srn-grid-5 { grid-template-columns: repeat(5, 1fr); } }

.srn-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  overflow: hidden; position: relative; color: var(--ink);
  transition: box-shadow .2s ease, transform .2s ease;
}
.srn-card:hover { box-shadow: 0 14px 34px oklch(22% .02 150 / .1); transform: translateY(-2px); color: var(--ink); }
.srn-card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: oklch(42% .045 150 / .85); }
.srn-card-media.tint-sage { background: oklch(42% .045 150 / .85); }
.srn-card-media.tint-cream { background: oklch(93% .03 90); }
.srn-card-media.tint-lav { background: oklch(78% .075 300 / .5); }
.srn-card-media.tint-terra { background: oklch(62% .11 40 / .8); }
.srn-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.srn-card:hover .srn-card-media img { transform: scale(1.05); }
.srn-card[data-is-out="1"] .srn-card-media img { filter: grayscale(1); opacity: .6; }
.srn-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; z-index: 2; pointer-events: none; }
.srn-badge {
  font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 9999px; padding: 5px 10px; background: var(--cream); color: var(--ink);
}
.srn-badge-off { background: var(--terra); color: #fff; letter-spacing: .02em; }
.srn-badge-out { background: var(--ink); color: var(--cream); }
.srn-card-body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.srn-card-sub { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-foreground); }
.srn-card-name { font-family: var(--font-serif); font-size: 18px; line-height: 1.25; color: var(--ink); }
.srn-card-name a { color: inherit; }
.srn-card-name a:hover { color: var(--sage-deep); }
.srn-card-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.srn-price { font-size: 16.5px; font-weight: 600; color: var(--ink); }
.srn-price-old { font-size: 13px; color: var(--muted-foreground); text-decoration: line-through; }
.srn-price-save { font-size: 11px; font-weight: 600; color: var(--terra); }

/* ---------- Wide banner (ritual builder style) ---------- */
.srn-banner { position: relative; border-radius: 24px; overflow: hidden; min-height: 260px; display: flex; align-items: center; background: var(--sage-deep); }
.srn-banner img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.srn-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, oklch(22% .02 150 / .72), oklch(22% .02 150 / .25)); }
.srn-banner-in { position: relative; z-index: 2; padding: 40px; color: var(--cream); max-width: 560px; }
.srn-banner-in .srn-eyebrow { color: oklch(97.5% .012 85 / .8); }
.srn-banner-in h2 { font-family: var(--font-serif); font-size: 34px; line-height: 1.1; margin: 10px 0 12px; }
.srn-banner-in p { font-size: 14.5px; color: oklch(97.5% .012 85 / .85); margin-bottom: 20px; }

/* ---------- Shop by need (category tiles) ---------- */
.srn-needs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .srn-needs { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .srn-needs { grid-template-columns: repeat(8, 1fr); } }
.srn-need {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 18px 10px; text-align: center; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.srn-need:hover { border-color: var(--sage-deep); color: var(--sage-deep); box-shadow: 0 10px 24px oklch(22% .02 150 / .07); }
.srn-need-ic {
  width: 46px; height: 46px; border-radius: 9999px;
  background: var(--secondary); color: var(--sage-deep);
  display: inline-flex; align-items: center; justify-content: center; font-size: 17px;
  overflow: hidden;
}
.srn-need-ic img { width: 100%; height: 100%; object-fit: cover; border-radius: 9999px; }
.srn-need span { font-size: 12.5px; font-weight: 500; line-height: 1.3; }

/* ---------- Category feature section ---------- */
.srn-catsec { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1024px) { .srn-catsec { grid-template-columns: 300px 1fr; } }
.srn-catsec-feature { position: relative; border-radius: 24px; overflow: hidden; min-height: 240px; display: flex; align-items: flex-end; background: var(--ink); }
.srn-catsec-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.srn-catsec-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, oklch(22% .02 150 / .1) 20%, oklch(22% .02 150 / .82) 100%); }
.srn-catsec-txt { position: relative; z-index: 2; padding: 24px; color: var(--cream); }
.srn-catsec-txt .num { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: oklch(97.5% .012 85 / .75); display: block; margin-bottom: 8px; }
.srn-catsec-txt h3 { font-family: var(--font-serif); font-size: 28px; line-height: 1.1; margin-bottom: 8px; }
.srn-catsec-txt p { font-size: 13px; color: oklch(97.5% .012 85 / .82); margin-bottom: 14px; }
.srn-catsec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .srn-catsec-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

/* ---------- Testimonials ---------- */
.srn-quotes { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .srn-quotes { grid-template-columns: repeat(3, 1fr); } }
.srn-quote { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.srn-stars { color: var(--terra); font-size: 13px; letter-spacing: 2px; margin-bottom: 14px; }
.srn-quote p { font-size: 14.5px; line-height: 1.65; color: oklch(22% .02 150 / .88); margin-bottom: 16px; }
.srn-quote b { font-size: 13.5px; font-weight: 600; display: block; }
.srn-quote span { font-size: 12px; color: var(--muted-foreground); }

/* ---------- Newsletter ---------- */
.srn-news { background: var(--sage-deep); border-radius: 24px; padding: 40px; display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; }
@media (min-width: 900px) { .srn-news { grid-template-columns: 1.2fr 1fr; padding: 48px; } }
.srn-news .srn-eyebrow { color: oklch(97.5% .012 85 / .75); }
.srn-news h2 { font-family: var(--font-serif); font-size: 32px; color: var(--cream); margin: 8px 0 10px; }
.srn-news p { font-size: 14px; color: oklch(97.5% .012 85 / .8); }
.srn-news-form { display: flex; gap: 8px; }
.srn-news-form input {
  flex: 1; border: 1px solid oklch(97.5% .012 85 / .3); background: oklch(97.5% .012 85 / .1);
  color: var(--cream); border-radius: 9999px; padding: 12px 20px; font-size: 14px; outline: none;
}
.srn-news-form input::placeholder { color: oklch(97.5% .012 85 / .55); }
.srn-news-form input:focus { border-color: oklch(97.5% .012 85 / .7); }

/* ---------- Footer ---------- */
.srn-footer { background: var(--cream); border-top: 1px solid var(--border); margin-top: 30px; text-align: center; }
.srn-footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; padding: 40px 0 28px; }
.srn-footer-brand { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; }
@media (min-width: 768px) {
  .srn-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 20px; }
  .srn-footer-brand { grid-column: auto; }
}
.srn-footer-brand p { font-size: 13.5px; color: var(--muted-foreground); line-height: 1.7; margin: 14px 0 18px; max-width: 340px; }
.srn-footer-social { display: flex; gap: 8px; justify-content: center; }
.srn-footer-social a {
  width: 34px; height: 34px; border-radius: 9999px; border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ink); background: #fff;
}
.srn-footer-social a:hover { border-color: var(--sage-deep); color: var(--sage-deep); }
/* on mobile the last column has no partner — let it span so it stays centred */
@media (max-width: 767.98px) {
  .srn-footer-grid > .srn-footer-col:last-child { grid-column: 1 / -1; }
}
.srn-footer-col b { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); display: block; margin-bottom: 14px; }
.srn-footer-col a { display: block; font-size: 13.5px; color: var(--muted-foreground); padding: 5px 0; }
.srn-footer-col a:hover { color: var(--sage-deep); }
.srn-footer-bottom {
  border-top: 1px solid var(--border); padding: 18px 0 90px; display: flex; flex-wrap: wrap; gap: 10px 24px;
  align-items: center; justify-content: center; text-align: center;
  font-size: 12.5px; color: var(--muted-foreground);
}
@media (min-width: 768px) { .srn-footer-bottom { padding-bottom: 18px; justify-content: space-between; text-align: left; } }
.srn-footer-bottom .meta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: center; }
.srn-footer-bottom .meta span { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Breadcrumb ---------- */
.srn-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--muted-foreground); padding: 16px 0 4px; }
.srn-crumb a { color: var(--muted-foreground); }
.srn-crumb a:hover { color: var(--sage-deep); }
.srn-crumb .sep { opacity: .5; }
.srn-crumb .cur { color: var(--ink); font-weight: 500; }

/* ---------- Product detail ---------- */
.srn-pd { display: grid; grid-template-columns: 1fr; gap: 30px; padding: 14px 0 40px; }
@media (min-width: 1024px) { .srn-pd { grid-template-columns: 1.05fr 1fr; gap: 44px; } }
.srn-pd-gallery { position: sticky; top: 130px; align-self: start; }
@media (max-width: 1023px) { .srn-pd-gallery { position: static; } }
.srn-pd-main {
  position: relative; border-radius: 24px; overflow: hidden; background: oklch(42% .045 150 / .85);
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
}
/* contain, not cover: the reference shows the whole bottle floating with air
   around it rather than a cropped fill */
.srn-pd-main img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.srn-pd-main > a { display: block; width: 100%; height: 100%; }
.srn-pd-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.srn-pd-thumbs .th {
  border-radius: 14px; overflow: hidden; aspect-ratio: 1/1; background: oklch(42% .045 150 / .6);
  border: 2px solid transparent; cursor: pointer; padding: 0;
}
.srn-pd-thumbs .th.active { border-color: var(--sage-deep); }
.srn-pd-thumbs .th img { width: 100%; height: 100%; object-fit: cover; }
.srn-pd-cat { font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 8px; display: block; }
.srn-pd-title { font-family: var(--font-serif); font-size: 34px; line-height: 1.1; letter-spacing: -.01em; margin-bottom: 10px; }
@media (min-width: 1024px) { .srn-pd-title { font-size: 40px; } }
.srn-pd-rating { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-foreground); margin-bottom: 16px; }
.srn-pd-rating .srn-stars { margin: 0; }
.srn-pd-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.srn-pd-price .now { font-size: 30px; font-weight: 600; }
.srn-pd-price .was { font-size: 17px; color: var(--muted-foreground); text-decoration: line-through; }
.srn-pd-price .save { background: oklch(62% .11 40 / .12); color: var(--terra); font-size: 12px; font-weight: 600; border-radius: 9999px; padding: 5px 12px; }
.srn-pd-desc { font-size: 14.5px; line-height: 1.7; color: oklch(22% .02 150 / .8); margin-bottom: 18px; }
.srn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.srn-chip { font-size: 12.5px; font-weight: 500; border: 1px solid var(--border); background: #fff; border-radius: 9999px; padding: 7px 14px; color: oklch(22% .02 150 / .8); display: inline-flex; align-items: center; gap: 6px; }
.srn-chip i { color: var(--sage-deep); font-size: 11px; }
.srn-chip.selectable { cursor: pointer; }
.srn-chip.selected { border-color: var(--sage-deep); background: var(--secondary); color: var(--sage-deep); }
.srn-qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 9999px; background: #fff; }
.srn-qty button { width: 38px; height: 42px; border: 0; background: none; font-size: 15px; color: var(--ink); }
/* padding must be forced to 0: the legacy theme sets `padding: 0 30px` on
   number inputs, which collapses the visible digits to zero width. */
.srn-qty input {
  width: 44px !important; min-width: 44px; height: 42px; border: 0;
  text-align: center !important; font-size: 14.5px; font-weight: 600;
  background: none; outline: none; padding: 0 !important; margin: 0 !important;
  -moz-appearance: textfield; appearance: textfield;
}
.srn-qty input::-webkit-outer-spin-button,
.srn-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* Action row — reference puts qty + both buttons on one line on desktop and
   stacks them full-width on mobile. */
.srn-pd-actions { display: flex; gap: 10px; align-items: stretch; margin-bottom: 8px; flex-wrap: wrap; }
.srn-pd-actions .srn-qty { flex: 0 0 auto; }
.srn-pd-actions .srn-btn { flex: 1 1 auto; min-width: 150px; height: 48px; }
@media (max-width: 575.98px) {
  .srn-pd-actions { flex-direction: column; }
  .srn-pd-actions .srn-qty { width: 100%; justify-content: center; }
  .srn-pd-actions .srn-btn { width: 100%; min-width: 0; }
}
.srn-pd-golink { font-size: 13px; color: var(--sage-deep); text-decoration: underline; display: inline-block; margin-bottom: 16px; }

/* Trust row — borderless, separated by a hairline, evenly spread */
.srn-pd-trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin: 18px 0 22px; border-top: 1px solid var(--border); padding-top: 18px;
}
.srn-pd-trust div {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: oklch(22% .02 150 / .82);
  background: transparent; border: 0; border-radius: 0; padding: 0;
}
.srn-pd-trust i { color: var(--sage-deep); font-size: 15px; flex-shrink: 0; }
@media (max-width: 575.98px) {
  .srn-pd-trust { grid-template-columns: 1fr; gap: 12px; }
}
.srn-acc { background: #fff; border: 1px solid var(--border); border-radius: 16px; margin-bottom: 10px; overflow: hidden; }
.srn-acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px; font-size: 14.5px; font-weight: 600;
}
.srn-acc summary::-webkit-details-marker { display: none; }
.srn-acc summary::after { content: "+"; font-size: 17px; color: var(--muted-foreground); }
.srn-acc[open] summary::after { content: "×"; }
.srn-acc-body { padding: 0 18px 16px; font-size: 14px; line-height: 1.7; color: oklch(22% .02 150 / .8); }
.srn-acc-body ul { list-style: none; }
.srn-acc-body li { display: flex; gap: 9px; padding: 4px 0; }
.srn-acc-body li::before { content: "✓"; color: var(--sage-deep); font-weight: 700; }

/* ---------- Checkout ---------- */
.srn-chk-head { padding: 8px 0 18px; }
.srn-chk-head h1 { font-family: var(--font-serif); font-size: 40px; letter-spacing: -.01em; margin-bottom: 6px; }
.srn-chk-head p { font-size: 14px; color: var(--muted-foreground); }
.srn-chk { display: grid; grid-template-columns: 1fr; gap: 20px; padding-bottom: 46px; align-items: start; }
@media (min-width: 1024px) { .srn-chk { grid-template-columns: 1.5fr 1fr; } }
.srn-panel { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 22px; }
.srn-panel + .srn-panel { margin-top: 16px; }
.srn-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.srn-panel-head h3 { font-family: var(--font-serif); font-size: 21px; }
.srn-panel-head .sub { font-size: 12.5px; color: var(--muted-foreground); }
.srn-clear { font-size: 12.5px; color: var(--terra); background: none; border: 0; }
.srn-bag-item { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.srn-bag-item:last-child { border-bottom: 0; }
.srn-bag-img { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: oklch(42% .045 150 / .75); flex-shrink: 0; }
.srn-bag-img img { width: 100%; height: 100%; object-fit: cover; }
.srn-bag-info { flex: 1; min-width: 0; }
.srn-bag-info b { font-size: 14px; font-weight: 600; display: block; line-height: 1.3; }
.srn-bag-info span { font-size: 12px; color: var(--muted-foreground); }
.srn-bag-price { font-size: 14px; font-weight: 600; white-space: nowrap; }
.srn-bag-remove { border: 0; background: none; color: var(--muted-foreground); font-size: 13px; padding: 6px; }
.srn-bag-remove:hover { color: var(--destructive); }
.srn-field { margin-bottom: 14px; }
.srn-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.srn-field .req { color: var(--terra); }
.srn-input, .srn-textarea, .srn-select {
  width: 100%; border: 1px solid var(--input); background: var(--cream);
  border-radius: 14px; padding: 12px 15px; font-size: 14px; color: var(--ink); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease; box-sizing: border-box;
}
.srn-input:focus, .srn-textarea:focus, .srn-select:focus { border-color: var(--ring); box-shadow: 0 0 0 3px oklch(42% .045 150 / .12); background: #fff; }
.srn-textarea { min-height: 84px; resize: vertical; }
.srn-radio-cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .srn-radio-cards { grid-template-columns: 1fr 1fr; } }
.srn-radio-card { position: relative; display: flex; align-items: flex-start; gap: 11px; border: 1px solid var(--border); background: var(--cream); border-radius: 14px; padding: 13px 15px; cursor: pointer; transition: all .15s ease; }
.srn-radio-card:hover { border-color: var(--sage-deep); }
.srn-radio-card input { accent-color: var(--sage-deep); margin-top: 3px; }
.srn-radio-card.checked, .srn-radio-card:has(input:checked) { border-color: var(--sage-deep); background: var(--secondary); }
.srn-radio-card b { font-size: 13.5px; font-weight: 600; display: block; }
.srn-radio-card span { font-size: 12px; color: var(--muted-foreground); }
.srn-radio-card .price { margin-left: auto; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.srn-sum-row { display: flex; justify-content: space-between; font-size: 14px; padding: 7px 0; color: oklch(22% .02 150 / .85); }
.srn-sum-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 13px; font-size: 16.5px; font-weight: 600; color: var(--ink); }
.srn-sum-note { font-size: 12.5px; color: var(--muted-foreground); margin: 10px 0 14px; }
.srn-chk-side { position: sticky; top: 130px; }
@media (max-width: 1023px) { .srn-chk-side { position: static; } }
/* Fineprint under the place-order button: centred, with breathing room */
.srn-fineprint {
  font-size: 12px; color: var(--muted-foreground);
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 14px; text-align: center;
}
.srn-fineprint + .srn-fineprint { margin-top: 8px; }
.srn-chk-fineprint {
  font-size: 12px; color: var(--muted-foreground);
  display: flex; align-items: center; justify-content: center;
  gap: 8px; text-align: center; margin: 0;
}
/* first one sits further below the button */
#chk_btn { margin-bottom: 4px; }
.d-grid + .srn-chk-fineprint { margin-top: 18px; }
.srn-coupon-row { display: flex; gap: 8px; margin-bottom: 4px; }
.srn-coupon-row .srn-input { flex: 1; }

/* ---------- Simple page (about/contact/policy) ---------- */
.srn-page-head { padding: 26px 0 8px; }
.srn-page-head h1 { font-family: var(--font-serif); font-size: 42px; letter-spacing: -.01em; margin-bottom: 8px; }
.srn-page-head p { font-size: 14.5px; color: var(--muted-foreground); max-width: 640px; }
.srn-prose { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 30px; font-size: 14.5px; line-height: 1.75; color: oklch(22% .02 150 / .85); }
.srn-prose h1, .srn-prose h2, .srn-prose h3 { font-family: var(--font-serif); margin: 18px 0 8px; }
.srn-prose p { margin-bottom: 12px; }
.srn-prose ul, .srn-prose ol { padding-left: 20px; margin-bottom: 12px; }
.srn-prose ul { list-style: disc; }
.srn-prose img { border-radius: 14px; }

/* ---------- Auth / account ---------- */
.srn-auth { max-width: 440px; margin: 30px auto 60px; }
.srn-auth .srn-panel { padding: 30px; }
.srn-auth h1 { font-family: var(--font-serif); font-size: 32px; text-align: center; margin-bottom: 6px; }
.srn-auth .sub { text-align: center; font-size: 13.5px; color: var(--muted-foreground); margin-bottom: 22px; }
.srn-auth .alt { text-align: center; font-size: 13.5px; color: var(--muted-foreground); margin-top: 18px; }
.srn-auth .alt a { color: var(--sage-deep); font-weight: 500; }

/* ---------- Category / shop page ---------- */
.srn-shop-head { padding: 24px 0 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.srn-shop-head h1 { font-family: var(--font-serif); font-size: 38px; letter-spacing: -.01em; }
.srn-shop-head .count { font-size: 13px; color: var(--muted-foreground); }
.srn-sort { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted-foreground); }
.srn-sort select { border: 1px solid var(--border); background: #fff; border-radius: 9999px; padding: 8px 14px; font-size: 13px; outline: none; }

/* ---------- Pagination ---------- */
.srn-pagi { display: flex; justify-content: center; padding: 26px 0 10px; }
.srn-pagi .pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.srn-pagi .page-link, .srn-pagi .page-item span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
  border-radius: 9999px; border: 1px solid var(--border); background: #fff; color: var(--ink);
  font-size: 13.5px; padding: 0 12px;
}
.srn-pagi .page-item.active .page-link { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--cream); }
.srn-pagi .page-item.disabled .page-link { opacity: .45; pointer-events: none; }

/* ---------- Track order ---------- */
.srn-track { max-width: 640px; margin: 0 auto 50px; }
.srn-track-form { display: flex; gap: 10px; margin-bottom: 24px; }
.srn-track-form .srn-input { flex: 1; }

/* ---------- Mobile bottom nav ---------- */
.srn-bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
  background: var(--ink); color: var(--cream);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}
@media (min-width: 768px) { .srn-bottomnav { display: none; } }
.srn-bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; font-weight: 500; color: oklch(97.5% .012 85 / .75); letter-spacing: .06em; text-transform: uppercase; position: relative; }
.srn-bottomnav a i { font-size: 16px; }
.srn-bottomnav a.active { color: var(--cream); }
.srn-bottomnav .srn-cart-badge { top: -4px; right: 12px; }

/* ---------- Toast/util ---------- */
.srn-empty { text-align: center; padding: 50px 20px; color: var(--muted-foreground); }
.srn-empty i { font-size: 34px; color: var(--sage); display: block; margin-bottom: 12px; }
.srn-empty b { display: block; font-family: var(--font-serif); font-size: 22px; color: var(--ink); margin-bottom: 6px; font-weight: 400; }

/* Hide legacy artifacts inside new shell if any leak */
.srn-body .preloader, .srn-body #preloader { display: none !important; }

/* ---------- Cart drawer (slide-in from right) ----------
   #cart-dropdown is the shell the cart HTML is injected into. The legacy theme
   parked it off-screen with a right:-1265px trick; these rules replace that
   with a plain transform drawer so it works on every page. */
.srn-body #cart-dropdown {
  position: fixed !important;
  top: 0 !important; right: 0 !important; bottom: 0 !important; left: auto !important;
  width: min(410px, 92vw) !important; max-width: none !important;
  height: 100% !important;
  background: var(--cream);
  z-index: 1000000 !important;
  transform: translateX(105%);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
  box-shadow: -18px 0 60px oklch(22% .02 150 / .18);
  display: flex !important; flex-direction: column;
  overflow: hidden;
  visibility: hidden;
}
.srn-body #cart-dropdown.open { transform: translateX(0); visibility: visible; }
.srn-cart-mask {
  position: fixed; inset: 0; z-index: 999998;
  background: oklch(22% .02 150 / .45);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.srn-cart-mask.open { opacity: 1; visibility: visible; }
.srn-body.srn-cart-open { overflow: hidden; }
/* legacy overlay no longer used — stop it stacking a second scrim */
.srn-body .closeMask { display: none !important; }

/* ---------- Mobile header: centred logo ---------- */
@media (max-width: 767.98px) {
  .srn-header-in { position: relative; }
  .srn-header-in .srn-logo {
    position: absolute; left: 50%; transform: translateX(-50%);
    margin: 0; white-space: nowrap;
  }
  .srn-header-in .srn-logo-name { font-size: 23px; }
  .srn-header-acts { margin-left: auto; }
}

/* ---------- Listing pages (shop/category) reskin ----------
   The filter/sort markup keeps its legacy classes for the AJAX JS;
   these overrides only change the look. */
.srn-body .filter-section { background: transparent; }
.srn-body .filter-acc {
  background: #fff !important; border: 1px solid var(--border) !important;
  border-radius: 16px !important; margin-bottom: 10px; overflow: hidden;
  box-shadow: none !important;
}
.srn-body .acc-btn {
  background: #fff !important; color: var(--ink) !important;
  font-family: var(--font-sans) !important; font-size: 13px !important; font-weight: 600 !important;
  letter-spacing: .08em; text-transform: uppercase;
  border: 0 !important; border-radius: 0 !important;
  padding: 14px 16px !important; width: 100% !important;
}
.srn-body .acc-body { background: #fff !important; }
.srn-body .btn-apply, .srn-body .apply_filter, .srn-body #mApplyBtn {
  background: var(--sage-deep) !important; color: var(--cream) !important;
  border: 0 !important; border-radius: 9999px !important;
  font-weight: 600 !important; letter-spacing: .04em;
  padding: 12px 20px !important; box-shadow: none !important;
}
.srn-body .shop-topbar {
  background: #fff !important; border: 1px solid var(--border) !important;
  border-radius: 9999px !important; box-shadow: none !important;
}
.srn-body #sort, .srn-body .single-select {
  border: 1px solid var(--border) !important; border-radius: 9999px !important;
  background: #fff !important; color: var(--ink) !important; font-size: 13px !important;
}
.srn-body .pill {
  border-radius: 9999px !important; border: 1px solid var(--border) !important;
  background: #fff !important; color: oklch(22% .02 150 / .8) !important;
  font-size: 13px !important;
}
.srn-body .pill.active {
  background: var(--secondary) !important; border-color: var(--sage-deep) !important;
  color: var(--sage-deep) !important;
}
.srn-body .nice-pagination .page-link,
.srn-body .nice-pagination .page-item span {
  border-radius: 9999px !important; border: 1px solid var(--border) !important;
  background: #fff; color: var(--ink);
}
.srn-body .nice-pagination .page-item.active .page-link {
  background: var(--sage-deep) !important; border-color: var(--sage-deep) !important; color: var(--cream) !important;
}

/* ---------- Legacy CSS defense ---------- */
/* Old theme CSS applies width:100%/heights to generic buttons & inputs.
   Re-assert sane boxes for everything inside srn components. */
.srn-btn { width: auto; }
.srn-btn-block { width: 100% !important; }
.srn-topbar a, .srn-nav a, .srn-catnav a, .srn-footer a { text-decoration: none; }
.srn-header-act { line-height: 1.2; }
.srn-qty button { width: 38px !important; height: 42px !important; }
.srn-hero-dots button { width: 22px !important; height: 4px !important; }
.srn-news-form button { width: auto; }
.srn-card, .srn-card * { box-sizing: border-box; }
.srn-body h1, .srn-body h2, .srn-body h3 { margin-top: 0; }
.srn-crumb { list-style: none; }
