:root {
      --primary:#333333;
      --secondary:#E89A0E;
      --black:#000000;  
      --steel-blue:#2C3E50;
      --coffee-brown:#52340b;
      --green:#21a544; 
      --Lgray:#b3b3b3;
      --Dgray:#666666; 
      --white:#ffffff;
      --disabled:#aaaaaa; 
      --Light-bg:#e3e3e3;
      --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
      /* white theme to match the homepage / products listing page */
      --unified-bg: #ffffff;
      --unified-border: #eef0f2;
    }
/* ── Unified Background ────────────────────────────────────── */
.product-section,
.products-section {
    background: var(--unified-bg);
}

/* ── Main Grid ─────────────────────────────────────────────── */
.category-page-container {
    display:               grid;
    grid-template-columns: 280px 1fr;
    gap:                   0;
    align-items:           start;
    background:            var(--unified-bg);
    border-radius:         16px;
}

/* ── Desktop Sidebar ───────────────────────────────────────── */
.sidebar-sticky-wrapper {
  position:  sticky;
  top:       calc(var(--header-h) + 20px);           /* clears the sticky header (nav.css) */
  height:    calc(100vh - var(--header-h) - 20px);   /* so the bottom edge still lands at the viewport bottom */
  display:   flex;
  flex-direction: column;
  overflow:  hidden;     
  z-index:   10;
  background: var(--unified-bg);
  border-right: 1px solid var(--unified-border);
}

.category-sidebar-panel {
    background:      var(--unified-bg);
    display:         flex;
    flex-direction:  column;
    height:          100%;
}

.sidebar-header-box {
    padding:       18px 20px;
    border-bottom: 1px solid var(--unified-border);
}

.sidebar-header-box h3 {
    font-size:      11px;
    margin:         0;
    font-weight:    700;
    color:          #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.sidebar-scroll-body {
    overflow-y:      auto;
    flex-grow:       1;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary) transparent;
    scroll-behavior: smooth;
}

.sidebar-scroll-body::-webkit-scrollbar {
    display: none;
}

.sidebar-scroll-body::-webkit-scrollbar-thumb {
    background:    var(--secondary);
    border-radius: 20px;
}

/* ── Category Nav Links (shared by desktop sidebar & mobile drawer) */
.cat-nav-link {
    display:         flex;
    justify-content: space-between;
    align-items:     center;
    padding:         12px 20px;
    text-decoration: none;
    color:           #666666;
    font-size:       13px;
    border-bottom:   1px solid rgba(0, 0, 0, 0.04);
    transition:      background 0.25s ease, color 0.25s ease,
                     padding-left 0.25s ease;
}

.cat-nav-link:hover {
    background:   rgba(232, 154, 14, 0.05);
    color:        var(--secondary);
    padding-left: 25px;
}

.cat-nav-link.active {
    background:   rgba(232, 154, 14, 0.07);
    color:        var(--secondary);
    font-weight:  700;
    border-left:  3px solid var(--secondary);
    padding-left: 17px;
}

/* ── Right Products Panel ──────────────────────────────────── */
.main-content-right {
    background:  var(--unified-bg);
    padding:     15px;
    height:      auto;

}

/* ── Product Cards ─────────────────────────────────────────── */
.category-products > * {
    border:        none !important;
    box-shadow:    none !important;
    background:    #ffffff;
    border-radius: 12px;
    transition:    transform 0.2s ease, box-shadow 0.2s ease;
}

.category-products > *:hover {
    transform:  translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}

    /* ── HELP SECTION ── */
    .help-cta-section {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    /* Flat on the category page — no card background/border/shadow, so it
       doesn't read as a box-inside-a-box on the white page. */
    .help-cta-box {
        background:    transparent;
        border:        none;
        box-shadow:    none;
        border-radius: 0;
        padding:       24px 20px;
        text-align:    center;
        position:      relative;
        overflow:      hidden;
    }

    .help-cta-box::before { display: none; }

/* How It Works sits inside the white .product-section on the category page — drop
   its own white background so it blends in instead of reading as a nested box.
   (category.css loads only on this page, so home / product-detail keep theirs.) */
.hiw-section { background: transparent; }

.help-cta-box h2 {
    font-size:     26px;
    font-weight:   700;
    margin-bottom: 16px;
    color:         var(--steel-blue);
}

.help-cta-box p {
    font-size:   15px;
    max-width:   880px;
    margin:      0 auto 12px;
    line-height: 1.7;
    color:       var(--Dgray);
    font-weight: 400;
}

.help-btn-group {
    display:         flex;
    justify-content: center;
    gap:             14px;
    margin-top:      28px;
}

.btn-help-outline,
.btn-help-solid {
    padding:         12px 28px;
    border-radius:   999px;
    font-weight:     600;
    font-size:       14px;
    text-decoration: none;
    transition:      transform .15s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}

.btn-help-outline {
    border: 1px solid #e2e5e9;
    color:  var(--steel-blue);
    background: #fff;
}

.btn-help-outline:hover { border-color: var(--secondary); color: var(--secondary); }

.btn-help-solid {
    background: linear-gradient(135deg, var(--secondary), #f4b743);
    color:      #16181d;
    box-shadow: 0 8px 20px rgba(232,154,14,.28);
}

.btn-help-solid:hover { transform: translateY(-2px); color: #16181d; }

/* ══════════════════════════════════════════════════════════════
   MOBILE DRAWER SYSTEM
   ══════════════════════════════════════════════════════════════ */

/* ── Hide all mobile drawer elements on desktop ────────────── */
@media (min-width: 992px) {
    .mobile-cat-toggle-btn,
    .mobile-cat-overlay,
    .mobile-cat-drawer {
        display: none !important;
    }
    .category-content-section {
    background: #f7f7f7;
    padding: 60px 0;
    text-align: center;
}

.category-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
}


}


.content-text {
    margin: 0 auto; text-align: left;
    font-family: 'Poppins', sans-serif; font-size: 14.5px; line-height: 1.75; color: var(--Dgray);
}
.content-text p { margin: 0 0 12px; }
.content-text p:last-child { margin-bottom: 0; }
.content-text ul, .content-text ol { margin: 0 0 12px; padding-left: 20px; }
.content-text li { margin-bottom: 6px; }

/* Sub-headings inside the admin-authored HTML — the sitewide h1-h6{margin:inherit}
   reset (variables.css) otherwise leaves them margin:0 and un-coloured (same
   grey as the body copy), so they read as "plain". Inline text-align from the
   admin content is left alone. */
.content-text h2, .content-text h3, .content-text h4 {
    margin: 28px 0 12px; font-family: 'Poppins', sans-serif; font-weight: 700;
    line-height: 1.35; color: var(--steel-blue);
}
.content-text h2:first-child, .content-text h3:first-child, .content-text h4:first-child { margin-top: 0; }
.content-text h2 { font-size: 22px; }
.content-text h3 { font-size: 18px; }
.content-text h4 { font-size: 16px; }

.content-text strong, .content-text b { color: var(--steel-blue); font-weight: 600; }
.content-text a { color: var(--secondary); text-decoration: underline; }
.content-text a:hover { color: var(--steel-blue); }

.text-center { margin-top: 18px; }

.read-toggle-btn {
    background: #ffffff;
    color: var(--secondary);
    border: 1px solid var(--secondary);
    padding: 10px 28px;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 13.5px;
    cursor: pointer;
    transition: background .25s ease, color .25s ease;
}

.read-toggle-btn:hover {
    background: var(--secondary);
    color: #fff;
}
/* ── Mobile styles (max-width: 991px) ──────────────────────── */
@media (max-width: 991px) {

    /* Collapse grid to single column */
    .category-page-container {
        grid-template-columns: 1fr !important;
    }

    /* Hide desktop sidebar */
    .sidebar-sticky-wrapper {
        display: none !important;
    }


    /* Help CTA adjustments */
    .help-cta-box {
        border-radius: 20px;
        padding:       40px 20px;
    }

    .help-btn-group {
        flex-direction: column;
        align-items:    center;
    }

    /* ── Mobile Toggle Button ──────────────────────────────── */
    .mobile-cat-toggle-btn {
        display:        flex;
        align-items:    center;
        gap:            1px;
        background:     var(--secondary);
        color:          #ffffff;
        border:         none;
        padding:        11px 18px;
        border-radius:  8px;
        font-size:      13px;
        font-weight:    700;
        cursor:         pointer;
        margin-bottom:  1px;
        width:          fit-content;
        box-shadow:     0 4px 14px rgba(232, 154, 14, 0.35);
        transition:     background 0.25s ease, transform 0.2s ease,
                        box-shadow 0.25s ease;
        letter-spacing: 0.3px;
    }

    .mobile-cat-toggle-btn:hover {
        box-shadow: 0 6px 20px rgba(232, 154, 14, 0.48);
    }

    .mobile-cat-toggle-btn:active {
        transform: scale(0.97);
    }

    .mobile-cat-toggle-btn i {
        font-size:   16px;
        line-height: 1;
    }

    /* ── Overlay Backdrop ──────────────────────────────────── */
    .mobile-cat-overlay {
        display:        block;
        position:       fixed;
        inset:          0;
        background:     rgba(0, 0, 0, 0.48);
        z-index:        999;
        opacity:        0;
        visibility:     hidden;
        pointer-events: none;
        transition:     opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-cat-overlay.open {
        opacity:        1;
        visibility:     visible;
        pointer-events: all;
    }

    /* ── Sliding Drawer Panel ──────────────────────────────── */
    .mobile-cat-drawer {
        display:        flex;
        flex-direction: column;
        position:       fixed;
        top:            0;
        left:           0;
        width:          80%;
        max-width:      300px;
        height:         100%;
        background:     var(--unified-bg);
        z-index:        1000;
        transform:      translateX(-100%);
        transition:     transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow:     6px 0 32px rgba(0, 0, 0, 0.14);
        overflow:       hidden;         /* keep this for body scroll, header handles its own */
    }

    .mobile-cat-drawer.open {
        transform: translateX(0);
    }

    /* ── Drawer Header ─────────────────────────────────────── */
    .mobile-drawer-header {
        display:         flex;
        justify-content: space-between;
        align-items:     center;
        padding:         16px 16px 16px 20px;
        border-bottom:   1px solid var(--unified-border);
        flex-shrink:     0;
        background:      var(--unified-bg);
        gap:             12px;          /* guarantees space between title & button */
        box-sizing:      border-box;
        width:           100%;
        overflow:        visible;       /* never clip the close button */
    }

    .mobile-drawer-header h3 {
        font-size:      11px;
        margin:         0;
        font-weight:    700;
        color:          #aaaaaa;
        text-transform: uppercase;
        letter-spacing: 1.4px;
        flex:           1 1 auto;       /* takes remaining space, never pushes button */
        min-width:      0;
        white-space:    nowrap;
        overflow:       hidden;
        text-overflow:  ellipsis;
    }

    /* ── Close Button ──────────────────────────────────────── */
    .mobile-drawer-close-btn {
        display:         flex;
        align-items:     center;
        justify-content: center;
        border:          none;
        width:           22px;
        height:          22px;
        min-width:       22px;          /* prevents button from shrinking */
        border-radius:   50%;
        background:      var(--Light-bg);
        cursor:          pointer;
        color:           var(--primary);
        font-size:       16px;
        line-height:     1;
        flex-shrink:     0;             /* never shrink the button */
        position:        relative;      /* ensure it stacks above any siblings */
        z-index:         2;
        transition:      background 0.2s ease, transform 0.2s ease;
        top:20px;
    }

    .mobile-drawer-close-btn:hover {
        background: #d0d0d0;
    }

    .mobile-drawer-close-btn:active {
        transform: scale(0.92);
    }

    /* ── Drawer Body — Scrollable Links ────────────────────── */
    .mobile-drawer-body {
        overflow-y:      auto;
        flex-grow:       1;
        scrollbar-width: thin;
        scrollbar-color: var(--secondary) transparent;
    }

    .mobile-drawer-body::-webkit-scrollbar {
        width: 3px;
    }

    .mobile-drawer-body::-webkit-scrollbar-thumb {
        background:    var(--secondary);
        border-radius: 20px;
    }
}

/* ── Category page: 4-column grid (with sidebar). Restores the pre-merge layout —
   the merged 3-column override (33.33%) made the cards too large. `25% - 18px`
   with the .cat-grid `gap:24px` fills exactly 4 across the sidebar-reduced area,
   matching the homepage product-card size. ── */
.category-page-container .cat-card {
    width: calc(25% - 18px);
}

@media (max-width: 991px) {
    .category-page-container .cat-card {
        width: calc(50% - 12px);
    }
}

@media (max-width: 480px) {
    .category-page-container .cat-card {
        width: calc(50% - 8px);
    }
}


/* ============================================================
   CATEGORY HERO BANNER (.plph-*) — products.blade.php
   Compact, single-bar crawlable H1 + feature list + CTA, per category
   (see $plphContent in products.blade.php). Deliberately tight vertical
   rhythm (not the site's usual 26/30 section padding) — client reference
   was a slim bar, not a spaced-out hero. Dark near-black + amber-glow
   surface — matches the homepage hero (.hero-lv: bg #121316 + a warm
   radial amber glow, home.css ~L3469).
   ============================================================ */

.plph-section {
    background:
        radial-gradient(60% 140% at 85% 40%, rgba(232,154,14,.20), rgba(232,154,14,0) 62%),
        radial-gradient(130% 130% at 50% 0%, #1c1d22 0%, #121316 60%);
}
.plph-bar { padding: 28px 0; }

/* ── Heading — full-width, sits above the features/CTA + gallery row ── */
.plph-title {
    margin: 0 0 10px; font-family: 'Poppins', sans-serif; font-weight: 700;
    font-size: clamp(19px, 2vw, 25px); line-height: 1.28; letter-spacing: -0.01em; color: #ffffff;
}

/* ── Row: features + CTA on the left, decorative pin cluster on the right ── */
.plph-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.plph-content { flex: 1 1 480px; }

.plph-features { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 16px; }
.plph-features li { display: flex; align-items: center; gap: 10px; flex: 1 1 190px; margin: 0; }
.plph-features i {
    flex: 0 0 auto; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; background: rgba(255,255,255,.08); color: var(--secondary); font-size: 14px;
}
.plph-features span { font-family: 'Poppins', sans-serif; font-size: 12.5px; font-weight: 500; line-height: 1.4; color: rgba(255,255,255,.82); }

.plph-cta {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    padding: 10px 18px; border-radius: 8px; background: var(--secondary); color: #16181d;
    font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 700; white-space: nowrap;
    transition: background .25s ease, transform .25s ease;
}
.plph-cta:hover { background: #ffb52e; transform: translateY(-2px); }
.plph-cta i { font-size: 11px; transition: transform .25s ease; }
.plph-cta:hover i { transform: translateX(3px); }

/* ── Decorative pin/badge cluster — raw transparent PNGs, no card chrome,
   loosely fanned out with rotation + drop-shadow (mirrors the homepage
   hero's floating cluster, home.css .hero-lv__visual). ── */
.plph-gallery { position: relative; flex: 0 0 auto; width: 300px; height: 120px; }
.plph-gallery__img {
    position: absolute; width: auto; display: block;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,.45));
}
.plph-gallery__img--1 { left: 0;   top: 22px; height: 62px;  transform: rotate(-10deg); z-index: 1; }
.plph-gallery__img--2 { left: 55px; top: 4px;  height: 82px;  transform: rotate(6deg);   z-index: 2; }
.plph-gallery__img--3 { left: 128px; top: -6px; height: 108px; transform: rotate(-4deg);  z-index: 3; }
.plph-gallery__img--4 { left: 208px; top: 10px; height: 78px;  transform: rotate(8deg);   z-index: 2; }
.plph-gallery__img--5 { left: 250px; top: 30px; height: 56px;  transform: rotate(-12deg); z-index: 1; }

#plp-products { scroll-margin-top: 100px; }

@media (max-width: 991px) {
    .plph-gallery { width: 260px; height: 100px; }
    .plph-gallery__img--1 { height: 52px; }
    .plph-gallery__img--2 { height: 70px; }
    .plph-gallery__img--3 { height: 92px; }
    .plph-gallery__img--4 { height: 66px; }
    .plph-gallery__img--5 { height: 48px; }
}
@media (max-width: 767px) {
    .plph-bar { padding: 20px 0; }
    .plph-content { flex-basis: 100%; }
    .plph-gallery { display: none; }
}

