/* ===== Coffee Vibes — design tokens ===== */
:root {
    --cv-espresso: #2b1c14;
    --cv-espresso-soft: #4a3324;
    --cv-cream: #fbf5ea;
    --cv-cream-deep: #f3e8d6;
    --cv-caramel: #c97a3d;
    --cv-caramel-deep: #a85f2a;
    --cv-green: #4f7a52;
    --cv-text: #2c211a;
    --cv-muted: #7c6e60;
    --cv-line: #e7dac4;
    --cv-white: #ffffff;
    --font-display: "Roboto", Arial, Helvetica, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, Arial, sans-serif;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(43, 28, 20, 0.08);
    --shadow-hover: 0 16px 36px rgba(43, 28, 20, 0.16);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--cv-cream);
    color: var(--cv-text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Header ===== */
.site-header {
    background: var(--cv-cream);
    border-bottom: 1px solid var(--cv-line);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(140%) blur(6px);
    background: rgba(251, 245, 234, 0.92);
}

.header-row {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 24px;
    color: var(--cv-espresso);
    flex-shrink: 0;
    letter-spacing: -0.01em;
}
.logo span { color: var(--cv-caramel-deep); }
.logo img {
    display: block;
    height: 34px;
    width: auto;
}

.cat-nav {
    display: flex;
    align-items: center;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.cat-nav a {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--cv-espresso-soft);
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(0, 0, 0, 0.035);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cat-nav a:hover { color: var(--cv-caramel-deep); background: var(--cv-cream-deep); border-color: var(--cv-line); }

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--cv-line);
    border-radius: 10px;
    background: var(--cv-white);
    cursor: pointer;
    flex-shrink: 0;
}
.menu-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--cv-espresso);
    margin: 0 auto;
}

.search-row { padding: 0 0 16px; }

.search-form {
    display: flex;
    height: 50px;
    border: 2px solid var(--cv-espresso);
    border-radius: 12px;
    overflow: hidden;
    background: var(--cv-white);
    transition: border-color 0.15s;
}
.search-form:focus-within { border-color: var(--cv-caramel); }

.search-form select {
    border: none;
    background: var(--cv-cream-deep);
    border-right: 1px solid var(--cv-line);
    padding: 0 14px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    color: var(--cv-espresso-soft);
    max-width: 180px;
    cursor: pointer;
}
.search-form select:focus { outline: none; }

.search-form input[type="text"] {
    flex: 1;
    border: none;
    padding: 0 16px;
    font-size: 14.5px;
    font-family: var(--font-body);
    color: var(--cv-text);
    min-width: 0;
}
.search-form input[type="text"]:focus { outline: none; }

.search-form button {
    border: none;
    background: var(--cv-espresso);
    color: var(--cv-cream);
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: 0.03em;
    padding: 0 26px;
    cursor: pointer;
    transition: background 0.15s;
}
.search-form button:hover { background: var(--cv-caramel-deep); }

/* WhatsApp "AI personal shopper" link, shown directly under the search bar
   on both mobile and desktop. */
.wa-shopper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    color: var(--cv-espresso-soft);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.15s;
}
.wa-shopper:hover { color: var(--cv-caramel-deep); }
.wa-shopper svg { flex-shrink: 0; }

@media (min-width: 861px) {
    .wa-shopper { margin-right: 5px; }
}

.mobile-cat-nav { display: none; }

/* ===== Hero ===== */
.hero {
    padding: 56px 0 36px;
    text-align: center;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 600;
    color: var(--cv-espresso);
    margin: 0 0 14px;
    letter-spacing: -0.015em;
}
.hero p {
    font-size: 16.5px;
    color: var(--cv-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ===== Sections ===== */
.section { padding: 38px 0; }
.section:nth-of-type(even) { background: var(--cv-cream-deep); }

/* ===== Ad slots ===== */
.ad-slot-wrap {
    display: flex;
    justify-content: center;
    padding: 24px;
}
.ad-slot {
    width: 320px;
    height: 100px;
    max-width: 100%;
    background: var(--cv-white);
    border: 1px dashed var(--cv-line);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.ad-slot:empty {
    display: none;
}
.ad-slot::before {
    content: "Advertisement";
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cv-muted);
}
.ad-slot:has(iframe)::before,
.ad-slot:has(img)::before,
.ad-slot:has(ins)::before {
    display: none;
}
.ad-slot:has(iframe),
.ad-slot:has(img),
.ad-slot:has(ins) {
    border: none;
    background: transparent;
}
.ad-slot-label {
    display: none;
}
.ad-slot--mobile { display: flex; }
.ad-slot--desktop { display: none; }
@media (min-width: 600px) {
    .ad-slot { width: 728px; height: 90px; }
    .ad-slot--mobile { display: none; }
    .ad-slot--desktop { display: flex; }
}
@media (min-width: 1100px) {
    .ad-slot { width: 970px; height: 250px; }
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.section-head h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    color: var(--cv-espresso);
    margin: 0;
}
.section-head p {
    color: var(--cv-muted);
    font-size: 14px;
    margin: 4px 0 0;
}
.view-all {
    font-size: 13px;
    font-weight: 700;
    color: var(--cv-caramel-deep);
    white-space: nowrap;
}
.view-all:hover { text-decoration: underline; }

.section.featured-section { background: var(--cv-espresso); }
.featured-section .section-head h2,
.featured-section .section-head p { color: var(--cv-cream); }
.featured-section .section-head p { color: rgba(251,245,234,0.65); }

/* ===== Grid & rail of cards ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

/* ===== Search/category facets sidebar ===== */
.search-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}

.facets {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 92px;
}

/* Mobile-only filter affordances — hidden on desktop, where the sidebar +
   floating box handle filtering. Switched on inside the 860px media query. */
.mobile-filter-bar { display: none; }
.facets-head { display: none; }
.facets-overlay { display: none; }

.filter-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--cv-espresso);
    background: var(--cv-white);
    color: var(--cv-espresso);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.01em;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.filter-trigger.has-filters {
    background: var(--cv-green);
    border-color: var(--cv-green);
    color: var(--cv-white);
}
.filter-trigger-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--cv-white);
    color: var(--cv-green);
    font-size: 12px;
    font-weight: 800;
}
.facet-group {
    border-bottom: 1px solid var(--cv-line);
    padding-bottom: 14px;
}
.facet-group summary {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cv-espresso);
    cursor: pointer;
    margin-bottom: 10px;
}
.facet-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    max-height: 220px;
    overflow-y: auto;
}
.facet-option {
    display: flex;
    align-items: baseline;
    gap: 7px;
    font-size: 12.5px;
    color: var(--cv-text);
    cursor: pointer;
}
.facet-option input { accent-color: var(--cv-caramel-deep); flex-shrink: 0; }
.facet-count {
    color: var(--cv-muted);
    font-size: 11px;
    font-weight: 700;
    margin-left: 2px;
}

/* ===== Applied-filters summary box (above the facet groups) ===== */
.active-filters {
    background: var(--cv-white);
    border: 1px solid var(--cv-line);
    border-radius: var(--radius);
    padding: 13px 14px 14px;
    margin-bottom: 18px;
}
.active-filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}
.active-filters-head h4 {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cv-espresso);
    margin: 0;
}
.active-filters-clear {
    font-size: 11px;
    font-weight: 700;
    color: var(--cv-caramel-deep);
    white-space: nowrap;
}
.active-filters-clear:hover { text-decoration: underline; }
.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--cv-cream-deep);
    border: 1px solid var(--cv-line);
    border-radius: 999px;
    padding: 5px 6px 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--cv-text);
    transition: border-color 0.15s, background 0.15s;
}
.active-filter-chip:hover { border-color: var(--cv-caramel); }
.active-filter-chip .remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--cv-espresso);
    color: var(--cv-cream);
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
}
.active-filter-chip:hover .remove { background: var(--cv-caramel-deep); }

.facets-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

/* ===== Floating filter box — revealed by main.js on facet change =====
   High z-index so product cards (which create stacking contexts on hover via
   transform) can never paint over it. */
.facets-floating {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%) translateY(180%);
    z-index: 1000;
    width: min(580px, calc(100vw - 32px));
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--cv-white);
    border: 1px solid var(--cv-line);
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    padding: 12px 12px 12px 16px;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
}
.facets-floating.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.facets-floating-summary {
    flex: 1;
    min-width: 0;
}
.facets-floating-title {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cv-muted);
    margin-bottom: 6px;
}
.facets-floating-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.facets-floating-chips::-webkit-scrollbar { display: none; }
.facets-floating-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    background: var(--cv-cream-deep);
    border: 1px solid var(--cv-line);
    border-radius: 999px;
    padding: 4px 5px 4px 11px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--cv-text);
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s;
}
.facets-floating-chip:hover { border-color: var(--cv-caramel); }
.facets-floating-chip .remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--cv-espresso);
    color: var(--cv-cream);
    font-size: 12px;
    line-height: 1;
    flex-shrink: 0;
}
.facets-floating-chip:hover .remove { background: var(--cv-caramel-deep); }
.facets-floating-apply {
    flex-shrink: 0;
    border: none;
    background: var(--cv-espresso);
    color: var(--cv-cream);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: 0.02em;
    padding: 12px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s;
}
.facets-floating-apply:hover { background: var(--cv-caramel-deep); }

@media (max-width: 540px) {
    .facets-floating {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        bottom: 12px;
        padding: 12px;
    }
    .facets-floating-apply { width: 100%; padding: 13px; }
}

.facets-apply {
    border: none;
    background: var(--cv-espresso);
    color: var(--cv-cream);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.02em;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
    width: 100%;
}
.facets-apply:hover { background: var(--cv-caramel-deep); }

.facets-clear {
    font-size: 12px;
    font-weight: 700;
    color: var(--cv-caramel-deep);
    text-align: center;
}
.facets-clear:hover { text-decoration: underline; }

@media (max-width: 860px) {
    .search-layout { grid-template-columns: 1fr; }
    .facet-options { max-height: none; }

    /* The "Filters" trigger replaces the inline sidebar on mobile. */
    .mobile-filter-bar { display: flex; margin-bottom: 18px; }

    /* Sidebar becomes an off-canvas modal sliding in from the right. */
    .facets {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(420px, 88vw);
        gap: 16px;
        margin: 0;
        padding: 18px 20px calc(18px + env(safe-area-inset-bottom, 0px));
        background: var(--cv-cream);
        box-shadow: -12px 0 40px rgba(0, 0, 0, 0.22);
        z-index: 1100;
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    .facets.open { transform: translateX(0); }

    .facets-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: -18px;
        margin: -18px -20px 0;
        padding: 16px 20px;
        background: var(--cv-cream);
        border-bottom: 1px solid var(--cv-line);
        z-index: 1;
    }
    .facets-head h3 {
        font-family: var(--font-display);
        font-size: 18px;
        font-weight: 600;
        color: var(--cv-espresso);
        margin: 0;
    }
    .facets-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border: 1px solid var(--cv-line);
        border-radius: 10px;
        background: var(--cv-white);
        color: var(--cv-espresso);
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
    }

    /* Apply button pinned to the bottom of the modal so it's always reachable. */
    .facets .facets-actions {
        position: sticky;
        bottom: calc(-18px - env(safe-area-inset-bottom, 0px));
        margin: 4px -20px calc(-18px - env(safe-area-inset-bottom, 0px));
        padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
        background: var(--cv-cream);
        border-top: 1px solid var(--cv-line);
    }

    .facets-overlay {
        position: fixed;
        inset: 0;
        background: rgba(20, 12, 6, 0.5);
        z-index: 1090;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .facets-overlay.open { opacity: 1; pointer-events: auto; }

    /* The desktop floating box is replaced by the modal's own Apply button. */
    .facets-floating { display: none; }
}

/* Lock background scroll while the filter modal is open. */
body.facets-open { overflow: hidden; }

.glider-contain { position: relative; padding: 0 44px; }
.rail-item { flex: 0 0 220px; margin-right: 16px; }

/* Mobile slider: a native finger-swipe scroll container rendered in place of
   glider.js on touch devices (see product_slider()). */
.mobile-slider-container {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-bottom: 4px;
    /* Let the first/last cards sit flush with the section's wrap padding. */
    margin: 0 -2px;
}
.mobile-slider-container::-webkit-scrollbar { display: none; }
.mobile-slider-container .rail-item {
    flex: 0 0 158px;
    margin-right: 0;
    scroll-snap-align: start;
}

.glider-prev,
.glider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--cv-line);
    background: var(--cv-white);
    color: var(--cv-espresso);
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 2;
    transition: background 0.15s, color 0.15s;
}
.glider-prev { left: 0; }
.glider-next { right: 0; }
.glider-prev:hover,
.glider-next:hover { background: var(--cv-caramel); color: var(--cv-white); }
.glider-prev.disabled,
.glider-next.disabled { opacity: 0.3; cursor: default; }
.glider-prev.disabled:hover,
.glider-next.disabled:hover { background: var(--cv-white); color: var(--cv-espresso); }

.featured-section .glider-prev,
.featured-section .glider-next {
    border-color: rgba(251, 245, 234, 0.2);
    background: rgba(251, 245, 234, 0.1);
    color: var(--cv-cream);
}
.featured-section .glider-prev:hover,
.featured-section .glider-next:hover { background: var(--cv-caramel); color: var(--cv-white); }

.glider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.glider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cv-line);
    border: none;
    padding: 0;
    cursor: pointer;
}
.glider-dot.active { background: var(--cv-caramel-deep); }
.featured-section .glider-dot { background: rgba(251, 245, 234, 0.25); }
.featured-section .glider-dot.active { background: var(--cv-caramel); }

/* ===== Product card ===== */
.card {
    background: var(--cv-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.18s, box-shadow 0.18s;
    height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.card-img {
    position: relative;
    background: var(--cv-white);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.card-img img { max-height: 100%; object-fit: contain; }

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 999px;
    z-index: 2;
}
.badge-discount { background: var(--cv-green); color: var(--cv-white); }

.card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.card-brand {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cv-caramel-deep);
}
.card-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    color: var(--cv-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 4px;
}
.card-price {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--cv-espresso);
}
.card-was-price {
    font-size: 12px;
    color: var(--cv-muted);
    text-decoration: line-through;
}
.card-meta {
    font-size: 11.5px;
    color: var(--cv-muted);
    margin-top: 2px;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 32px;
}
.pagination-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--cv-caramel-deep);
}
.pagination-link:hover { text-decoration: underline; }
.pagination-status {
    font-size: 13px;
    color: var(--cv-muted);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--cv-espresso);
    color: var(--cv-cream);
}
.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 36px 0 8px;
    flex-wrap: wrap;
}
.footer-brand .logo { color: var(--cv-cream); }
.footer-brand p {
    font-size: 12.5px;
    color: var(--cv-cream);
    max-width: 360px;
    margin-top: 8px;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
    padding: 16px 0 28px;
}
.footer-col h5 {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--cv-cream);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(251, 245, 234, 0.1);
}
.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.footer-col ul a {
    font-size: 11px;
    color: var(--cv-cream);
    transition: opacity 0.15s;
}
.footer-col ul a:hover { opacity: 0.7; }

.footer-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}
.footer-pill {
    font-size: 10px;
    font-weight: 600;
    color: var(--cv-cream);
    border: 1px solid rgba(251, 245, 234, 0.3);
    border-radius: 999px;
    padding: 3px 9px;
    transition: border-color 0.15s;
}
.footer-pill:hover { border-color: rgba(251, 245, 234, 0.6); }

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-social img { border-radius: 6px; }

.footer-apps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-apps img { border-radius: 6px; }

@media (min-width: 640px) {
    .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .footer-cols { grid-template-columns: repeat(6, 1fr); }
}

.footer-bottom {
    border-top: 1px solid rgba(251, 245, 234, 0.12);
    padding: 16px 0;
    font-size: 11.5px;
    color: var(--cv-cream);
}
.footer-bottom a { font-weight: 700; color: var(--cv-cream); }
.footer-bottom a:hover { opacity: 0.7; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
    .cat-nav { display: none; }
    /* With .cat-nav (the flex spacer) hidden, push the burger to the far
       right so the logo stays left and the toggle is hard against the edge. */
    .menu-toggle {
        display: flex;
        margin-left: auto;
        margin-right: -5px;
    }
    .mobile-cat-nav.open {
        display: block;
        padding: 8px 24px 16px;
        border-top: 1px solid var(--cv-line);
    }
    .mobile-cat-nav ul {
        display: flex;
        flex-direction: column;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .mobile-cat-nav li { border-bottom: 1px solid var(--cv-line); }
    .mobile-cat-nav a {
        display: block;
        padding: 10px 0;
        font-size: 14px;
        font-weight: 600;
        color: var(--cv-espresso-soft);
    }
    .header-row { height: 64px; }
    .search-form {
        height: 48px;
        border-radius: 10px;
        margin: 0 12px;
    }
    .search-form select { display: none; }
    .search-form input[type="text"] {
        padding: 0 14px;
        font-size: 14px;
    }
    .search-form button {
        flex: 0 0 auto;
        padding: 0 22px;
    }
    .wa-shopper {
        justify-content: flex-start;
        margin-left: 12px;
        margin-right: 12px;
    }
    .wa-shopper span { min-width: 0; }
}

@media (max-width: 540px) {
    .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .rail-item { flex-basis: 160px; }
    .hero { padding: 40px 0 28px; }
    .glider-contain { padding: 0 36px; }
    .glider-prev, .glider-next { width: 32px; height: 32px; font-size: 15px; }
    .search-form button { padding: 0 18px; }
}
