/* =============================================
   SPARSH — Per-SKU product pages (/products/<slug>)
   Builds on style.css + pages.css + decor.css.
   ============================================= */

.sku-page .page-body {
    max-width: 980px;
    padding: 40px 24px 120px;
}

/* ---------- Tag row under hero ---------- */
.sku-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 32px;
}

.sku-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.sku-tag.tier-tag {
    background: rgba(97, 181, 100, 0.14);
    border-color: rgba(97, 181, 100, 0.35);
    color: var(--accent-gold, #61B564);
    font-weight: 600;
}

.premium-tier .sku-tag.tier-tag {
    background: linear-gradient(135deg, rgba(97, 181, 100, 0.18) 0%, rgba(97, 181, 100, 0.06) 100%);
    border-color: rgba(97, 181, 100, 0.4);
    color: #61B564;
}

/* ---------- Spec table ---------- */
.sku-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 32px;
    font-size: 0.95rem;
}

.sku-spec-table th,
.sku-spec-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: top;
}

.sku-spec-table th {
    width: 200px;
    background: rgba(97, 181, 100, 0.06);
    color: var(--accent-gold, #61B564);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sku-spec-table td code {
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--accent-gold, #61B564);
}

.spec-chip {
    display: inline-block;
    padding: 4px 12px;
    margin: 2px 4px 2px 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .sku-spec-table th {
        width: 130px;
        font-size: 0.72rem;
        padding: 10px 12px;
    }

    .sku-spec-table td {
        padding: 10px 12px;
        font-size: 0.88rem;
    }
}

/* ---------- Buy CTA on SKU pages ---------- */
.sku-buy-cta {
    margin: 40px 0;
    padding: 30px 32px;
    background: linear-gradient(160deg, rgba(97, 181, 100, 0.1) 0%, rgba(97, 181, 100, 0.02) 100%);
    border: 1px solid rgba(97, 181, 100, 0.25);
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.premium-tier .sku-buy-cta {
    background: linear-gradient(160deg, rgba(97, 181, 100, 0.1) 0%, rgba(97, 181, 100, 0.02) 100%);
    border-color: rgba(97, 181, 100, 0.3);
}

.sku-buy-cta .ctab-text h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    color: #fff;
}

.sku-buy-cta .ctab-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    max-width: 640px;
}

.sku-buy-cta .ctab-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sku-buy-cta .ctab-btn-primary,
.sku-buy-cta .ctab-btn-secondary {
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.sku-buy-cta .ctab-btn-primary {
    /* Use the brand green explicitly — value AND premium tiers both use
       green here to stay consistent with every other primary CTA on the
       site (dealers, support, contact). Premium-tier accent gold is
       reserved for badges and small detail accents, not action buttons. */
    background: #61B564;
    color: #ffffff;
    font-weight: 600;
}

.sku-buy-cta .ctab-btn-primary:hover {
    background: #6fc774;
}

.sku-buy-cta .ctab-btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sku-buy-cta .ctab-btn-primary:hover,
.sku-buy-cta .ctab-btn-secondary:hover {
    transform: translateY(-1px);
}

/* ---------- Product card grid on /products hub (server-rendered cards) ---------- */
.products-static-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 28px 0 56px;
}

.products-static-card {
    display: block;
    position: relative;
    padding: 24px 24px 26px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.products-static-card:hover {
    transform: translateY(-4px);
    border-color: rgba(97, 181, 100, 0.45);
    background: linear-gradient(160deg, rgba(97, 181, 100, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.products-static-card.tier-premium:hover {
    border-color: rgba(97, 181, 100, 0.45);
    background: linear-gradient(160deg, rgba(97, 181, 100, 0.07) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.products-static-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
}

.products-static-card .sku-type {
    display: block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.products-static-card p.sku-blurb {
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 14px;
}

.products-static-card .sku-link {
    font-size: 0.85rem;
    color: var(--accent-gold, #61B564);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.products-static-card.tier-premium .sku-link {
    color: #61B564;
}

.products-static-card .sku-link::after {
    content: " →";
}

/* ---------- Mattress compare feature ---------- */
.products-static-card.is-compare-selected {
    border-color: rgba(97, 181, 100, 0.72);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(97, 181, 100, 0.18);
}

.compare-toggle {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(5, 10, 21, 0.74);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.compare-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(97, 181, 100, 0.7);
    color: #fff;
}

.compare-toggle.is-selected {
    background: rgba(97, 181, 100, 0.92);
    border-color: rgba(97, 181, 100, 0.92);
    color: #06100a;
}

.compare-toggle.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.compare-tray {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 1200;
    width: min(940px, calc(100% - 32px));
    transform: translate(-50%, 140%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.compare-tray.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.compare-tray-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(97, 181, 100, 0.24);
    border-radius: 18px;
    background: rgba(9, 16, 31, 0.94);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.compare-tray-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
}

.compare-tray-status i {
    color: #61B564;
}

.compare-tray-items {
    display: flex;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: thin;
}

.compare-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    max-width: 190px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.8rem;
}

.compare-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compare-chip button,
.compare-remove-btn,
.compare-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: inherit;
    cursor: pointer;
}

.compare-chip button {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    flex: 0 0 auto;
}

.compare-tray-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.compare-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
}

.compare-action-primary {
    background: #61B564;
    border-color: #61B564;
    color: #06100a;
}

.compare-action-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
}

.compare-action:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.compare-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.compare-modal.is-open {
    display: flex;
}

.compare-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(3, 7, 16, 0.74);
    cursor: pointer;
}

.compare-modal-panel {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    max-height: min(84vh, 820px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(97, 181, 100, 0.24);
    border-radius: 22px;
    background: #09101f;
    box-shadow: 0 28px 120px rgba(0, 0, 0, 0.46);
}

.compare-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-modal-head h2 {
    margin: 0 0 5px;
    color: #fff;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.compare-modal-head p {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
}

.compare-modal-close {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.84);
}

.compare-table-wrap {
    overflow: auto;
    padding: 0 0 18px;
}

.compare-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
}

.compare-table th,
.compare-table td {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: top;
    text-align: left;
}

.compare-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 170px;
    background: #0d1729;
    color: #61B564;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.74rem;
}

.compare-product-head {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 28px;
    gap: 12px;
    align-items: center;
    min-width: 180px;
}

.compare-product-head img {
    width: 54px;
    height: 44px;
    /* HARD max caps are essential, not decorative. The global rule
       `img { max-width: none }` (needed for the homepage's off-canvas
       hero clouds) leaves these thumbnails uncapped. Chrome honours the
       explicit `width`, but iOS Safari's AUTO table-layout uses a
       replaced image's INTRINSIC size (~800px) as the cell's preferred
       width when max-width is none — blowing the whole compare modal out
       to a full-screen mattress render. Capping max-width/height forces
       iOS to keep the thumbnail at 54×44 like everywhere else. */
    max-width: 54px;
    max-height: 44px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.compare-product-head a {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.compare-product-head span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.78rem;
}

.compare-remove-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.compare-table td {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
}

.compare-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.compare-pill-list span {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
}

@media (max-width: 1024px) {
    .products-static-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* Phones — keep a 2-column grid so the user can see twice as many
   cards per scroll. Tighten card padding + typography so two fit. */
@media (max-width: 600px) {
    .products-static-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .products-static-card {
        padding: 14px 12px 16px;
        border-radius: 12px;
    }

    .products-static-card .card-img-wrap {
        margin-bottom: 10px;
        border-radius: 10px;
        aspect-ratio: 4 / 3;
    }

    .products-static-card h3 {
        font-size: 0.98rem;
        line-height: 1.2;
        margin: 4px 0 4px;
    }

    .products-static-card .sku-type {
        font-size: 0.7rem;
        letter-spacing: 0.03em;
    }

    .products-static-card .sku-blurb {
        font-size: 0.78rem;
        line-height: 1.4;
        margin: 6px 0;
        /* Cap to 3 lines so cards stay roughly equal-height */
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .products-static-card .sku-link {
        font-size: 0.78rem;
        margin-top: 4px;
        display: inline-block;
    }

    .compare-toggle {
        top: 10px;
        right: 10px;
        /* Icon-only on mobile (label hidden below) — make it a proper
           circular tap target instead of a cramped ~30px pill. */
        min-height: 38px;
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
        gap: 0;
        font-size: 0.72rem;
    }

    .compare-toggle .compare-toggle-text {
        display: none;
    }

    .compare-tray {
        bottom: 10px;
        width: calc(100% - 18px);
    }

    .compare-tray-inner {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
        border-radius: 16px;
    }

    .compare-tray-status {
        justify-content: space-between;
        font-size: 0.82rem;
    }

    .compare-tray-actions {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px;
    }

    .compare-action {
        min-height: 42px;
    }

    .compare-modal {
        align-items: flex-end;
        padding: 0;
    }

    .compare-modal-panel {
        width: 100%;
        max-height: 88vh;
        border-radius: 20px 20px 0 0;
    }

    .compare-modal-head {
        padding: 18px 18px 14px;
    }

    .compare-table {
        min-width: 700px;
    }

    .compare-table th,
    .compare-table td {
        padding: 14px 12px;
    }

    .compare-table th:first-child {
        width: 132px;
        min-width: 132px;
    }

    .compare-product-head {
        grid-template-columns: 44px minmax(0, 1fr) 26px;
        min-width: 150px;
    }

    .compare-product-head img {
        width: 44px;
        height: 38px;
        /* Cap here too — this is the mobile-width case where the iOS
           table-layout blowout was actually reported. */
        max-width: 44px;
        max-height: 38px;
    }
}

/* Extra-small (≤360px) — single column if cards become too cramped */
@media (max-width: 340px) {
    .products-static-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Section heading for tiered grid on hub ---------- */
.products-tier-heading {
    margin: 40px 0 8px;
    font-size: 1.5rem;
    color: #fff;
}

.products-coming-soon-series .products-coming-soon-heading {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.products-coming-soon-series .products-coming-soon-heading span {
    color: #61B564 !important;
    -webkit-text-fill-color: #61B564;
}

.products-tier-heading+p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* ---------- Category filter pills (Products hub) ---------- */
.product-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 20px;
    padding: 0;
}

.product-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.78);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.product-filter:hover {
    background: rgba(97, 181, 100, 0.08);
    border-color: rgba(97, 181, 100, 0.35);
    color: rgba(255, 255, 255, 0.95);
}

.product-filter.is-active {
    background: rgba(97, 181, 100, 0.18);
    border-color: rgba(97, 181, 100, 0.55);
    color: #c8e6c9;
}

.product-filter .filter-count {
    display: inline-block;
    min-width: 22px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.product-filter.is-active .filter-count {
    background: rgba(97, 181, 100, 0.35);
    color: #fff;
}

/* JS toggles .is-hidden on cards (per dropdown filter combination) and on
   tier-sections (when all their cards are hidden). Kept as classes rather
   than attribute selectors so we can animate later without rewriting JS. */
.products-static-card.is-hidden,
.tier-section.is-hidden {
    display: none !important;
}

.tier-section {
    /* Anchor for smooth filter transitions; explicit so future animation hooks
       have a stable parent. */
    position: relative;
}

/* ---------- Products hub two-column layout (sidebar + grid) ---------- */
.products-hub-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 36px;
    align-items: start;
    margin-top: 8px;
}

.products-sidebar {
    position: sticky;
    top: 24px;
    padding: 24px 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.85);
    /* Removed max-height and overflow-y to allow custom-selects to overflow the sidebar bounds on desktop */
}

.products-sidebar::-webkit-scrollbar {
    display: none;
}

.products-sidebar .sidebar-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.products-sidebar h3 {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.products-sidebar .sidebar-clear {
    background: transparent;
    border: 0;
    padding: 0;
    color: rgba(97, 181, 100, 0.85);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: color 0.15s ease;
}

.products-sidebar .sidebar-clear:hover {
    color: #61B564;
}

.products-sidebar .filter-group {
    margin: 0 0 16px;
}

.products-sidebar .filter-group label {
    display: block;
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.products-sidebar select {
    display: none;
}

.products-sidebar .select-trigger,
.mobile-filter-toolbar .select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background-color: rgba(10, 17, 40, 0.85);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.products-sidebar .select-trigger span,
.mobile-filter-toolbar .select-trigger span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.products-sidebar .custom-select.open .select-trigger,
.products-sidebar .select-trigger:hover,
.mobile-filter-toolbar .custom-select.open .select-trigger,
.mobile-filter-toolbar .select-trigger:hover {
    border-color: rgba(97, 181, 100, 0.55);
    background-color: rgba(10, 17, 40, 0.95);
}

.products-sidebar .select-options,
.mobile-filter-toolbar .select-options {
    background: #0a1128;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.mobile-filter-toolbar .custom-select {
    position: relative;
    width: 100%;
}

.mobile-filter-toolbar .select-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    z-index: 100;
}

.products-sidebar .option,
.mobile-filter-toolbar .option {
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.products-sidebar .option:hover,
.mobile-filter-toolbar .option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.products-sidebar .option.active,
.mobile-filter-toolbar .option.active {
    background: rgba(97, 181, 100, 0.2);
    color: #61B564;
}

.products-sidebar .option.is-disabled,
.mobile-filter-toolbar .option.is-disabled {
    cursor: not-allowed;
    color: rgba(255, 255, 255, 0.36);
}

.products-sidebar .option.is-disabled:hover,
.mobile-filter-toolbar .option.is-disabled:hover {
    background: transparent;
    color: rgba(255, 255, 255, 0.36);
}

.products-sidebar .sidebar-hint {
    margin: 8px 0 0;
    font-size: 0.74rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.48);
}

.products-empty-state {
    margin: 60px auto 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
}

.products-empty-state .link-button {
    background: transparent;
    border: 0;
    padding: 0 4px;
    color: #61B564;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Card thumbnails on the hub grid ---------- */
.products-static-card .card-img-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin: 0 0 16px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.products-static-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s ease;
}

.products-static-card:hover .card-img-wrap img {
    transform: scale(1.04);
}

/* ---------- Sidebar collapses on narrower screens ---------- */
@media (max-width: 900px) {
    .products-hub-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .products-sidebar {
        position: static;
        max-height: none;
        padding: 18px 18px;
    }

    .products-sidebar .filter-group {
        margin-bottom: 12px;
    }
}

/* ============================================================
   MOBILE TOOLBAR / BOTTOM-SHEET / ACTIVE FILTER CHIPS / SORT
   ============================================================ */

/* Toolbar (Sort + Filters button) sits between the pill row and the
   product grid. Visible only at mobile widths — the desktop sidebar
   stays inline as before. */
.mobile-filter-toolbar {
    display: none;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
}

.mobile-filter-toolbar .sort-control {
    flex: 1 1 auto;
    min-width: 0;
}

.mobile-filter-toolbar #filter-sort {
    width: 100%;
    padding: 10px 30px 10px 14px;
    background-color: rgba(10, 17, 40, 0.85);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.86rem;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%23ffffff99' d='M3.2 5.6L8 10.4l4.8-4.8H3.2z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.mobile-filter-toolbar #filter-sort::-ms-expand {
    display: none;
}

.mobile-filter-toolbar #filter-sort option {
    background: #0a1128;
    color: #fff;
}

.mobile-filter-toolbar .filter-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(97, 181, 100, 0.14);
    color: #c8e6c9;
    border: 1px solid rgba(97, 181, 100, 0.45);
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.15s ease;
}

.mobile-filter-toolbar .filter-open-btn:hover {
    background: rgba(97, 181, 100, 0.22);
}

.mobile-filter-toolbar .filter-open-btn:active {
    transform: scale(0.98);
}

.mobile-filter-toolbar .filter-open-btn i {
    font-size: 0.95rem;
}

.mobile-filter-toolbar .filter-open-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #61B564;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Active filter chips row */
.active-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.active-filter-chips.is-empty {
    display: none;
}

.active-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(97, 181, 100, 0.12);
    color: #c8e6c9;
    border: 1px solid rgba(97, 181, 100, 0.35);
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.active-chip:hover {
    background: rgba(97, 181, 100, 0.22);
}

.active-chip i {
    font-size: 0.7rem;
    opacity: 0.85;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Sidebar head: split into title + actions on the right */
.products-sidebar .sidebar-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.products-sidebar .sidebar-close-mobile,
.products-sidebar .sidebar-done-mobile {
    display: none;
}

/* Filter sheet backdrop (mobile only). */
.filter-sheet-backdrop {
    display: none;
}

/* Mobile activation — at <=900px the sidebar becomes a slide-up
   bottom sheet triggered by the Filters button. */
@media (max-width: 900px) {
    .mobile-filter-toolbar {
        display: flex;
    }

    .filter-sheet-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 9998;
    }

    .products-filterable.sheet-open .filter-sheet-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .products-sidebar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        max-width: none;
        max-height: 85vh;
        transform: translateY(100%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
        border-radius: 24px 24px 0 0;
        background: rgba(10, 15, 30, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        padding: 18px 20px 24px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
    }

    .products-filterable.sheet-open .products-sidebar {
        transform: translateY(0);
    }

    /* Visible "Done" + close X inside the sheet */
    .products-sidebar .sidebar-close-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: rgba(255, 255, 255, 0.8);
        cursor: pointer;
        font-size: 0.95rem;
    }

    .products-sidebar .sidebar-close-mobile:hover {
        background: rgba(255, 255, 255, 0.12);
    }

    .products-sidebar .sidebar-done-mobile {
        display: block;
        width: 100%;
        margin-top: 16px;
        padding: 14px 18px;
        background: #61B564;
        color: #ffffff;
        border: 0;
        border-radius: 14px;
        font-family: inherit;
        font-weight: 700;
        font-size: 0.95rem;
        letter-spacing: 0.02em;
        cursor: pointer;
        box-shadow: 0 10px 24px rgba(97, 181, 100, 0.3);
        transition: background 0.2s ease, transform 0.15s ease;
    }

    .products-sidebar .sidebar-done-mobile:hover {
        background: #6fc774;
    }

    .products-sidebar .sidebar-done-mobile:active {
        transform: scale(0.98);
    }

    /* Filter group rows full-width inside the sheet — no more half-width
       awkward gap. Generous tap-targets on the dropdowns. */
    .products-sidebar .filter-group {
        display: block;
        width: 100% !important;
        margin: 0 0 16px;
    }

    .products-sidebar .filter-group label {
        font-size: 0.78rem;
        margin-bottom: 8px;
    }

    .products-sidebar select {
        padding: 12px 36px 12px 14px;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    .products-sidebar .sidebar-hint {
        display: none;
    }

    .products-hub-layout {
        gap: 0;
        grid-template-columns: 1fr;
    }
}

/* Compact category-pill row at <=600px — pills scroll horizontally
   so the user lands on the grid faster. Sidebar styling is already
   handled by the bottom-sheet rules above; only the pill row + the
   tier headings need narrow-phone treatment here. */
@media (max-width: 600px) {

    /* Category pills wrap naturally on smaller screens so the
       page itself never gets a horizontal scrollbar. */
    .product-filters {
        flex-wrap: wrap;
        justify-content: center;
        margin: 6px 0 14px;
        padding: 2px 0 8px;
        gap: 6px;
    }

    .product-filter {
        padding: 7px 14px;
        font-size: 0.82rem;
    }

    .product-filter .filter-count {
        font-size: 0.65rem;
        padding: 0 6px;
        min-width: 18px;
    }
}

/* Light-mode sidebar treatment. */
body.light-mode:not(.home-page) .products-sidebar {
    background: rgba(15, 26, 46, 0.04);
    border-color: rgba(15, 26, 46, 0.12);
    color: rgba(15, 26, 46, 0.85);
}

body.light-mode:not(.home-page) .products-sidebar .sidebar-head {
    border-bottom-color: rgba(15, 26, 46, 0.12);
}

body.light-mode:not(.home-page) .products-sidebar h3,
body.light-mode:not(.home-page) .products-sidebar .filter-group label {
    color: rgba(15, 26, 46, 0.7);
}

body.light-mode:not(.home-page) .products-sidebar select {
    display: none;
}

body.light-mode:not(.home-page) .products-sidebar .select-trigger,
body.light-mode:not(.home-page) .mobile-filter-toolbar .select-trigger {
    background-color: rgba(255, 255, 255, 0.7);
    color: rgba(15, 26, 46, 0.92);
    border-color: rgba(15, 26, 46, 0.15);
}

body.light-mode:not(.home-page) .products-sidebar .custom-select.open .select-trigger,
body.light-mode:not(.home-page) .mobile-filter-toolbar .custom-select.open .select-trigger {
    border-color: #61B564;
    background-color: rgba(255, 255, 255, 0.9);
}

body.light-mode:not(.home-page) .products-sidebar .select-options,
body.light-mode:not(.home-page) .mobile-filter-toolbar .select-options {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(15, 26, 46, 0.15);
}

body.light-mode:not(.home-page) .products-sidebar .option,
body.light-mode:not(.home-page) .mobile-filter-toolbar .option {
    color: rgba(15, 26, 46, 0.8);
}

body.light-mode:not(.home-page) .products-sidebar .option:hover,
body.light-mode:not(.home-page) .mobile-filter-toolbar .option:hover {
    background: rgba(15, 26, 46, 0.05);
    color: rgba(15, 26, 46, 0.92);
}

body.light-mode:not(.home-page) .products-sidebar .option.active,
body.light-mode:not(.home-page) .mobile-filter-toolbar .option.active {
    background: rgba(97, 181, 100, 0.15);
    color: #4b8f4e;
}

body.light-mode:not(.home-page) .products-sidebar .option.is-disabled,
body.light-mode:not(.home-page) .mobile-filter-toolbar .option.is-disabled,
body.light-mode:not(.home-page) .products-sidebar .option.is-disabled:hover,
body.light-mode:not(.home-page) .mobile-filter-toolbar .option.is-disabled:hover {
    background: transparent;
    color: rgba(15, 26, 46, 0.36);
}

body.light-mode:not(.home-page) .products-sidebar select option {
    background: #ffffff;
    color: #1a1a2e;
}

body.light-mode:not(.home-page) .products-sidebar .sidebar-hint {
    color: rgba(15, 26, 46, 0.55);
}

@media (max-width: 900px) {
    body.light-mode:not(.home-page) .products-sidebar {
        background: rgba(255, 255, 255, 0.98);
        border-color: rgba(15, 26, 46, 0.15);
    }
    
    body.light-mode:not(.home-page) .products-sidebar .sidebar-close-mobile {
        background: rgba(15, 26, 46, 0.06);
        border-color: rgba(15, 26, 46, 0.12);
        color: rgba(15, 26, 46, 0.8);
    }
    
    body.light-mode:not(.home-page) .products-sidebar .sidebar-close-mobile:hover {
        background: rgba(15, 26, 46, 0.12);
    }
}

@media (max-width: 600px) {
    .product-filters {
        gap: 8px;
        margin-bottom: 14px;
    }

    .product-filter {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

/* Light-mode pill treatment to match the rest of the page. */
body.light-mode:not(.home-page) .product-filter {
    background: rgba(15, 26, 46, 0.04);
    border-color: rgba(15, 26, 46, 0.12);
    color: rgba(15, 26, 46, 0.78);
}

body.light-mode:not(.home-page) .product-filter:hover {
    background: rgba(97, 181, 100, 0.08);
    border-color: rgba(97, 181, 100, 0.4);
    color: rgba(15, 26, 46, 1);
}

body.light-mode:not(.home-page) .product-filter.is-active {
    background: rgba(97, 181, 100, 0.18);
    border-color: rgba(97, 181, 100, 0.55);
    color: #2d6b30;
}

body.light-mode:not(.home-page) .product-filter .filter-count {
    background: rgba(15, 26, 46, 0.08);
    color: rgba(15, 26, 46, 0.7);
}

body.light-mode:not(.home-page) .active-chip {
    background: rgba(97, 181, 100, 0.18);
    border-color: rgba(97, 181, 100, 0.55);
    color: #2d6b30;
}

body.light-mode:not(.home-page) .active-chip:hover {
    background: rgba(97, 181, 100, 0.28);
}

/* Light mode overrides for mobile filter toolbar */
body.light-mode:not(.home-page) .mobile-filter-toolbar #filter-sort {
    background-color: rgba(255, 255, 255, 0.7);
    color: rgba(15, 26, 46, 0.92);
    border-color: rgba(15, 26, 46, 0.15);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%230f1a2e99' d='M3.2 5.6L8 10.4l4.8-4.8H3.2z'/></svg>");
}

body.light-mode:not(.home-page) .mobile-filter-toolbar #filter-sort option {
    background: #ffffff;
    color: #1a1a2e;
}

body.light-mode:not(.home-page) .mobile-filter-toolbar .filter-open-btn {
    background: rgba(97, 181, 100, 0.18);
    color: #2d6b30;
    border-color: rgba(97, 181, 100, 0.55);
}

body.light-mode:not(.home-page) .mobile-filter-toolbar .filter-open-btn:hover {
    background: rgba(97, 181, 100, 0.28);
}

/* =================================================================
   SKU SHOWCASE — two-column header (image left, meta + CTA right)
   ================================================================= */
.sku-showcase {
    padding: 250px 5% 60px;
    position: relative;
    z-index: 10;
}

.sku-showcase-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: center;
}

.sku-showcase-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

/* Breadcrumb placement inside showcase */
.sku-showcase-visual .breadcrumb {
    margin: 0 0 -10px;
    /* Pull closer to the image */
    padding: 0;
    width: 100%;
    text-align: left;
    max-width: 520px;
    /* Align with image width */
    opacity: 0.8;
}

@media (max-width: 900px) {
    .sku-showcase-visual .breadcrumb {
        text-align: center;
        margin-bottom: 0;
    }
}


.sku-showcase-img {
    position: relative;
    width: 100%;
    max-width: 520px;
    padding: 16px;
    background: radial-gradient(ellipse at 50% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 24px;
}

.sku-showcase-img img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}

.sku-showcase-meter {
    position: static;
    width: 148px;
    min-width: 132px;
    padding: 0;
    border-radius: 14px;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    box-shadow: none;
}

.sku-showcase-cube {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: rgba(97, 181, 100, 0.14);
    color: #c8e6c9;
    border: 1px solid rgba(97, 181, 100, 0.45);
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 24px rgba(97, 181, 100, 0.15);
}

.sku-showcase-cube:hover {
    background: rgba(97, 181, 100, 0.22);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(97, 181, 100, 0.25);
}

.sku-showcase-cube i {
    font-size: 1.05rem;
}

.sku-showcase-meta .pdp-tag {
    display: inline-block;
    color: #61B564;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.sku-showcase-name {
    margin: 0 0 12px;
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.05;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.sku-showcase-tagline {
    margin: 0 0 32px;
    font-size: 1.05rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
    max-width: 460px;
}

.sku-showcase-comfort-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 148px;
    align-items: center;
    gap: 24px;
    max-width: 500px;
    margin: 0 0 28px;
}

.sku-showcase-specs {
    display: grid;
    gap: 18px;
    margin: 0 0 36px;
    max-width: 460px;
}

.sku-showcase-spec-card {
    padding: 20px 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.sku-showcase-spec-card h4 {
    margin: 0 0 14px;
    color: #61B564;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sku-showcase-gauge-wrap {
    margin: 0;
}

.sku-showcase-gauge-wrap .cushion-gauge {
    width: 100%;
    max-width: 240px;
    height: auto;
    margin-left: 0;
}

.sku-showcase-meter .sku-showcase-gauge-wrap .cushion-gauge {
    max-width: 148px;
}

.sku-showcase-spec-card .cushion-status-text {
    margin-top: 6px;
}

.sku-showcase-meter .cushion-status-text {
    margin-top: -2px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.72);
}

.sku-showcase-meter .cushion-status-val {
    display: inline-block;
    font-size: 0.82rem;
}

.sku-showcase-size-pills {
    gap: 10px;
}

.sku-showcase-size-pills .size-btn {
    padding: 10px 18px;
    cursor: pointer;
    pointer-events: auto;
}

.sku-showcase-size-pills .size-btn:focus-visible {
    outline: 2px solid rgba(97, 181, 100, 0.9);
    outline-offset: 3px;
}

.sku-showcase-highlights {
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
    display: grid;
    gap: 14px;
}

.sku-showcase-highlights li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.5;
}

.sku-showcase-highlights li i {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(97, 181, 100, 0.14);
    color: #61B564;
    font-size: 0.95rem;
}

.sku-showcase-highlights li strong {
    color: #ffffff;
    font-weight: 600;
}

.sku-showcase-highlights.compact {
    gap: 10px;
    margin: 0;
    max-width: 420px;
}

.sku-showcase-highlights.compact li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.96rem;
    color: rgba(255, 255, 255, 0.82);
}

.sku-showcase-highlights.compact .highlight-dot {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #61B564;
    box-shadow: 0 0 0 4px rgba(97, 181, 100, 0.12);
    margin-top: 0;
}

.sku-showcase-highlights.compact .highlight-text {
    display: block;
}

.sku-showcase-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.sku-showcase-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: #61B564;
    color: #ffffff;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 28px rgba(97, 181, 100, 0.25);
}

.sku-showcase-cta-primary:hover {
    background: #6fc774;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(97, 181, 100, 0.35);
}

.sku-showcase-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sku-showcase-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(97, 181, 100, 0.45);
    transform: translateY(-2px);
}

.sku-showcase-cta-secondary i {
    color: #61B564;
}

/* Mobile: stack the columns. */
@media (max-width: 900px) {
    .sku-showcase {
        padding: 170px 5% 30px;
    }

    .sku-showcase-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .sku-showcase-tagline {
        margin-left: auto;
        margin-right: auto;
    }

    .sku-showcase-specs {
        margin-left: auto;
        margin-right: auto;
    }

    .sku-showcase-spec-card {
        text-align: left;
    }

    .sku-showcase-comfort-row {
        margin-left: auto;
        margin-right: auto;
    }

    .sku-showcase-meter .sku-showcase-gauge-wrap .cushion-gauge {
        max-width: 138px;
    }

    .sku-showcase-highlights {
        justify-items: start;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    .sku-showcase-actions {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .sku-showcase-img {
        margin-bottom: 18px;
    }

    .sku-showcase-comfort-row {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 16px;
        margin-bottom: 24px;
    }

    .sku-showcase-meter {
        width: 148px;
    }
}

/* =================================================================
   RELATED RESOURCES — card row inside the SEO body
   (Was previously styled only in locations.css; bring the rule local
   so SKU pages don't need to pull that stylesheet in.)
   ================================================================= */
.city-resources {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.city-resources .res-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.city-resources .res-card:hover {
    background: rgba(97, 181, 100, 0.06);
    border-color: rgba(97, 181, 100, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.city-resources .res-card i {
    font-size: 1.8rem;
    color: #61B564;
    margin-bottom: 20px;
}

.city-resources .res-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.city-resources .res-card span {
    display: block;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

@media (max-width: 760px) {
    .city-resources {
        grid-template-columns: 1fr;
    }
}

/* =================================================================
   FAQ ACCORDION VISIBILITY — the global faqs.css starts every
   .accordion-item at opacity: 0 (the dedicated /faqs page animates
   them in). On SKU pages we don't have that per-item reveal animation
   so override the default to be visible.
   ================================================================= */
.sku-page .accordion-item {
    opacity: 1;
}

/* Phones: the generic .pdp-section keeps ~100px top+bottom padding
   (pdp.css) which is ~200px of dead vertical space per section on a
   small screen — a lot of scrolling. Tighten it on SKU pages only.
   `.sku-showcase` is excluded (its top padding clears the fixed
   navbar) and .faq / .premium-contact-cta already set their own. */
@media (max-width: 768px) {
    .sku-page .pdp-section:not(.sku-showcase):not(.premium-contact-cta):not(.faq) {
        padding-top: 54px;
        padding-bottom: 54px;
    }
}

.sku-page .pdp-section.faq {
    padding: 60px 5% 80px;
}

.sku-page .faq-container.small {
    max-width: 820px;
    margin: 0 auto;
}

/* =================================================================
   TALK-TO-US / CONTACT CTA — three equal-weight pill buttons.
   Contact (solid green primary), Call (outlined with phone number
   visible), WhatsApp (green-tinted brand colour). Replaces the
   old wide-pill + tiny-icon-square pair which read unbalanced.
   ================================================================= */
.pdp-section.premium-contact-cta {
    padding: 60px 5%;
}

.pdp-section.premium-contact-cta .contact-cta-stage {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 48px;
    text-align: center;
}

.pdp-section.premium-contact-cta .section-eyebrow {
    display: inline-block;
    color: #61B564;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.pdp-section.premium-contact-cta .section-title {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.pdp-section.premium-contact-cta .section-desc {
    margin: 0 auto 36px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 640px;
}

.contact-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    border-radius: 14px;
    text-decoration: none;
    min-width: 220px;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-btn i {
    flex-shrink: 0;
    font-size: 1.35rem;
    width: 24px;
    text-align: center;
}

.contact-btn-label {
    display: inline-flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
    gap: 2px;
}

.contact-btn-line {
    font-size: 1rem;
    font-weight: 600;
    color: inherit;
    letter-spacing: 0.01em;
}

.contact-btn-sub {
    font-size: 0.74rem;
    opacity: 0.78;
    font-weight: 400;
}

.contact-btn-primary {
    background: #61B564;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(97, 181, 100, 0.28);
}

.contact-btn-primary:hover {
    background: #6fc774;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(97, 181, 100, 0.38);
}

.contact-btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
}

.contact-btn-secondary i {
    color: #61B564;
}

.contact-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(97, 181, 100, 0.45);
    transform: translateY(-2px);
}

.contact-btn-whatsapp {
    background: rgba(37, 211, 102, 0.10);
    color: #ffffff;
    border-color: rgba(37, 211, 102, 0.32);
}

.contact-btn-whatsapp i {
    color: #25D366;
}

.contact-btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.18);
    border-color: rgba(37, 211, 102, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.22);
}

@media (max-width: 720px) {
    .pdp-section.premium-contact-cta .contact-cta-stage {
        padding: 40px 24px;
        border-radius: 24px;
    }

    .contact-btn {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .contact-btn-label {
        text-align: left;
    }
}

/* Light-mode treatment for showcase + related-resources cards. */
body.light-mode:not(.home-page) .sku-showcase-name {
    color: #1a1a2e;
}

body.light-mode:not(.home-page) .sku-showcase-tagline {
    color: rgba(26, 26, 46, 0.72);
}

body.light-mode:not(.home-page) .sku-showcase-spec-card {
    background: rgba(15, 26, 46, 0.04);
    border-color: rgba(15, 26, 46, 0.1);
}

body.light-mode:not(.home-page) .sku-showcase-highlights li {
    color: rgba(26, 26, 46, 0.85);
}

body.light-mode:not(.home-page) .sku-showcase-highlights li strong {
    color: #1a1a2e;
}

body.light-mode:not(.home-page) .sku-showcase-highlights.compact .highlight-dot {
    background: #2d6b30;
    box-shadow: 0 0 0 4px rgba(45, 107, 48, 0.12);
}

body.light-mode:not(.home-page) .sku-showcase-highlights.compact .highlight-text {
    color: rgba(26, 26, 46, 0.88);
}

body.light-mode:not(.home-page) .sku-showcase-meter .cushion-status-text {
    color: rgba(26, 26, 46, 0.68);
}

body.light-mode:not(.home-page) .sku-showcase-cta-secondary {
    color: rgba(26, 26, 46, 0.92);
    border-color: rgba(26, 26, 46, 0.18);
}

body.light-mode:not(.home-page) .sku-showcase-cta-secondary:hover {
    background: rgba(26, 26, 46, 0.04);
}

body.light-mode:not(.home-page) .city-resources a.res-card {
    background: rgba(15, 26, 46, 0.04);
    border-color: rgba(15, 26, 46, 0.1);
}

body.light-mode:not(.home-page) .city-resources a.res-card strong {
    color: #1a1a2e;
}

body.light-mode:not(.home-page) .city-resources a.res-card span {
    color: rgba(26, 26, 46, 0.7);
}

body.light-mode:not(.home-page) .city-resources a.res-card i {
    color: #61B564;
}

/* Light-mode treatment for "More Products" grid cards. */
body.light-mode:not(.home-page) .products-static-card {
    background: rgba(15, 26, 46, 0.04);
    border-color: rgba(15, 26, 46, 0.1);
    color: #1a1a2e;
}

body.light-mode:not(.home-page) .products-static-card:hover {
    background: rgba(97, 181, 100, 0.06);
    border-color: rgba(97, 181, 100, 0.35);
}

body.light-mode:not(.home-page) .products-static-card h3 {
    color: #1a1a2e;
}

body.light-mode:not(.home-page) .products-static-card .sku-type {
    color: rgba(26, 26, 46, 0.55);
}

body.light-mode:not(.home-page) .products-static-card p.sku-blurb {
    color: rgba(26, 26, 46, 0.75);
}

body.light-mode:not(.home-page) .products-static-card .sku-highlights,
body.light-mode:not(.home-page) .products-static-card .sku-highlights .highlight-text {
    color: rgba(26, 26, 46, 0.78);
}

body.light-mode:not(.home-page) .products-static-card .sku-highlights .highlight-dot {
    background: #2d6b30;
    box-shadow: 0 0 0 4px rgba(45, 107, 48, 0.12);
}

body.light-mode:not(.home-page) .products-static-card .sku-link {
    color: #2d6b30;
}

body.light-mode:not(.home-page) .products-static-card.is-compare-selected {
    border-color: rgba(97, 181, 100, 0.64);
    box-shadow: 0 18px 44px rgba(15, 26, 46, 0.12), 0 0 0 1px rgba(97, 181, 100, 0.18);
}

body.light-mode:not(.home-page) .compare-toggle {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 26, 46, 0.14);
    color: rgba(15, 26, 46, 0.78);
}

body.light-mode:not(.home-page) .compare-toggle.is-selected {
    background: #61B564;
    border-color: #61B564;
    color: #06100a;
}

body.light-mode:not(.home-page) .compare-tray-inner,
body.light-mode:not(.home-page) .compare-modal-panel {
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(97, 181, 100, 0.26);
}

body.light-mode:not(.home-page) .compare-tray-status,
body.light-mode:not(.home-page) .compare-modal-head h2,
body.light-mode:not(.home-page) .compare-product-head a {
    color: #1a1a2e;
}

body.light-mode:not(.home-page) .compare-chip,
body.light-mode:not(.home-page) .compare-table td {
    color: rgba(26, 26, 46, 0.76);
}

body.light-mode:not(.home-page) .compare-chip,
body.light-mode:not(.home-page) .compare-pill-list span,
body.light-mode:not(.home-page) .compare-remove-btn,
body.light-mode:not(.home-page) .compare-modal-close {
    background: rgba(15, 26, 46, 0.06);
}

body.light-mode:not(.home-page) .compare-action-secondary {
    background: rgba(15, 26, 46, 0.06);
    border-color: rgba(15, 26, 46, 0.14);
    color: rgba(15, 26, 46, 0.82);
}

body.light-mode:not(.home-page) .compare-action-secondary:hover {
    background: rgba(15, 26, 46, 0.1);
    color: #1a1a2e;
}

body.light-mode:not(.home-page) .compare-modal-head p,
body.light-mode:not(.home-page) .compare-product-head span {
    color: rgba(26, 26, 46, 0.58);
}

body.light-mode:not(.home-page) .compare-table th:first-child {
    background: #eff6ef;
    color: #2d6b30;
}

body.light-mode:not(.home-page) .compare-table th,
body.light-mode:not(.home-page) .compare-table td,
body.light-mode:not(.home-page) .compare-modal-head {
    border-bottom-color: rgba(15, 26, 46, 0.09);
}

/* Light-mode treatment for product specifications table. */
body.light-mode:not(.home-page) .sku-spec-table th {
    background: rgba(97, 181, 100, 0.12);
    color: #2d6b30;
}

body.light-mode:not(.home-page) .sku-spec-table td {
    color: #1a1a2e;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-mode:not(.home-page) .spec-chip {
    background: rgba(15, 26, 46, 0.05);
    border-color: rgba(15, 26, 46, 0.12);
    color: #1a1a2e;
}

body.light-mode:not(.home-page) .sku-spec-table td code {
    background: rgba(15, 26, 46, 0.05);
    color: #2d6b30;
}

/* Light-mode treatment for Talk-to-us contact buttons. */
body.light-mode:not(.home-page) .pdp-section.premium-contact-cta .section-desc {
    color: rgba(26, 26, 46, 0.72);
}

body.light-mode:not(.home-page) .contact-btn-secondary {
    background: rgba(15, 26, 46, 0.04);
    color: #1a1a2e;
    border-color: rgba(15, 26, 46, 0.15);
}

body.light-mode:not(.home-page) .contact-btn-secondary:hover {
    background: rgba(15, 26, 46, 0.08);
    border-color: rgba(97, 181, 100, 0.55);
}

body.light-mode:not(.home-page) .contact-btn-whatsapp {
    color: #1a1a2e;
}

/* General section header treatment for Light Mode. */
body.light-mode:not(.home-page) .section-title {
    color: #1a1a2e !important;
}

body.light-mode:not(.home-page) .section-desc {
    color: rgba(26, 26, 46, 0.72) !important;
}

/* Light-mode treatment for FAQs (Accordions) on SKU pages. */
body.light-mode:not(.home-page) .sku-page .accordion-item {
    background: rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(26, 26, 46, 0.1) !important;
    backdrop-filter: blur(10px);
}

body.light-mode:not(.home-page) .sku-page .accordion-item.active {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(97, 181, 100, 0.4) !important;
}

body.light-mode:not(.home-page) .sku-page .accordion-header {
    color: #1a1a2e !important;
}

body.light-mode:not(.home-page) .sku-page .accordion-content p {
    color: #1a1a2e !important;
    opacity: 1 !important;
}

body.light-mode:not(.home-page) .sku-page .accordion-content strong {
    color: #1a1a2e !important;
}

/* Light-mode treatment for .sku-tag pills. */
body.light-mode:not(.home-page) .sku-tag {
    background: rgba(26, 26, 46, 0.04) !important;
    border-color: rgba(26, 26, 46, 0.12) !important;
    color: rgba(26, 26, 46, 0.72) !important;
}

body.light-mode:not(.home-page) .sku-tag.tier-tag {
    background: rgba(97, 181, 100, 0.1) !important;
    border-color: rgba(97, 181, 100, 0.3) !important;
    color: #2d6b30 !important;
}

/* ---------- Specifications Section Layout & Quality Stamp ---------- */
.sku-specs-layout {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}

.sku-spec-table-wrap {
    flex: 1;
    min-width: 0;
}

.sku-spec-stamp-wrap {
    flex-shrink: 0;
    width: 340px;
}

.sku-spec-stamp-card {
    background: rgba(97, 181, 100, 0.04);
    border: 1px solid rgba(97, 181, 100, 0.2);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.sku-spec-stamp-card:hover {
    transform: translateY(-4px);
    border-color: rgba(97, 181, 100, 0.45);
    background: rgba(97, 181, 100, 0.08);
    box-shadow: 0 12px 30px rgba(97, 181, 100, 0.12);
}

.sku-spec-stamp {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.sku-spec-stamp-info h4 {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: #61B564;
    -webkit-text-fill-color: currentColor;
    filter: none;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.sku-spec-stamp-info p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    line-height: 1.45;
    margin: 0;
}

/* Light mode support for stamp */
body.light-mode:not(.home-page) .sku-spec-stamp-card {
    background: rgba(97, 181, 100, 0.03);
    border-color: rgba(97, 181, 100, 0.25);
}

body.light-mode:not(.home-page) .sku-spec-stamp-card:hover {
    border-color: rgba(97, 181, 100, 0.5);
    background: rgba(97, 181, 100, 0.06);
    box-shadow: 0 12px 30px rgba(97, 181, 100, 0.08);
}

body.light-mode:not(.home-page) .sku-spec-stamp-info h4 {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: #2d6b30;
    -webkit-text-fill-color: currentColor;
    filter: none;
}

body.light-mode:not(.home-page) .sku-spec-stamp-info p {
    color: rgba(26, 26, 46, 0.65);
}

/* ---------- Cushion Meter Styles ---------- */
.cushion-gauge {
    display: block;
    margin: 0 auto;
}

.cushion-gauge .gauge-track {
    stroke: rgba(255, 255, 255, 0.06);
}

.cushion-gauge .gauge-pivot-bg {
    fill: #0a1128;
}

.cushion-gauge .gauge-needle-ptr {
    fill: #61B564;
}

.cushion-gauge .gauge-needle-ring {
    stroke: #61B564;
}

.cushion-gauge .gauge-needle-center {
    fill: #61B564;
}

.cushion-gauge .gauge-segment {
    stroke: rgba(255, 255, 255, 0.15);
    transition: stroke 0.3s ease, opacity 0.3s ease;
}

.cushion-gauge .gauge-segment.active {
    stroke: #61B564;
}

/* Gauge labels styling - Dark mode */
.cushion-gauge text.gauge-text {
    font-family: 'Inter', sans-serif;
    fill: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.02em;
    transition: fill 0.3s ease;
}

.cushion-gauge text.gauge-text.active {
    font-weight: 800;
}

/* Active colors in dark mode */
.cushion-gauge text.gauge-text.active.text-soft,
.cushion-gauge text.gauge-text.active.text-med-soft,
.cushion-gauge text.gauge-text.active.text-med-firm,
.cushion-gauge text.gauge-text.active.text-firm,
.cushion-gauge text.gauge-text.active.text-extra-firm {
    fill: #61B564;
}

.cushion-status-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.cushion-status-val {
    font-weight: 700;
    color: #61B564;
}

/* Light mode overrides for Cushion Meter */
body.light-mode:not(.home-page) .cushion-gauge .gauge-track {
    stroke: rgba(0, 0, 0, 0.08);
}

body.light-mode:not(.home-page) .cushion-gauge .gauge-pivot-bg {
    fill: #ffffff;
}

body.light-mode:not(.home-page) .cushion-gauge .gauge-needle-ptr {
    fill: #2d6b30;
}

body.light-mode:not(.home-page) .cushion-gauge .gauge-needle-ring {
    stroke: #2d6b30;
}

body.light-mode:not(.home-page) .cushion-gauge .gauge-needle-center {
    fill: #2d6b30;
}

body.light-mode:not(.home-page) .cushion-gauge .gauge-segment {
    stroke: rgba(26, 26, 46, 0.12);
}

body.light-mode:not(.home-page) .cushion-gauge .gauge-segment.active {
    stroke: #2d6b30;
}

body.light-mode:not(.home-page) .cushion-gauge text.gauge-text {
    fill: rgba(26, 26, 46, 0.45);
}

/* High contrast active colors for light background */
body.light-mode:not(.home-page) .cushion-gauge text.gauge-text.active.text-soft,
body.light-mode:not(.home-page) .cushion-gauge text.gauge-text.active.text-med-soft,
body.light-mode:not(.home-page) .cushion-gauge text.gauge-text.active.text-med-firm,
body.light-mode:not(.home-page) .cushion-gauge text.gauge-text.active.text-firm,
body.light-mode:not(.home-page) .cushion-gauge text.gauge-text.active.text-extra-firm {
    fill: #2d6b30;
}

body.light-mode:not(.home-page) .cushion-status-text {
    color: rgba(26, 26, 46, 0.7);
}

body.light-mode:not(.home-page) .cushion-status-val {
    color: #2d6b30;
}

/* =================================================================
   LIGHT MODE — hub card feature bullets + compare tray (contrast)
   These components shipped dark-mode-only: their text is hard-coded
   white in style.css / the compare rules above, which rendered as
   white-on-light in light mode (e.g. "10-year guarantee" bullets
   were invisible on the pale card background).
   ================================================================= */

/* Product-card feature bullets ("10-year guarantee", "Firm support
   feel", ...) — .highlight-text is rgba(255,255,255,.72) in style.css.
   Covers .product-highlights (legacy PDP list) with the same fix. */
body.light-mode:not(.home-page) .sku-highlights,
body.light-mode:not(.home-page) .product-highlights {
    color: rgba(26, 26, 46, 0.62);
}

body.light-mode:not(.home-page) .sku-highlights .highlight-text,
body.light-mode:not(.home-page) .product-highlights .highlight-text {
    color: rgba(26, 26, 46, 0.85);
}

/* Compare tray "Clear" (secondary action) — transparent button with
   white text, sitting on the tray that light mode turns white. */
body.light-mode:not(.home-page) .compare-action-secondary {
    color: rgba(26, 26, 46, 0.78);
}

/* Small functional green text: brand #61B564 is only ~2:1 against the
   light background — fine for big display accents, too faint for small
   UI text. Use the established darker light-mode green. */
body.light-mode:not(.home-page) .products-sidebar .sidebar-clear {
    color: #2d6b30;
}

body.light-mode:not(.home-page) .products-sidebar .filter-group label {
    /* !important is required: theme-toggle.css carries a legacy
       `.filter-group label { color: var(--accent-gold) !important }`
       (written for the old filter panel) that would otherwise win the
       cascade — leaving these small labels in the faint brand green.
       This selector is more specific, so with matching importance it
       takes precedence. */
    color: #2d6b30 !important;
}

@media (max-width: 768px) {
    .sku-specs-layout {
        flex-direction: column;
        gap: 30px;
    }
    
    .sku-spec-stamp-wrap {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
}

