.cat-sidebar {
            background: #ffffff;
            border-radius: 16px;
            box-shadow: 0 8px 28px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
            margin-bottom: 30px;
            overflow: hidden;
            border: 1px solid #fef3c7;
}

.hero-banner-link,
.hero-side-banner-link {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-banner-link[aria-disabled="true"],
.hero-side-banner-link[aria-disabled="true"] {
    cursor: default;
}

        @media (min-width: 992px) {
            .cat-sidebar {
                position: sticky;
                top: 24px;
            }
        }

        /* Mobile collapse toggle */
        .cat-sidebar__toggle {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 18px;
            background: linear-gradient(135deg, var(--primary-color), #047857);
            color: #fff;
            border: 0;
            font-size: 1.5rem;
            font-weight: 600;
            letter-spacing: .3px;
        }

        .cat-sidebar__toggle-label {
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }

        .cat-sidebar__toggle-arrow {
            transition: transform .25s ease;
        }

        .cat-sidebar.is-expanded .cat-sidebar__toggle-arrow {
            transform: rotate(180deg);
        }

        /* Desktop header */
        .cat-sidebar__header {
            padding: 22px 22px 16px;
            position: relative;
            border-bottom: 1px solid #f1f5f9;
        }

        .cat-sidebar__header::after {
            content: '';
            position: absolute;
            left: 22px;
            bottom: -1px;
            width: 46px;
            height: 3px;
            background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
            border-radius: 4px;
        }

        .cat-sidebar__title {
            margin: 0 0 4px;
            font-size: 1.8rem;
            font-weight: 700;
            color: #0f172a;
        }

        .cat-sidebar__subtitle {
            margin: 0;
            font-size: 1.25rem;
            color: #64748b;
        }

        /* Tree body / scroll */
        .cat-sidebar__body {
            max-height: calc(100vh - 180px);
            overflow-y: auto;
            padding: 12px 10px 16px;
            scrollbar-width: thin;
            scrollbar-color: rgba(245, 158, 11, .5) transparent;
        }

        .cat-sidebar__body::-webkit-scrollbar {
            width: 6px;
        }

        .cat-sidebar__body::-webkit-scrollbar-thumb {
            background: rgba(245, 158, 11, .45);
            border-radius: 6px;
        }

        .cat-sidebar__body::-webkit-scrollbar-track {
            background: transparent;
        }

        @media (max-width: 991.98px) {
            .cat-sidebar__body {
                display: none;
                max-height: 70vh;
            }

            .cat-sidebar.is-expanded .cat-sidebar__body {
                display: block;
            }
        }

        /* Tree */
        .cat-tree,
        .cat-tree__children {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .cat-tree__node {
            position: relative;
        }

        .cat-tree__row {
            display: flex;
            align-items: center;
            margin: 2px 0;
            border-radius: 10px;
            transition: background-color .2s ease, box-shadow .2s ease;
        }

        .cat-tree__row:hover {
            background: #fffbeb;
        }

        .cat-tree__row.is-active {
            background: linear-gradient(135deg, var(--secondary-color), #f59e0b);
            box-shadow: 0 6px 14px rgba(245, 158, 11, .28);
        }

        .cat-tree__row.is-active .cat-tree__link {
            color: #fff;
        }

        .cat-tree__row.is-active .cat-tree__toggle {
            color: #fff;
        }

        .cat-tree__row.is-active .cat-tree__dot {
            background: #fff;
            box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
        }

        .cat-tree__link {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 8px 9px 12px;
            color: #334155;
            font-weight: 500;
            font-size: 1.4rem;
            text-decoration: none;
            min-width: 0;
            line-height: 1.3;
        }

        .cat-tree__link:hover {
            color: var(--primary-color);
        }

        .cat-tree__name {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .cat-tree__dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--secondary-color);
            flex-shrink: 0;
            transition: transform .2s ease, background-color .2s ease;
        }

        .cat-tree__row:hover .cat-tree__dot {
            transform: scale(1.25);
        }

        .cat-tree__toggle {
            width: 30px;
            height: 30px;
            margin-right: 6px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 0;
            background: transparent;
            color: #94a3b8;
            border-radius: 8px;
            cursor: pointer;
            transition: background-color .2s, transform .25s, color .2s;
        }

        .cat-tree__toggle:hover {
            background: rgba(245, 158, 11, .15);
            color: var(--primary-color);
        }

        .cat-tree__node.is-open>.cat-tree__row>.cat-tree__toggle {
            transform: rotate(180deg);
        }

        /* Nested levels */
        .cat-tree__children {
            display: none;
            padding-left: 14px;
            margin: 2px 0 6px 14px;
            border-left: 2px dashed #fde68a;
        }

        .cat-tree__node.is-open>.cat-tree__children {
            display: block;
        }

        .cat-tree__children .cat-tree__link {
            font-size: 1.32rem;
            color: #475569;
        }

        .cat-tree__children .cat-tree__dot {
            background: #fbbf24;
            width: 6px;
            height: 6px;
        }

        .cat-tree__children .cat-tree__children {
            border-left-color: #fef3c7;
        }

        .cat-tree__children .cat-tree__children .cat-tree__link {
            font-size: 1.28rem;
            color: #64748b;
        }

        .cat-tree__children .cat-tree__children .cat-tree__dot {
            background: #cbd5e1;
        }

        /* ===================== Product Card ===================== */
        .pcard {
            position: relative;
            background: #ffffff;
            border-radius: 14px;
            border: 1px solid #f1f5f9;
            box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            height: 100%;
            transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
        }

        .pcard:hover {
            transform: translateY(-4px);
            box-shadow: 0 14px 28px rgba(15, 23, 42, .08);
            border-color: #fde68a;
        }

        /* Media */
        .pcard__media {
            position: relative;
            background: #fafafa;
            overflow: hidden;
            aspect-ratio: 1 / 1;
        }

        .pcard__media-link {
            display: block;
            width: 100%;
            height: 100%;
        }

        .pcard__media img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform .5s ease;
        }

        .pcard:hover .pcard__media img {
            transform: scale(1.08);
        }

        .pcard__media-fallback {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            color: #cbd5e1;
        }

        /* Badge (top-left) */
        .pcard__badge {
            position: absolute;
            top: 10px;
            left: 10px;
            z-index: 2;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 4px 10px;
            border-radius: 999px;
            background: linear-gradient(135deg, var(--primary-color), #047857);
            color: #fff;
            font-size: 1.1rem;
            font-weight: 700;
            letter-spacing: .3px;
            text-transform: uppercase;
            box-shadow: 0 4px 10px rgba(5, 150, 105, .25);
        }

        /* Quick view (top-right) */
        .pcard__quick {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 2;
            width: 34px;
            height: 34px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: #fff;
            color: #475569;
            box-shadow: 0 4px 10px rgba(15, 23, 42, .12);
            opacity: 0;
            transform: translateY(-6px);
            transition: opacity .25s, transform .25s, background .2s, color .2s;
        }

        .pcard:hover .pcard__quick {
            opacity: 1;
            transform: translateY(0);
        }

        .pcard__quick:hover {
            background: var(--secondary-color);
            color: #fff;
        }

        /* Body */
        .pcard__body {
            padding: 14px 14px 16px;
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .pcard__tier {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 3px 9px;
            margin-bottom: 8px;
            border-radius: 999px;
            background: rgba(245, 158, 11, .12);
            color: #b45309;
            font-size: 1.1rem;
            font-weight: 600;
            line-height: 1.5;
            align-self: flex-start;
        }

        .pcard__title {
            margin: 0 0 8px;
            font-size: 1.45rem;
            font-weight: 600;
            line-height: 1.35;
            color: #0f172a;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            min-height: calc(1.45rem * 1.35 * 2);
        }

        .pcard__title a {
            color: inherit;
            text-decoration: none;
            transition: color .2s;
        }

        .pcard__title a:hover {
            color: var(--primary-color);
        }

        .pcard__price {
            margin-bottom: 12px;
        }

        .pcard__price-current {
            font-size: 1.7rem;
            font-weight: 800;
            color: var(--primary-color);
            letter-spacing: -0.2px;
        }

        .pcard__price-cur {
            font-size: 1.25rem;
            font-weight: 700;
            margin-right: 2px;
            color: var(--secondary-color);
        }

        /* Footer: override global .product__card--footer rules */
        .pcard .product__card--footer {
            position: static;
            padding: 0;
            background: transparent;
            margin-top: auto;
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .pcard .product__card--footer::before {
            content: none !important;
            display: none;
        }

        /* Qty stepper */
        .pcard__qty {
            display: inline-flex;
            align-items: center;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 999px;
            padding: 3px;
            transition: border-color .2s, box-shadow .2s;
        }

        .pcard__qty:focus-within {
            border-color: var(--secondary-color);
            box-shadow: 0 0 0 3px rgba(245, 158, 11, .18);
        }

        .pcard__qty-btn {
            width: 28px;
            height: 28px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 0;
            background: #fff;
            color: #334155;
            border-radius: 50%;
            cursor: pointer;
            transition: background .2s, color .2s, transform .1s;
            box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
        }

        .pcard__qty-btn:hover {
            background: var(--secondary-color);
            color: #fff;
        }

        .pcard__qty-btn:active {
            transform: scale(.9);
        }

        .pcard__qty-input {
            width: 38px;
            height: 28px;
            border: 0;
            background: transparent;
            text-align: center;
            font-weight: 700;
            color: #0f172a;
            font-size: 1.3rem;
            -moz-appearance: textfield;
        }

        .pcard__qty-input:focus {
            outline: none;
        }

        .pcard__qty-input::-webkit-outer-spin-button,
        .pcard__qty-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .pcard__spinner {
            color: #94a3b8;
            font-size: 13px;
        }

        /* Add to cart button — overrides legacy .product__card--btn */
        .pcard .pcard__add {
            flex: 1;
            min-width: 0;
            height: auto;
            line-height: 1.2;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            padding: 10px 14px;
            border: 0;
            border-radius: 10px;
            background: linear-gradient(135deg, var(--primary-color), #047857);
            color: #fff;
            font-weight: 700;
            font-size: 1.25rem;
            text-transform: none;
            letter-spacing: .2px;
            cursor: pointer;
            transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
            box-shadow: 0 6px 14px rgba(5, 150, 105, .22);
        }

        .pcard .pcard__add svg {
            margin: 0;
        }

        .pcard .pcard__add:hover {
            color: #fff;
            transform: translateY(-1px);
            box-shadow: 0 10px 20px rgba(5, 150, 105, .3);
            filter: brightness(1.04);
        }

        .pcard .pcard__add:active {
            transform: translateY(0);
        }

        /* In-cart visual cue on the wrapper */
        .pcard .product__card--footer[data-in-cart="1"]~* {
            /* placeholder */
        }

        .pcard .product__card--footer[data-in-cart="1"] .pcard__qty {
            border-color: var(--primary-color);
            background: #ecfdf5;
        }

        /* ---- Responsive tweaks ---- */
        @media (max-width: 575.98px) {
            .pcard__body {
                padding: 12px 12px 14px;
            }

            .pcard__title {
                font-size: 1.35rem;
                min-height: calc(1.35rem * 1.35 * 2);
            }

            .pcard__price-current {
                font-size: 1.5rem;
            }

            .pcard .pcard__add span {
                display: none;
            }

            /* icon-only on tiny screens */
            .pcard .pcard__add {
                padding: 9px 12px;
                font-size: 1.25rem;
            }

            .pcard__qty-input {
                width: 32px;
            }

            .pcard__quick {
                opacity: 1;
                transform: none;
            }

            /* always visible on touch */
        }

        /* ===================== Empty state ===================== */
        .pcard-empty {
            text-align: center;
            padding: 60px 24px;
            background: #fff;
            border-radius: 16px;
            border: 1px dashed #e2e8f0;
        }

        .pcard-empty__icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 88px;
            height: 88px;
            border-radius: 50%;
            background: linear-gradient(135deg, #fef3c7, #fde68a);
            color: var(--secondary-color);
            margin-bottom: 20px;
        }

        .pcard-empty__title {
            font-size: 1.9rem;
            font-weight: 700;
            color: #0f172a;
            margin: 0 0 8px;
        }

        .pcard-empty__text {
            color: #64748b;
            font-size: 1.4rem;
            margin: 0 0 22px;
        }

        .pcard-empty__btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 24px;
            border-radius: 12px;
            background: linear-gradient(135deg, var(--primary-color), #047857);
            color: #fff;
            font-weight: 700;
            text-decoration: none;
            box-shadow: 0 8px 18px rgba(5, 150, 105, .22);
            transition: transform .15s, box-shadow .2s;
        }

        .pcard-empty__btn:hover {
            color: #fff;
            transform: translateY(-2px);
            box-shadow: 0 12px 24px rgba(5, 150, 105, .3);
        }

        .product-section-grid {
            display: grid;
            grid-template-columns: repeat(var(--grid-columns, 5), minmax(0, 1fr));
            gap: 24px;
        }

        @media (max-width: 1199.98px) {
            .product-section-grid {
                grid-template-columns: repeat(var(--grid-columns-lg, 4), minmax(0, 1fr));
                gap: 20px;
            }
        }

        @media (max-width: 991.98px) {
            .product-section-grid {
                grid-template-columns: repeat(var(--grid-columns-md, 3), minmax(0, 1fr));
            }
        }

        @media (max-width: 575.98px) {
            .product-section-grid {
                grid-template-columns: repeat(var(--grid-columns-sm, 2), minmax(0, 1fr));
                gap: 14px;
            }
        }

.pcard__badge--discount {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 10px rgba(220, 38, 38, .28);
}

.pcard__price-original {
    margin-left: 8px;
    color: #94a3b8;
    font-size: 1.25rem;
    font-weight: 600;
}
