/* ==========================================================================
   ZenAgroFoods homepage
   Loaded after main.css. Everything is scoped under .zag so the vendor theme
   is untouched outside the homepage sections that opt in.

   Palette comes from the product's own packaging: kraft pouches, ink print,
   turmeric, basil. Red is reserved for discounts and nothing else.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Public+Sans:ital,wght@0,400;0,500;0,600;1,400&family=DM+Mono:wght@400;500&display=swap');

.zag {
    --kraft:      #EDE4D3;
    --kraft-deep: #E2D5BE;
    --paper:      #FBF7F0;
    --ink:        #2A2118;
    --ink-soft:   #6B5D4C;
    --turmeric:   #D98A1F;
    --turmeric-d: #A8650F;
    --basil:      #2F4A33;
    --basil-soft: #4C6B50;
    --chilli:     #B02B1E;

    /* Surfaces that stay dark in both schemes, and the text that sits on
       them. Kept separate from --ink/--paper, which invert. */
    --panel:   #2F4A33;
    --rail:    #2A2118;
    --on-dark: #FBF7F0;
    --on-dark-soft: #C9D3C7;

    --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
    --body:    'Public Sans', ui-sans-serif, system-ui, sans-serif;
    --mono:    'DM Mono', ui-monospace, 'SFMono-Regular', monospace;

    --gut: clamp(1rem, 4vw, 2.5rem);
    --maxw: 1320px;

    font-family: var(--body);
    color: var(--ink);
    background: var(--paper);
}

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

.zag-wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gut);
}

/* ---------- type ---------- */

.zag h1, .zag h2, .zag h3, .zag h4, .zag .zag-display {
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.98;
    color: var(--ink);
    margin: 0;
}

.zag p { margin: 0; line-height: 1.6; color: var(--ink-soft); }

/* The eyebrow is set in mono because it behaves like printed packet data:
   short, fixed-width, all caps, sitting above the name of the thing. */
.zag-eyebrow {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--turmeric-d);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.zag-eyebrow::before {
    content: "";
    width: 1.6rem;
    height: 1px;
    background: currentColor;
    flex: none;
}

.zag-h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.zag-h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }

.zag-lede {
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    max-width: 54ch;
}

/* ---------- section shell ---------- */

.zag-section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.zag-section--paper { background: var(--paper); }
.zag-section--kraft { background: var(--kraft); }
.zag-section--ink   { background: var(--panel); color: var(--on-dark); }
.zag-section--ink p { color: var(--on-dark-soft); }
.zag-section--ink .zag-h2,
.zag-section--ink h3 { color: var(--on-dark); }
.zag-section--ink .zag-eyebrow { color: var(--turmeric); }

.zag-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.zag-head__text { max-width: 46ch; display: grid; gap: 0.9rem; }

/* ---------- buttons ---------- */

.zag-btn {
    --btn-bg: var(--ink);
    --btn-fg: var(--paper);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--body);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    border: 1px solid var(--btn-bg);
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}

.zag-btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.zag-btn--amber { --btn-bg: var(--turmeric); --btn-fg: #241803; }
.zag-btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--ink);
    border-color: color-mix(in srgb, var(--ink) 30%, transparent);
}
.zag-btn--ghost:hover { background: var(--ink); color: var(--paper); }

.zag :focus-visible {
    outline: 3px solid var(--turmeric);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ==========================================================================
   Spec rail - the signature.
   A printed strip of fixed facts, the way a packet carries them. It appears
   under the hero and again as a section divider.
   ========================================================================== */

.zag-rail {
    background: var(--rail);
    color: var(--on-dark);
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    overflow: hidden;
}

.zag-rail__track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding-block: 0.85rem;
    white-space: nowrap;
    width: max-content;
    animation: zag-marquee 42s linear infinite;
}

.zag-rail__item { display: inline-flex; align-items: center; gap: 0.7rem; }
.zag-rail__item::after {
    content: "";
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--turmeric);
}

@keyframes zag-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .zag-rail__track {
        animation: none;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        white-space: normal;
    }
}

/* ==========================================================================
   Hero
   One statement, one pack shot. The vendor theme shipped a four-slide
   carousel whose slides said nearly the same thing; the slides are kept as
   admin content but demoted to a switcher so the first thing read is a claim,
   not a rotation.
   ========================================================================== */

.zag-hero {
    background: var(--kraft);
    position: relative;
    overflow: hidden;
    padding-block: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.zag-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.zag-hero__text { display: grid; gap: 1.5rem; }

.zag-hero h1 {
    font-size: clamp(2.6rem, 7.2vw, 5.4rem);
    letter-spacing: -0.045em;
}

.zag-hero h1 em {
    font-style: normal;
    color: var(--turmeric-d);
}

.zag-hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.zag-hero__media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: clamp(18rem, 36vw, 30rem);
}

/* A single flat disc behind the pack shot. The vendor theme layered five
   decorative PNGs here; one shape reads as deliberate, five read as clip art. */
.zag-hero__media::before {
    content: "";
    position: absolute;
    inset: 8% 6%;
    border-radius: 50%;
    background: var(--paper);
}

.zag-hero__media img {
    position: relative;
    max-width: 100%;
    max-height: clamp(18rem, 36vw, 30rem);
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 24px 40px rgba(42, 33, 24, 0.22));
}

.zag-hero__slides {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-bottom: 2rem;
    border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
    padding-top: 1.25rem;
}

.zag-hero__slide-btn {
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.zag-hero__slide-btn[aria-selected="true"] {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.zag-hero__panel[hidden] { display: none; }

/* ==========================================================================
   Method - the step the old homepage never had.
   Numbered because this genuinely is a sequence: the order is the process.
   ========================================================================== */

.zag-method__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.zag-step {
    display: grid;
    gap: 0.85rem;
    align-content: start;
    padding-top: 1.75rem;
    border-top: 2px solid var(--turmeric);
}

.zag-step__n {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: var(--turmeric);
}

.zag-step h3 { font-size: 1.35rem; }
.zag-step p { font-size: 0.95rem; }

/* ==========================================================================
   Ranges (categories) - shelf labels, not icon tiles
   ========================================================================== */

.zag-ranges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
}

.zag-range {
    position: relative;
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--paper);
    border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.zag-range:hover {
    transform: translateY(-4px);
    border-color: var(--turmeric);
    color: inherit;
}

/* Circular tile. Two of the category PNGs carry a transparency checkerboard
   baked into the file; a round crop on a solid bed hides it and gives the
   shelf a consistent shape whatever the artwork is. */
.zag-range__img {
    display: block;
    width: 7.5rem;
    height: 7.5rem;
    margin-inline: auto;
    border-radius: 50%;
    overflow: hidden;
    background: var(--kraft);
    position: relative;
}

.zag-range__img img {
    position: absolute;
    inset: 12%;
    width: 76%;
    height: 76%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.zag-range { text-align: center; justify-items: center; }

.zag-range__name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.zag-range__count {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* ==========================================================================
   Product card
   Every JS hook from the vendor card is preserved: direct-add-to-cart-form,
   directAddToCartFormSubmit, showProductDetailsModal, addToWishlist.
   ========================================================================== */

.zag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.zag-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
    border-radius: 18px;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.zag-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--ink) 28%, transparent);
    box-shadow: 0 18px 32px -24px rgba(42, 33, 24, 0.55);
}

/* aspect-ratio only sets a preferred size: a tall image stretches the box
   past it, which made some tiles in a row deeper than their neighbours and
   pushed their name, price and button down. Pinning the image inside an
   absolutely positioned frame makes every tile exactly square. */
.zag-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--kraft);
}

.zag-card__media img {
    position: absolute;
    inset: 1.25rem;
    width: calc(100% - 2.5rem);
    height: calc(100% - 2.5rem);
    object-fit: contain;
    mix-blend-mode: multiply;
}

.zag-card__off {
    position: absolute;
    inset-inline-start: 0.85rem;
    inset-block-start: 0.85rem;
    background: var(--chilli);
    color: #fff;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
}

.zag-card__tools {
    position: absolute;
    inset-inline-end: 0.75rem;
    inset-block-start: 0.75rem;
    display: grid;
    gap: 0.4rem;
    opacity: 0;
    transform: translateX(0.5rem);
    transition: opacity .2s ease, transform .2s ease;
}

.zag-card:hover .zag-card__tools,
.zag-card:focus-within .zag-card__tools { opacity: 1; transform: none; }

.zag-card__tool {
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
    text-decoration: none;
    font-size: 0.85rem;
}

.zag-card__tool:hover { background: var(--ink); color: var(--paper); }

.zag-card__body {
    display: grid;
    gap: 0.45rem;
    padding: 1.1rem 1.1rem 0;
    align-content: start;
    flex: 1;
}

/* Reserve two lines for the name so a one-line product does not lift its
   price and button above the cards either side of it. */
.zag-card__name { min-height: calc(2 * 1.2em); }

/* And keep the button on the baseline whatever the body contains. */
.zag-card__foot { margin-top: auto; }

/* Trending wraps each card in a filter div. The wrapper stretches to the row
   but the card inside it does not, so a card next to a taller neighbour - a
   variable-price product printing "from X to Y" over two lines - sat short
   and its button missed the shared baseline. */
.zag-filter-item { display: grid; }
.zag-grid > * > .zag-card { height: 100%; }

.zag-card__cat {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-decoration: none;
}

.zag-card__cat:hover { color: var(--turmeric-d); }

.zag-card__name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zag-card__name:hover { color: var(--turmeric-d); }

.zag-card__price {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    margin-top: 0.15rem;
}

.zag-card__price del {
    font-family: var(--body);
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-inline-start: 0.4rem;
}

.zag-card__foot { padding: 1rem 1.1rem 1.1rem; }
.zag-card__foot .zag-btn { width: 100%; justify-content: center; }

.zag-card__sold {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
}

.zag-meter {
    height: 5px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ink) 12%, transparent);
    overflow: hidden;
}

.zag-meter span { display: block; height: 100%; background: var(--turmeric); }

/* ---------- horizontal card, used in deals ---------- */

.zag-hcard {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    background: var(--paper);
    border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
    border-radius: 16px;
    padding: 0.9rem;
    transition: border-color .2s ease, transform .2s ease;
}

.zag-hcard:hover { border-color: var(--turmeric); transform: translateY(-3px); }

.zag-hcard__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--kraft);
    border-radius: 12px;
    overflow: hidden;
}

.zag-hcard__media img {
    position: absolute;
    inset: 0.6rem;
    width: calc(100% - 1.2rem);
    height: calc(100% - 1.2rem);
    object-fit: contain;
    mix-blend-mode: multiply;
}
.zag-hcard__body { display: grid; gap: 0.4rem; }

/* ==========================================================================
   Deals
   ========================================================================== */

.zag-deals__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.zag-clock { display: flex; gap: 0.5rem; }

.zag-clock li {
    list-style: none;
    min-width: 3.6rem;
    padding: 0.6rem 0.4rem;
    text-align: center;
    background: var(--ink);
    color: var(--paper);
    border-radius: 12px;
}

.zag-clock b {
    display: block;
    font-family: var(--display);
    font-size: 1.4rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.zag-clock span {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--turmeric);
}

/* ==========================================================================
   Voices (testimonials)
   ========================================================================== */

.zag-voices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1.25rem;
}

.zag-voice {
    display: grid;
    gap: 1.25rem;
    align-content: start;
    padding: 1.75rem;
    background: color-mix(in srgb, var(--on-dark) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--on-dark) 18%, transparent);
    border-radius: 18px;
}

/* The theme styles bare <blockquote> with a near-white background, which on
   the dark panel put off-white text on an off-white block. Reset it here
   rather than reaching into the vendor stylesheet. */
.zag-voice__quote {
    font-family: var(--display);
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.45;
    letter-spacing: -0.015em;
    color: var(--on-dark);
    background: none;
    background-color: transparent;
    border: 0;
    margin: 0;
    padding: 0;
    quotes: none;
}

.zag-voice__who {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--turmeric);
}

.zag-voice__who img { width: 2.25rem; height: 2.25rem; border-radius: 50%; object-fit: cover; }

/* ==========================================================================
   Journal (blogs)
   ========================================================================== */

.zag-journal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1.5rem;
}

.zag-post {
    display: grid;
    gap: 1rem;
    align-content: start;
    text-decoration: none;
    color: inherit;
}

.zag-post__media {
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    background: var(--kraft);
}

.zag-post__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.zag-post:hover .zag-post__media img { transform: scale(1.04); }

.zag-post__meta {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--turmeric-d);
}

.zag-post h3 { font-size: 1.15rem; line-height: 1.25; }

/* ==========================================================================
   Banner
   ========================================================================== */

.zag-banners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1.25rem;
}

/* Admin-uploaded banners arrive at whatever size they were made at. Without a
   ceiling a single tall JPEG stretched the section past 2500px and pushed the
   products below the fold. */
.zag-banner {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    background: var(--kraft);
    aspect-ratio: 16 / 5;
    max-height: 20rem;
}

.zag-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 700px) {
    .zag-banner { aspect-ratio: 16 / 9; }
}

/* ==========================================================================
   Empty state. The homepage sections are driven by admin settings; when one
   has nothing selected it used to render as a bare heading over white space.
   ========================================================================== */

.zag-empty {
    grid-column: 1 / -1;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border: 1px dashed color-mix(in srgb, var(--ink) 25%, transparent);
    border-radius: 18px;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
    .zag-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .zag-hero__media { order: -1; min-height: 14rem; }
    .zag-hero__media img { max-height: 16rem; }
}

@media (max-width: 560px) {
    .zag-grid { grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
    .zag-card__body { padding: 0.85rem 0.85rem 0; }
    .zag-card__foot { padding: 0.75rem 0.85rem 0.85rem; }
    .zag-card__name { font-size: 0.95rem; }
    .zag-hcard { grid-template-columns: 5.5rem minmax(0, 1fr); }
    .zag-clock li { min-width: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
    .zag *, .zag *::before, .zag *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}

/* ==========================================================================
   Product page sidebar
   ========================================================================== */

.zag-aside {
    padding: 1.5rem;
    background: var(--paper);
    border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
    border-radius: 18px;
}

.zag-aside .zag-h3 { font-size: 1.25rem; }
.zag-aside__list { display: grid; gap: 0.75rem; }
.zag-aside .zag-btn { width: 100%; justify-content: center; }

.zag-aside__post {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.zag-aside__post-media {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--kraft);
    display: block;
}

.zag-aside__post-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zag-aside__post .zag-card__name { min-height: 0; font-size: 0.95rem; }

/* ==========================================================================
   Top bar

   The theme floods this strip with the brand green, which competes with the
   logo directly beneath it and leaves white text on a mid-tone background.
   It is restyled as a quiet ink rule - the same surface as the spec rail -
   so the green reads as a deliberate accent further down rather than as the
   loudest thing on the page. The markup, dropdowns and their JS are
   untouched; only the class was added.
   ========================================================================== */

.zag-topbar.ghead-topbar {
    background: var(--rail) !important;
    color: var(--on-dark);
    border-bottom: 1px solid color-mix(in srgb, var(--on-dark) 12%, transparent);
    font-family: var(--body);
}

.zag-topbar .container > .row { min-height: 2.75rem; }

.zag-topbar .topbar-info p {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--on-dark) 72%, transparent) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zag-topbar .topbar-info-right {
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    flex-wrap: nowrap;
    min-width: 0;
}

.zag-topbar .topbar-info-right > li {
    display: flex;
    align-items: center;
    min-width: 0;
    padding-inline: 0.9rem;
    position: relative;
}

/* One hairline between items instead of the theme's pipe characters, which
   sat on a different baseline to the text. */
.zag-topbar .topbar-info-right > li + li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    translate: 0 -50%;
    width: 1px;
    height: 1rem;
    background: color-mix(in srgb, var(--on-dark) 20%, transparent);
}

.zag-topbar .topbar-info-right > li:last-child { padding-inline-end: 0; }

.zag-topbar .topbar-info-right a,
.zag-topbar .topbar-info-right span,
.zag-topbar .topbar-info-right .dropdown-toggle {
    font-size: 0.8rem;
    line-height: 1.2;
    color: color-mix(in srgb, var(--on-dark) 88%, transparent) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-width: 0;
    transition: color .18s ease;
}

.zag-topbar .topbar-info-right a:hover,
.zag-topbar .topbar-info-right .dropdown-toggle:hover {
    color: var(--turmeric) !important;
}

/* The address is the one item that can be arbitrarily long. It gets whatever
   room is left and truncates rather than pushing the bar to two lines. */
.zag-topbar__addr {
    display: block;
    max-width: 26ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 1400px) {
    .zag-topbar__addr { max-width: 40ch; }
}

.zag-topbar .topbar-info-right svg { flex: none; opacity: 0.75; }
.zag-topbar .topbar-info-right img { height: 0.85rem; width: auto; border-radius: 2px; }

.zag-topbar .dropdown-menu {
    font-family: var(--body);
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
    padding: 0.35rem;
}

.zag-topbar .dropdown-item { border-radius: 8px; font-size: 0.85rem; }

/* ==========================================================================
   Footer
   ========================================================================== */

.zag-footer {
    background: var(--rail);
    color: var(--on-dark);
    margin-top: clamp(3rem, 7vw, 5rem);
}

.zag-footer__signup {
    border-bottom: 1px solid color-mix(in srgb, var(--on-dark) 14%, transparent);
}

.zag-footer__signup-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 3rem;
    padding-block: clamp(2rem, 4vw, 3rem);
}

.zag-footer__signup-text { display: grid; gap: 0.75rem; max-width: 34ch; }
.zag-footer__signup-text .zag-h3 { color: var(--on-dark); }

.zag-subscribe {
    display: flex;
    gap: 0.5rem;
    flex: 1 1 22rem;
    max-width: 30rem;
    margin: 0;
}

.zag-subscribe input {
    flex: 1;
    min-width: 0;
    padding: 0.85rem 1.1rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--on-dark) 22%, transparent);
    background: color-mix(in srgb, var(--on-dark) 7%, transparent);
    color: var(--on-dark);
    font-family: var(--body);
    font-size: 0.95rem;
}

.zag-subscribe input::placeholder { color: color-mix(in srgb, var(--on-dark) 45%, transparent); }
.zag-subscribe input:focus { outline: 3px solid var(--turmeric); outline-offset: 2px; }
.zag-subscribe .zag-btn { flex: none; }

.zag-footer__main {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: clamp(1.75rem, 3vw, 3rem);
    padding-block: clamp(2.5rem, 5vw, 4rem);
}

.zag-footer__brand { display: grid; gap: 1.1rem; align-content: start; max-width: 32ch; }
.zag-footer__logo img { max-width: 11rem; height: auto; }

.zag-footer__brand p {
    color: color-mix(in srgb, var(--on-dark) 65%, transparent);
    font-size: 0.9rem;
}

.zag-footer__social { display: flex; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }

.zag-footer__social a {
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--on-dark) 22%, transparent);
    color: var(--on-dark);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.zag-footer__social a:hover {
    background: var(--turmeric);
    border-color: var(--turmeric);
    color: #241803;
}

.zag-footer__col h3 {
    font-family: var(--mono);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--turmeric);
    margin: 0 0 1rem;
}

.zag-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }

.zag-footer__col a,
.zag-footer__contact li {
    color: color-mix(in srgb, var(--on-dark) 72%, transparent);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.45;
    transition: color .18s ease;
}

.zag-footer__col a:hover { color: var(--turmeric); }

.zag-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding-block: 1.25rem;
    border-top: 1px solid color-mix(in srgb, var(--on-dark) 14%, transparent);
}

.zag-footer__copy,
.zag-footer__copy p {
    margin: 0;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: color-mix(in srgb, var(--on-dark) 55%, transparent);
}

.zag-footer__pay { max-height: 1.75rem; width: auto; }

@media (max-width: 1100px) {
    .zag-footer__main { grid-template-columns: 1fr 1fr 1fr; }
    .zag-footer__brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 640px) {
    .zag-footer__main { grid-template-columns: 1fr 1fr; }
    .zag-subscribe { flex-wrap: wrap; }
    .zag-subscribe .zag-btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Dark mode

   The theme ships a light/dark switch that sets data-bs-theme on <html>
   (Bootstrap 5.3) and remembers it in localStorage. Only the tokens are
   restated here; every rule above reads them, so nothing else has to change.
   --panel, --rail and --on-dark deliberately stay dark in both schemes - a
   panel that inverts to cream would break the rhythm of the page.
   ========================================================================== */

[data-bs-theme="dark"] .zag {
    --kraft:      #211C15;
    --kraft-deep: #2C251B;
    --paper:      #171310;
    --ink:        #F3EADB;
    --ink-soft:   #A89A86;
    --turmeric:   #E8A33D;
    --turmeric-d: #F0B45C;
    --basil:      #7FA585;
    --basil-soft: #9CBBA0;
    --chilli:     #E0574A;

    --panel:   #1C2A1A;
    --rail:    #0F0C09;
    --on-dark: #F3EADB;
    --on-dark-soft: #AFBBAE;
}

/* The pack shot sits on a disc that reads as paper in light mode; in dark it
   should read as a pool of light rather than a white hole. */
[data-bs-theme="dark"] .zag-hero__media::before {
    background: color-mix(in srgb, var(--kraft-deep) 70%, transparent);
}

/* Product and category images are shot on white. Multiply blending burns them
   into a dark card, so it is dropped and the tile keeps a light bed instead. */
[data-bs-theme="dark"] .zag-card__media,
[data-bs-theme="dark"] .zag-hcard__media {
    background: #F4EFE6;
}

[data-bs-theme="dark"] .zag-card__media img,
[data-bs-theme="dark"] .zag-hcard__media img {
    mix-blend-mode: normal;
}

[data-bs-theme="dark"] .zag-card,
[data-bs-theme="dark"] .zag-hcard,
[data-bs-theme="dark"] .zag-range {
    background: var(--kraft);
}

[data-bs-theme="dark"] .zag-card:hover {
    box-shadow: 0 18px 32px -24px rgba(0, 0, 0, 0.9);
}

/* Category discs follow the product tiles: a light bed and no multiply, so
   artwork shot on white does not burn into the dark page. */
[data-bs-theme="dark"] .zag-range__img { background: #F4EFE6; }
[data-bs-theme="dark"] .zag-range__img img { mix-blend-mode: normal; }

[data-bs-theme="dark"] .zag-aside { background: var(--kraft); }
