/* ==========================================================================
   Storly — bright grocery retail.

   Two grounds, not one: a white canvas for most of the page, and a deep
   teal band (--deep) that carries buttons, active tabs and feature strips.
   The bright palette (amber, fresh green) is legible on the teal, not on
   white — so it is used for fills and badges there, never as body text.
   ========================================================================== */

:root {
    --ink: #1a1a1a;
    --ink-2: #5b6670;
    --ink-3: #6b7280;          /* 5.0:1 on white — the lightest grey that clears AA */
    --ground: #ffffff;
    --surface: #f7f8f9;
    --line: #e5e7eb;
    --danger: #b42318;

    /* Pastel card grounds used by the promo bento. */
    --tint-mint: #eefbe6;
    --tint-cream: #fff7cd;
    --tint-rose: #ffeceb;

    --space: clamp(48px, 6vw, 80px);
    --shadow-sm: 0 1px 2px rgba(16, 40, 48, .06);
    --shadow-md: 0 6px 20px rgba(16, 40, 48, .08);
    --shadow-lg: 0 16px 40px rgba(16, 40, 48, .12);
}

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

body {
    font-family: var(--font-body, system-ui, sans-serif);
    color: var(--ink);
    background: var(--ground);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading, var(--font-body));
    font-weight: var(--heading-weight, 700);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Accessibility -------------------------------------------------------- */

:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--deep); color: var(--on-deep); padding: 10px 16px; }
.skip-link:focus { left: 0; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Primitives ----------------------------------------------------------- */

.wrap { max-width: var(--page-width, 1320px); margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); }
.section { padding-block: var(--space); }
.section + .section { padding-top: 0; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--deep); color: var(--on-deep); border: 1px solid var(--deep);
    font-size: 15px; font-weight: 600; padding: 12px 28px;
    border-radius: 999px; cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn svg { width: 16px; height: 16px; }

.btn-accent { background: var(--accent); border-color: var(--accent); color: #1a1a1a; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--surface); }
.btn-light { background: var(--ground); color: var(--deep); border-color: var(--ground); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.pill-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--fresh); color: #16351a; font-size: 12px; font-weight: 700;
    padding: 5px 12px; border-radius: 999px;
}

/* Centred section header, the pattern every home row uses. */
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); }
.section-head p { color: var(--ink-3); margin-top: 6px; font-size: 15px; }
.section-head.is-split { display: flex; align-items: baseline; justify-content: space-between; text-align: left; gap: 16px; flex-wrap: wrap; }
.section-head .view-all { font-size: 14px; font-weight: 600; color: var(--deep); display: inline-flex; align-items: center; gap: 4px; }
.section-head .view-all:hover { text-decoration: underline; }
/* A narrow section (FAQ) keeps its heading on the same measure as its body. */
.section-head.is-narrow { max-width: 760px; margin-inline: auto; }

/* Social list snippet */
.nk-social { list-style: none; padding: 0; margin: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.nk-social a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; }
.nk-social svg { width: 18px; height: 18px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .4s ease-out, transform .4s ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Header --------------------------------------------------------------- */

.announcement { text-align: center; font-size: 13px; padding: 9px 16px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.announcement-light { background: var(--surface); color: var(--ink-2); border-bottom: 1px solid var(--line); }
.announcement-dark { background: var(--deep); color: var(--on-deep); }
.announcement a { text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
.announcement-light a { color: var(--deep); }

.site-header { background: var(--ground); border-bottom: 1px solid var(--line); }
.has-sticky-header .site-header { position: sticky; top: 0; z-index: 30; }

.header-main {
    max-width: var(--page-width, 1320px); margin: 0 auto;
    padding: 16px clamp(16px, 4vw, 32px);
    display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: var(--deep); letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

.header-search { flex: 1; max-width: 560px; }
.header-search form { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 18px; }
.header-search .search-icon { color: var(--ink-3); flex: none; }
.header-search input { flex: 1; border: 0; background: transparent; font-size: 14px; outline: none; }
.header-search button { border: 0; background: var(--deep); color: var(--on-deep); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }

.header-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.header-action { display: flex; align-items: center; gap: 10px; }
.header-action .chip {
    width: 42px; height: 42px; border-radius: 50%; background: var(--surface);
    display: grid; place-items: center; color: var(--deep); position: relative; flex: none;
}
.header-action .meta { display: flex; flex-direction: column; line-height: 1.25; }
.header-action .meta small { font-size: 11px; color: var(--ink-3); }
.header-action .meta strong { font-size: 13px; font-weight: 700; }
.count-dot {
    position: absolute; top: -2px; right: -2px; background: var(--accent); color: #1a1a1a;
    font-size: 10px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 999px;
    display: grid; place-items: center; padding: 0 5px;
}

.header-nav-bar { border-top: 1px solid var(--line); background: var(--ground); }
.header-nav-inner {
    max-width: var(--page-width, 1320px); margin: 0 auto;
    padding: 10px clamp(16px, 4vw, 32px);
    display: flex; align-items: center; gap: 26px;
}
.header-nav { display: flex; gap: 26px; font-size: 14px; font-weight: 600; }
.header-support { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.header-support .chip { width: 38px; height: 38px; }
.header-support .meta { display: flex; flex-direction: column; line-height: 1.25; }
.header-support .meta small { font-size: 11px; color: var(--ink-3); }
.header-support .meta strong { font-size: 13px; font-weight: 800; color: var(--deep); }

/* An action that carries a dropdown (Account). */
.header-action.has-menu { position: relative; }
.header-action.has-menu > a { display: flex; align-items: center; gap: 10px; }
.header-action.has-menu .nav-dropdown { left: auto; right: 0; }
.header-action.has-menu:hover .nav-dropdown, .header-action.has-menu:focus-within .nav-dropdown { display: block; }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; background: var(--fresh); color: #16351a; display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 22px; height: 22px; }

.nav-item { position: relative; display: inline-block; }
.nav-caret { font-size: .6em; margin-left: 4px; opacity: .6; }
.nav-dropdown {
    position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--ground);
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 8px 0; display: none; z-index: 50;
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { display: block; }
.nav-dropdown a { display: block; padding: 9px 18px; white-space: nowrap; font-size: 14px; font-weight: 500; }
.nav-dropdown a:hover { background: var(--surface); color: var(--deep); }

.nav-toggle { display: none; border: 0; background: transparent; cursor: pointer; padding: 8px; color: var(--ink); }
@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .header-nav { display: none; }
    .header-nav.is-open { display: flex; flex-direction: column; gap: 2px; position: absolute; left: 0; right: 0; top: 100%; background: var(--ground); border-bottom: 1px solid var(--line); padding: 12px clamp(16px, 4vw, 32px) 18px; z-index: 29; }
    .header-nav-inner { position: relative; }
    .header-search { display: none; }
    .header-action .meta { display: none; }
    .header-support { display: none; }
}

/* Hero / slideshow ------------------------------------------------------ */

.hero { position: relative; display: grid; align-items: center; overflow: hidden; border-radius: 0; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 60%, transparent 100%); }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: var(--page-width, 1320px); margin: 0 auto; padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 32px); display: grid; gap: 16px; justify-items: start; }
.hero-inner.align-center { justify-items: center; text-align: center; }
.hero-inner.align-right { justify-items: end; text-align: right; }
.hero-flags { display: flex; align-items: center; gap: 10px; }
.hero-flags .eyebrow { color: #fff; opacity: .9; }
.hero h1 { font-size: clamp(30px, 5vw, 56px); max-width: 16ch; }
.hero p { max-width: 46ch; font-size: clamp(14px, 1.4vw, 17px); }
.hero.on-image, .hero.on-image h1, .hero.on-image p { color: #fff; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.slideshow { position: relative; }
.slideshow-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slideshow-track::-webkit-scrollbar { display: none; }
.slideshow-slide { flex: 0 0 100%; scroll-snap-align: start; }
.slideshow-dots { display: flex; gap: 8px; justify-content: center; padding-top: 16px; }
.slideshow-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; }
.slideshow-dots button[aria-current="true"] { background: var(--deep); width: 26px; border-radius: 999px; }

/* Category circles ------------------------------------------------------ */

.category-rail { display: flex; gap: clamp(12px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.category-rail::-webkit-scrollbar { display: none; }
.category-tile { flex: 0 0 auto; width: 128px; text-align: center; scroll-snap-align: start; }
.category-tile .thumb {
    width: 112px; height: 112px; margin: 0 auto 12px; border-radius: 50%;
    background: var(--surface); overflow: hidden; display: grid; place-items: center;
    transition: transform .25s ease, box-shadow .25s ease;
}
.category-tile:hover .thumb { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.category-tile img { width: 100%; height: 100%; object-fit: cover; }
.category-tile span { font-size: 14px; font-weight: 600; }
.category-tile small { display: block; font-size: 12px; color: var(--ink-3); }

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: clamp(16px, 2vw, 28px); justify-items: center; }

/* Promo bento ----------------------------------------------------------- */

.promo-bento { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.promo-bento .promo-card:first-child { grid-row: span 1; }
.promo-bento .promo-card:last-child { grid-row: span 2; grid-column: 2; }
@media (max-width: 860px) {
    .promo-bento { grid-template-columns: 1fr; }
    .promo-bento .promo-card:last-child { grid-row: auto; grid-column: auto; }
}

.promo-card {
    position: relative; border-radius: var(--radius); overflow: hidden;
    padding: clamp(20px, 3vw, 36px); min-height: 200px;
    display: flex; flex-direction: column; justify-content: center; gap: 10px;
    background: var(--tint-mint);
}
.promo-card.tint-cream { background: var(--tint-cream); }
.promo-card.tint-rose { background: var(--tint-rose); }
.promo-card.has-image { background: var(--surface); }
.promo-card .promo-bg { position: absolute; inset: 0; }
.promo-card .promo-bg img { width: 100%; height: 100%; object-fit: cover; }
.promo-card .promo-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.45)); }
.promo-card .promo-body { position: relative; z-index: 1; display: grid; gap: 10px; justify-items: start; max-width: 26ch; }
.promo-card h3 { font-size: clamp(19px, 2.2vw, 26px); }
.promo-card p { font-size: 14px; color: var(--ink-2); }
.promo-card.on-image h3, .promo-card.on-image p { color: #fff; }
.promo-card.on-image p { opacity: .92; }

/* Tabbed product rows --------------------------------------------------- */

.tab-strip { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.tab-strip button {
    border: 1px solid var(--line); background: var(--ground); color: var(--ink-2);
    font-size: 14px; font-weight: 600; padding: 9px 20px; border-radius: 999px; cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.tab-strip button:hover { border-color: var(--deep); color: var(--deep); }
.tab-strip button[aria-selected="true"] { background: var(--deep); border-color: var(--deep); color: var(--on-deep); }
.tab-panel[hidden] { display: none; }

/* Product grid & cards --------------------------------------------------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: clamp(14px, 1.6vw, 24px); }

.products-carousel { display: flex !important; grid-template-columns: none !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; }
.products-carousel::-webkit-scrollbar { display: none; }
.products-carousel > * { flex: 0 0 calc(100% / var(--carousel-cols, 5) - 20px); min-width: 190px; scroll-snap-align: start; }
@media (max-width: 640px) { .grid[style*="grid-template-columns"] { grid-template-columns: repeat(2, 1fr) !important; } }

.card {
    display: flex; flex-direction: column; background: var(--ground);
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.card-media { position: relative; aspect-ratio: var(--card-ratio, 1); background: var(--surface); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card-media img { transform: scale(1.05); }

.card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 1; }
.badge { font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; background: var(--sale); color: #11330a; }
.badge-out { background: var(--ink-3); color: #fff; }

.card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 14px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-3); }
.card-rating svg { width: 13px; height: 13px; fill: var(--accent); }
.card-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.card-price strong { font-size: 16px; font-weight: 800; color: var(--deep); }
.card-price s { font-size: 13px; color: var(--ink-3); }
.card-cta { margin-top: 10px; }

/* Stock meter, used by the highlighted "new launch" card. */
.stock-meter { margin-top: 8px; }
.stock-meter .bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.stock-meter .fill { height: 100%; background: var(--accent); }
.stock-meter .legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: 5px; }

/* Testimonials ---------------------------------------------------------- */

.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testimonial { background: var(--surface); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; }
.testimonial .who { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.testimonial .who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.testimonial blockquote { font-size: 15px; color: var(--ink-2); }
.testimonial .stars { display: flex; gap: 2px; }
.testimonial .stars svg { width: 15px; height: 15px; fill: var(--accent); }
.testimonial .linked-product { display: flex; align-items: center; gap: 12px; background: var(--ground); border-radius: var(--radius); padding: 10px; }
.testimonial .linked-product img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--surface); }
.testimonial .linked-product p { font-size: 13px; font-weight: 600; }
.testimonial .linked-product span { font-size: 13px; font-weight: 800; color: var(--deep); }
.testimonial .linked-product s { font-size: 12px; color: var(--ink-3); margin-left: 6px; font-weight: 400; }

/* Blog ------------------------------------------------------------------ */

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--ground); border: 1px solid var(--line); transition: box-shadow .25s ease, transform .25s ease; }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post-card .thumb { aspect-ratio: 16 / 10; background: var(--surface); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 16px; display: grid; gap: 8px; }
.post-card .meta { font-size: 12px; color: var(--ink-3); }
.post-card h3 { font-size: 16px; line-height: 1.35; }
.post-card p { font-size: 14px; color: var(--ink-2); }
.post-card .more { font-size: 13px; font-weight: 700; color: var(--deep); }

/* Marquee --------------------------------------------------------------- */

.marquee { background: var(--deep); color: var(--on-deep); overflow: hidden; padding: 14px 0; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee-scroll var(--marquee-speed, 40s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.marquee-item::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fresh); flex: none; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* Newsletter ------------------------------------------------------------ */

.newsletter { background: var(--deep); color: var(--on-deep); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); text-align: center; display: grid; gap: 14px; justify-items: center; }
.newsletter h2 { font-size: clamp(22px, 2.6vw, 30px); }
.newsletter p { opacity: .85; font-size: 15px; }
.newsletter form { display: flex; gap: 8px; width: min(520px, 100%); background: var(--ground); border-radius: 999px; padding: 6px; }
.newsletter input { flex: 1; border: 0; background: transparent; padding: 0 16px; font-size: 14px; color: var(--ink); outline: none; }
.newsletter small { font-size: 12px; opacity: .7; }
.newsletter .status { font-size: 14px; font-weight: 600; }

/* Product page ----------------------------------------------------------- */

.grid-section, .pdp, .prose-page { max-width: var(--page-width, 1320px); margin: 0 auto; padding: var(--space) clamp(16px, 4vw, 32px); }
.grid-section h1, .grid-section h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 20px; }
.muted { color: var(--ink-3); font-size: 14px; margin-bottom: 16px; }

.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } }
.pdp-gallery { display: grid; gap: 12px; }
.pdp-gallery img { border-radius: var(--radius); background: var(--surface); width: 100%; }
.pdp-info h1 { font-size: clamp(22px, 2.8vw, 32px); margin-bottom: 10px; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pdp-price strong { font-size: 28px; font-weight: 800; color: var(--deep); }
.pdp-price s { font-size: 17px; color: var(--ink-3); }
.pdp-description { margin-top: 24px; color: var(--ink-2); font-size: 15px; }
.sold-out { color: var(--danger); font-weight: 700; }

.pdp-specs { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.pdp-specs th { text-align: left; font-weight: 600; padding: 10px 12px 10px 0; color: var(--ink-3); width: 35%; vertical-align: top; }
.pdp-specs td { padding: 10px 0; }
.pdp-specs tr { border-bottom: 1px solid var(--line); }

.flash-banner { display: inline-block; margin: 10px 0; padding: 8px 16px; background: var(--danger); color: #fff; border-radius: 999px; font-weight: 700; font-size: 13px; }
.flash-banner span { font-variant-numeric: tabular-nums; }

.restock-form { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.restock-form input[type="email"] { flex: 1; min-width: 190px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.restock-ok { font-weight: 600; margin: 12px 0; }

/* Product page blocks ----------------------------------------------------- */

.pdp-trustline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.pdp-trustline .stars { display: inline-flex; gap: 2px; }
.pdp-trustline .stars svg { width: 15px; height: 15px; fill: var(--accent); }
.pdp-trustline .stars svg.is-empty { fill: var(--line); }
.pdp-trustline .sold { font-weight: 600; color: var(--ink-2); }
.pdp-trustline .store-link { font-weight: 700; color: var(--deep); text-decoration: underline; }

.pdp-bullets { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.pdp-bullets li { position: relative; padding-left: 26px; font-size: 14px; color: var(--ink-2); }
.pdp-bullets li::before {
    content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px;
    border-radius: 50%; background: var(--fresh);
    /* A tick, drawn rather than shipped as an icon font. */
    background-image: linear-gradient(45deg, transparent 45%, #16351a 45%, #16351a 55%, transparent 55%),
                      linear-gradient(-45deg, transparent 45%, #16351a 45%, #16351a 55%, transparent 55%);
    background-size: 7px 2px, 4px 2px;
    background-position: 6px 8px, 3px 9px;
    background-repeat: no-repeat;
}

.pdp-label { font-size: 13px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.pdp-label .size-chart { font-weight: 600; font-size: 12px; color: var(--deep); text-decoration: underline; margin-left: auto; }

.pdp-variants { margin: 18px 0; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-option {
    border: 1px solid var(--line); background: var(--ground); color: var(--ink);
    border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.variant-option:hover:not(:disabled) { border-color: var(--deep); }
.variant-option[aria-checked="true"] { background: var(--deep); border-color: var(--deep); color: var(--on-deep); }
.variant-option:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.variant-option small { font-size: 10px; font-weight: 500; text-decoration: none; }

.pdp-qty { margin: 18px 0; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.qty-stepper button { width: 36px; height: 36px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; font-size: 17px; line-height: 1; }
.qty-stepper button:hover { background: var(--surface); }
.qty-stepper input { width: 48px; text-align: center; border: 0; background: transparent; font-weight: 700; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pdp-meta { margin: 22px 0; display: grid; gap: 8px; font-size: 13px; }
.pdp-meta > div { display: flex; gap: 10px; }
.pdp-meta dt { color: var(--ink-3); min-width: 92px; }
.pdp-meta dd { margin: 0; font-weight: 600; }

.pdp-share { display: flex; align-items: center; gap: 12px; font-size: 13px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.pdp-share span { color: var(--ink-3); font-weight: 700; }
.pdp-share a { font-weight: 600; color: var(--deep); }
.pdp-share a:hover { text-decoration: underline; }

/* Trust strip ------------------------------------------------------------- */

.trust-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.trust-item { display: grid; gap: 4px; justify-items: center; text-align: center; }
.trust-item strong { font-size: 15px; }
.trust-item span { font-size: 13px; color: var(--ink-3); }

/* Sticky buy bar --------------------------------------------------------- */

.pdp-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--ground); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(16, 40, 48, .1);
    padding: 10px clamp(12px, 3vw, 24px);
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
.pdp-sticky[hidden] { display: none; }
.pdp-sticky-inner { max-width: var(--page-width, 1320px); margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.pdp-sticky img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--surface); flex: none; }
.pdp-sticky-info { flex: 1; min-width: 0; }
.pdp-sticky-info p { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdp-sticky-info strong { font-size: 15px; font-weight: 800; color: var(--deep); }
.pdp-sticky-info s { font-size: 13px; color: var(--ink-3); margin-left: 6px; }
.pdp-sticky .btn { flex: none; }
@media (max-width: 560px) {
    .pdp-sticky img { display: none; }
    .pdp-sticky .btn { padding-inline: 20px; }
}

/* Collection & search ---------------------------------------------------- */

.collection-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.sort-select { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--ground); }
.pager { display: flex; gap: 10px; margin-top: 36px; }

/* Collection layout -------------------------------------------------------- */

.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.breadcrumb a { color: var(--deep); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

.collection-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 900px) { .collection-layout { grid-template-columns: 1fr; } }

.filter-rail { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 96px; }
@media (max-width: 900px) { .filter-rail { position: static; } }
.filter-group { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.filter-group:last-of-type { border-bottom: 0; }
.filter-group h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.filter-range { display: flex; align-items: center; gap: 8px; }
.filter-range input { width: 100%; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.filter-check { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.filter-actions { display: grid; gap: 10px; justify-items: center; }
.filter-reset { font-size: 13px; color: var(--ink-3); text-decoration: underline; }
.filter-reset:hover { color: var(--deep); }

.collection-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.collection-toolbar .muted { margin: 0; }
.toolbar-controls { display: flex; align-items: center; gap: 10px; }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.view-toggle button { width: 34px; height: 34px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; color: var(--ink-3); display: grid; place-items: center; }
.view-toggle button[aria-pressed="true"] { background: var(--deep); color: var(--on-deep); }

/* List view reuses the same card markup, laid out sideways. */
.grid.is-list { grid-template-columns: 1fr !important; }
.grid.is-list .card { flex-direction: row; align-items: stretch; }
.grid.is-list .card-media { width: 180px; flex: none; aspect-ratio: 1; }
.grid.is-list .card-body { padding: 18px 20px; }
.grid.is-list .card-title { -webkit-line-clamp: 1; font-size: 16px; }
.grid.is-list .card-cta { max-width: 200px; }
@media (max-width: 560px) {
    .grid.is-list .card-media { width: 110px; }
    .grid.is-list .card-body { padding: 12px 14px; }
}

/* Collection top banner ------------------------------------------------------ */

.collection-banner {
    position: relative; border-radius: var(--radius); overflow: hidden;
    padding: clamp(28px, 5vw, 56px); display: grid; gap: 12px; justify-items: start;
    background: var(--tint-mint); min-height: 200px; align-content: center;
}
.collection-banner .banner-bg { position: absolute; inset: 0; }
.collection-banner .banner-bg img { width: 100%; height: 100%; object-fit: cover; }
.collection-banner .banner-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.5), transparent 70%); }
.collection-banner .banner-body { position: relative; z-index: 1; display: grid; gap: 10px; justify-items: start; max-width: 34ch; }
.collection-banner h2 { font-size: clamp(24px, 3.4vw, 38px); }
.collection-banner p { color: var(--ink-2); }
.collection-banner.on-image h2, .collection-banner.on-image p { color: #fff; }

/* Cart -------------------------------------------------------------------- */

.cart-lines { display: flex; flex-direction: column; margin: 20px 0; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto auto auto; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.cart-line-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-line-info a { font-weight: 600; font-size: 14px; }
.cart-qty { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.cart-qty button { width: 34px; height: 34px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; }
.cart-qty button:hover { background: var(--surface); }
.cart-remove { border: 0; background: transparent; color: var(--ink-3); cursor: pointer; padding: 8px; }
.cart-remove:hover { color: var(--danger); }
.cart-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; }
@media (max-width: 600px) {
    .cart-line { grid-template-columns: 56px 1fr auto; }
    .cart-line img { width: 56px; height: 56px; }
}

/* Cart extras -------------------------------------------------------------- */

.cart-freeship { background: var(--tint-mint); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; }
.cart-freeship p { font-size: 14px; margin-bottom: 10px; }
.freeship-bar { height: 8px; border-radius: 999px; background: rgba(4, 83, 92, .12); overflow: hidden; }
.freeship-bar span { display: block; height: 100%; background: var(--deep); border-radius: 999px; transition: width .4s ease; }

.cart-panels { display: flex; justify-content: flex-end; margin-top: 24px; }
.cart-summary-card { width: min(420px, 100%); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
.cart-summary-card h2 { font-size: 17px; }
.cart-discount { display: flex; gap: 8px; }
.cart-discount input { flex: 1; min-width: 0; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.cart-discount-status { font-size: 13px; color: var(--ink-2); }
.cart-discount-status:empty { display: none; }
.cart-totals { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.cart-totals > div { display: flex; justify-content: space-between; font-size: 15px; }
.cart-totals dt { color: var(--ink-2); }
.cart-totals dd { margin: 0; font-weight: 800; color: var(--deep); }
.cart-continue { text-align: center; font-size: 14px; color: var(--ink-3); text-decoration: underline; }
.cart-continue:hover { color: var(--deep); }
.btn.is-disabled { opacity: .5; pointer-events: none; }

/* PDP information tabs ------------------------------------------------------- */

.pdp-tabs { margin-top: var(--space); }
.pdp-tabs .tab-strip { justify-content: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 0; margin-bottom: 0; gap: 4px; }
.pdp-tabs .tab-strip button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; padding: 14px 20px; }
.pdp-tabs .tab-strip button[aria-selected="true"] { background: transparent; color: var(--deep); border-bottom-color: var(--deep); }
.pdp-tabs .tab-panel { padding-top: 24px; color: var(--ink-2); font-size: 15px; }
.pdp-tabs .tab-panel h3 { color: var(--ink); font-size: 17px; margin-bottom: 10px; }

/* Wishlist / compare row ------------------------------------------------------ */

.pdp-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; font-weight: 600; }
.pdp-actions button { border: 0; background: transparent; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 0; }
.pdp-actions button:hover { color: var(--deep); }
.pdp-actions svg { width: 15px; height: 15px; }

.pdp-payments { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.pdp-payments .method { border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; font-size: 11px; font-weight: 700; color: var(--ink-2); background: var(--ground); }

/* Editorial pages --------------------------------------------------------- */

.prose-page { max-width: 760px; }
.prose-page .cover { border-radius: var(--radius); margin-bottom: 24px; }
.prose-page h1 { font-size: clamp(24px, 3.2vw, 38px); margin: 8px 0 18px; }
.prose-page .content { font-size: 16px; color: var(--ink-2); }
.prose-page .content p { margin-bottom: 16px; }

/* Rich text / blocks ------------------------------------------------------ */

.rich-text { padding-block: var(--space); }
.rich-text-inner { max-width: 700px; margin: 0 auto; display: grid; gap: 14px; }
.rich-text[style*="center"] .rich-text-inner { justify-items: center; }
.rich-text-heading { font-size: clamp(24px, 3vw, 34px); }
.rich-text-body { color: var(--ink-2); }
.rich-text-divider { border: 0; border-top: 1px solid var(--line); width: 100%; margin: 8px 0; }
.rich-text-empty { color: var(--ink-3); font-size: .9em; }

.flexible-content { padding-block: var(--space); }
.flexible-content-inner { max-width: 700px; margin: 0 auto; }
.tb-heading { font-size: clamp(20px, 3vw, 28px); margin-bottom: 10px; }
.tb-paragraph { color: var(--ink-2); margin-bottom: 14px; }
.tb-group { padding: 12px 0; }

/* Image with text --------------------------------------------------------- */

.image-text { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.image-text.media-right > .image-text-media { order: 2; }
.image-text.no-media { grid-template-columns: 1fr; max-width: 680px; margin-inline: auto; text-align: center; }
.image-text-media img { width: 100%; border-radius: var(--radius); }
.image-text-body { display: grid; gap: 14px; justify-items: start; }
.image-text-body h2 { font-size: clamp(24px, 3vw, 36px); }
.image-text-body p { color: var(--ink-2); }
@media (max-width: 760px) {
    .image-text { grid-template-columns: 1fr; }
    .image-text.media-right > .image-text-media { order: 0; }
}

/* Multicolumn ------------------------------------------------------------- */

.multicolumn { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(20px, 3vw, 36px); }
.multicolumn-item { display: grid; gap: 10px; justify-items: center; text-align: center; }
.multicolumn-item img { width: 100%; border-radius: var(--radius); }
.multicolumn-item h3 { font-size: 16px; }
.multicolumn-item p { font-size: 14px; color: var(--ink-2); }

/* Collapsible ------------------------------------------------------------- */

.collapsible { max-width: 760px; margin-inline: auto; }
.collapsible details { border-bottom: 1px solid var(--line); }
.collapsible summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; }
.collapsible summary::-webkit-details-marker { display: none; }
.collapsible summary::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 2px solid var(--deep); border-bottom: 2px solid var(--deep); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease; }
.collapsible details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.collapsible .collapsible-body { padding-bottom: 18px; color: var(--ink-2); }

/* Video -------------------------------------------------------------------- */

.video-section .video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.video-section iframe, .video-section video { width: 100%; height: 100%; border: 0; }

/* Account pages (login & register) ------------------------------------------- */

.login-section, .register-section { max-width: var(--page-width, 1320px); margin: 0 auto; padding: var(--space) clamp(16px, 4vw, 32px); display: grid; place-items: center; }
.login-card, .register-card { width: min(440px, 100%); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); display: grid; gap: 14px; box-shadow: var(--shadow-sm); }
.login-heading, .register-heading { font-size: clamp(21px, 2.4vw, 26px); }
.login-sub, .register-sub { font-size: 14px; color: var(--ink-3); margin-top: -8px; }
.login-label, .register-label { font-size: 13px; font-weight: 700; display: block; margin-bottom: 6px; }
.login-input, .register-input {
    width: 100%; padding: 12px 16px; border: 1px solid var(--line);
    border-radius: 999px; font-size: 14px; background: var(--ground);
}
.login-input:focus, .register-input:focus { border-color: var(--deep); outline: none; }
.login-button, .register-button {
    width: 100%; background: var(--deep); color: var(--on-deep); border: 1px solid var(--deep);
    font-size: 15px; font-weight: 700; padding: 13px 24px; border-radius: 999px; cursor: pointer;
    transition: opacity .2s ease;
}
.login-button:hover, .register-button:hover { opacity: .9; }
.login-button-secondary { background: transparent; color: var(--deep); border-color: var(--line); }
.login-remember { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.login-divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-code { display: flex; gap: 8px; }
.login-code input { flex: 1; text-align: center; letter-spacing: .3em; font-weight: 700; }
.login-error, .register-error { background: #fdecea; color: var(--danger); font-size: 13px; padding: 10px 14px; border-radius: 8px; }
.login-status, .register-status { font-size: 13px; color: var(--ink-2); }
.register-alt { font-size: 13px; text-align: center; color: var(--ink-3); }
.register-alt a { color: var(--deep); font-weight: 700; text-decoration: underline; }

/* Product page odds and ends -------------------------------------------------- */

.pdp-sku { font-size: 13px; color: var(--ink-3); }
.pdp-divider { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.pdp-custom-text { font-size: 14px; color: var(--ink-2); }
.personalization-field { margin: 16px 0; display: grid; gap: 6px; }
.personalization-field label { font-size: 13px; font-weight: 700; }
.personalization-field input { padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.collection-results { min-width: 0; }
.rich-text-btn { margin-top: 4px; }

/* Search again ---------------------------------------------------------------- */

.search-again { display: flex; gap: 8px; max-width: 520px; margin: 16px 0 24px; }
.search-again input { flex: 1; min-width: 0; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: var(--surface); }

/* Article foot ---------------------------------------------------------------- */

.article-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-foot .pdp-share { margin: 0; padding: 0; border: 0; }

/* Footer -------------------------------------------------------------------- */

.site-footer { background: var(--deep); color: var(--on-deep); margin-top: var(--space); }
.footer-inner { max-width: var(--page-width, 1320px); margin: 0 auto; padding: var(--space) clamp(16px, 4vw, 32px); display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; }
.site-footer h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer p, .site-footer a { font-size: 14px; opacity: .85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.footer-brand .brand { color: var(--on-deep); margin-bottom: 12px; }
.footer-brand p { margin-bottom: 14px; }
.footer-social { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; font-weight: 600; }
.footer-payments {
    max-width: var(--page-width, 1320px); margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 32px) 24px;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; opacity: .85;
}
.footer-payments .method { border: 1px solid rgba(255,255,255,.28); border-radius: 6px; padding: 5px 10px; font-size: 11px; font-weight: 700; }

.footer-trust {
    max-width: var(--page-width, 1320px); margin: 0 auto;
    padding: 24px clamp(16px, 4vw, 32px);
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px;
    border-top: 1px solid rgba(255,255,255,.15);
}
.footer-trust-item { display: grid; gap: 2px; }
.footer-trust-item strong { font-size: 14px; }
.footer-trust-item span { font-size: 13px; opacity: .75; }

.footer-legal {
    max-width: var(--page-width, 1320px); margin: 0 auto;
    padding: 18px clamp(16px, 4vw, 32px);
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,.15); font-size: 12px; opacity: .8;
}
.footer-legal .legal-links { display: flex; gap: 16px; }
.footer-legal a:hover { text-decoration: underline; }
.powered { text-align: center; font-size: 12px; opacity: .7; padding: 18px; border-top: 1px solid rgba(255,255,255,.15); }

/* Floating WhatsApp ---------------------------------------------------------- */

.wa-float { position: fixed; bottom: 22px; right: 22px; z-index: 60; width: 52px; height: 52px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .15s ease; }
.wa-float:hover { transform: scale(1.07); }
