/* ==========================================================================
   TBH INDIA — SHOP / CATEGORY PAGE THEME
   Scope: customer shop/catalog page only
   Depends on:
   1. assets/css/style.css
   2. assets/css/customer-theme.css

   IMPORTANT:
   Presentation only.
   No PHP / query / filtering / checkout logic changes.
========================================================================== */


/* ==========================================================================
   SHOP PAGE TOKENS
========================================================================== */

:root {
    --shop-gold: var(--tbh-gold);
    --shop-gold-dark: var(--tbh-gold-dark);
    --shop-ink: var(--tbh-black);
    --shop-muted: var(--tbh-gray-600);
    --shop-line: var(--tbh-gray-200);
    --shop-paper: var(--tbh-paper);
    --shop-cream: var(--tbh-cream);
    --shop-white: var(--tbh-white);
}


/* ==========================================================================
   SHOP HERO
========================================================================== */

.shop-page-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);

    background:
        radial-gradient(
            circle at 88% 22%,
            rgba(212, 175, 55, 0.18),
            transparent 25%
        ),
        radial-gradient(
            circle at 8% 90%,
            rgba(212, 175, 55, 0.07),
            transparent 22%
        ),
        linear-gradient(
            135deg,
            #fffdf8 0%,
            #f8f2e4 58%,
            #efe3c3 100%
        );
}

.shop-page-hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -100px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.10);
    box-shadow:
        0 0 0 22px rgba(212, 175, 55, 0.025),
        0 0 0 46px rgba(212, 175, 55, 0.018);
    pointer-events: none;
}

.shop-page-hero__inner {
    min-height: 270px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 36px;
    padding: 54px 0;

    position: relative;
    z-index: 1;
}

.shop-page-hero__inner > div:first-child {
    min-width: 0;
}

.shop-page-hero h1 {
    margin: 8px 0 0;

    font-size: clamp(40px, 5vw, 62px);
    line-height: 0.98;
    letter-spacing: -0.05em;

    color: var(--shop-ink);
}

.shop-page-hero p {
    max-width: 680px;
    margin: 16px 0 0;

    color: var(--shop-muted);
    font-size: 17px;
    line-height: 1.65;
}

.shop-page-hero__badge {
    width: 156px;
    height: 156px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;
    align-content: center;

    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.58);

    background:
        radial-gradient(
            circle at 50% 32%,
            rgba(255,255,255,.92),
            rgba(255,250,239,.62) 58%,
            rgba(212,175,55,.08) 100%
        );

    box-shadow:
        0 0 0 14px rgba(212,175,55,.055),
        0 22px 48px rgba(45,38,20,.08);

    transform: rotate(-4deg);
}

.shop-page-hero__badge span {
    font-size: 40px;
    line-height: 1;

    font-weight: 950;
    letter-spacing: -0.06em;

    color: var(--shop-ink);
}

.shop-page-hero__badge small {
    margin-top: 8px;

    color: var(--shop-gold-dark);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.30em;
}


/* ==========================================================================
   SHOP TOOLBAR AREA
========================================================================== */

.shop-toolbar-section {
    padding: 22px 0 0;
    background: var(--shop-paper);
}

.shop-toolbar {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(170px, 210px)
        minmax(170px, 210px)
        auto;

    gap: 14px;
    align-items: end;

    padding: 16px;

    border: 1px solid var(--shop-line);
    border-radius: 22px;

    background: rgba(255,255,255,.92);

    box-shadow:
        0 10px 34px rgba(17,17,17,.055);

    backdrop-filter: blur(12px);
}


/* SEARCH */

.shop-search {
    min-width: 0;
    min-height: 54px;

    display: flex;
    align-items: stretch;

    overflow: hidden;

    border: 1px solid #d9d0be;
    border-radius: 15px;

    background: #fff;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.shop-search:focus-within {
    border-color: var(--shop-gold);

    box-shadow:
        0 0 0 4px rgba(212,175,55,.11);
}

.shop-search input {
    width: 100%;
    min-width: 0;
    min-height: 54px;

    padding: 0 18px;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--shop-ink);

    font-size: 15px;
    font-weight: 600;
}

.shop-search input::placeholder {
    color: #9a958a;
}

.shop-search button {
    min-width: 112px;
    min-height: 54px;

    padding: 0 18px;

    border: 0;

    background:
        linear-gradient(
            135deg,
            var(--shop-gold),
            #e1bf58
        );

    color: var(--shop-ink);

    font-size: 13px;
    font-weight: 950;

    letter-spacing: .01em;

    cursor: pointer;

    transition:
        filter .2s ease,
        transform .2s ease;
}

.shop-search button:hover {
    filter: brightness(.96);
}

.shop-search button:active {
    transform: scale(.985);
}


/* CONTROLS */

.shop-control {
    min-width: 0;

    display: grid;
    gap: 7px;
}

.shop-control label {
    padding-left: 3px;

    color: var(--shop-gold-dark);

    font-size: 10px;
    line-height: 1;

    font-weight: 950;
    letter-spacing: .12em;

    text-transform: uppercase;
}

.shop-control select {
    width: 100%;
    min-height: 54px;

    padding:
        0
        42px
        0
        15px;

    border: 1px solid #d9d0be;
    border-radius: 14px;

    background-color: #fff;

    background-image:
        linear-gradient(
            45deg,
            transparent 50%,
            #8a7a55 50%
        ),
        linear-gradient(
            135deg,
            #8a7a55 50%,
            transparent 50%
        );

    background-position:
        calc(100% - 18px) 23px,
        calc(100% - 12px) 23px;

    background-size:
        6px 6px,
        6px 6px;

    background-repeat: no-repeat;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    outline: 0;

    color: var(--shop-ink);

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.shop-control select:hover {
    border-color: rgba(212,175,55,.62);
}

.shop-control select:focus {
    border-color: var(--shop-gold);

    box-shadow:
        0 0 0 4px rgba(212,175,55,.11);
}


/* CLEAR */

.shop-clear {
    min-height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 15px;

    border: 1px solid rgba(166,124,0,.20);
    border-radius: 14px;

    background: var(--shop-cream);
    color: var(--shop-gold-dark);

    font-size: 13px;
    font-weight: 950;

    white-space: nowrap;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.shop-clear:hover {
    background: #f2e7cd;

    border-color:
        rgba(166,124,0,.40);

    transform: translateY(-1px);
}


/* ==========================================================================
   ACTIVE FILTER CONTEXT
========================================================================== */

.shop-context {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 12px;
    padding: 0 4px;
}

.shop-context span {
    display: inline-flex;
    align-items: center;

    min-height: 32px;

    padding: 6px 11px;

    border: 1px solid rgba(212,175,55,.18);
    border-radius: 999px;

    background: rgba(247,241,223,.72);

    color: var(--shop-muted);

    font-size: 12px;
    line-height: 1.2;
}

.shop-context strong {
    margin-left: 4px;
    color: var(--shop-ink);
}


/* ==========================================================================
   PRODUCT SECTION
========================================================================== */

.shop-products-section {
    padding-top: 42px;
    padding-bottom: 82px;

    background: var(--shop-paper);
}

.shop-results-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 24px;
}

.shop-results-heading h2 {
    margin: 7px 0 0;

    font-size: clamp(30px, 4vw, 46px);
    line-height: 1;

    letter-spacing: -.045em;
}

.shop-result-count {
    margin: 9px 0 0;

    color: var(--shop-muted);

    font-size: 14px;
    line-height: 1.5;
}


/* ==========================================================================
   PRODUCT GRID
========================================================================== */

.shop-products-section .product-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}


/* ==========================================================================
   PRODUCT CARD SHOP OVERRIDES
========================================================================== */

.shop-products-section .product-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    border: 1px solid rgba(17,17,17,.08);
    border-radius: 22px;

    background: #fff;

    box-shadow:
        0 8px 26px rgba(17,17,17,.045);

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.shop-products-section .product-card:hover {
    transform: translateY(-4px);

    border-color:
        rgba(212,175,55,.30);

    box-shadow:
        0 18px 42px rgba(17,17,17,.09);
}


/* PRODUCT IMAGE */

.shop-products-section .product-card__image {
    position: relative;

    display: block;

    width: 100%;
    aspect-ratio: 1 / 1.02;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #faf7ef,
            #f1ecdf
        );
}

.shop-products-section .product-card__image::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.04),
            transparent 60%
        );

    pointer-events: none;
}

.shop-products-section .product-card__image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .35s ease,
        filter .35s ease;
}

.shop-products-section .product-card:hover
.product-card__image img {
    transform: scale(1.035);
}


/* PLACEHOLDER */

.shop-products-section .product-placeholder {
    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;

    color: var(--shop-gold-dark);

    font-size: 14px;
    font-weight: 950;
    letter-spacing: .18em;

    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(212,175,55,.14),
            transparent 45%
        ),
        #f7f1df;
}


/* PRODUCT BODY */

.shop-products-section .product-card__body {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 16px 16px 17px;
}


/* BRAND */

.shop-products-section .product-card__meta {
    margin-bottom: 7px;

    color: #9a9384;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: .13em;

    line-height: 1.2;

    text-transform: uppercase;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* PRODUCT TITLE */

.shop-products-section .product-card__body h3 {
    margin: 0;

    min-height: 43px;

    font-size: 16px;
    line-height: 1.35;

    letter-spacing: -.015em;
}

.shop-products-section .product-card__body h3 a {
    color: var(--shop-ink);
}

.shop-products-section .product-card__body h3 a:hover {
    color: var(--shop-gold-dark);
}


/* PRICE */

.shop-products-section .product-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 12px;
}

.shop-products-section .product-price-row strong {
    color: var(--shop-ink);

    font-size: 20px;
    line-height: 1;

    font-weight: 950;
    letter-spacing: -.02em;
}

.shop-products-section .product-price-row del {
    color: #9e988d;

    font-size: 12px;
    font-weight: 700;
}


/* STOCK */

.shop-products-section .stock-badge {
    width: fit-content;

    display: inline-flex;
    align-items: center;

    min-height: 26px;

    margin-top: 11px;

    padding: 4px 8px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: .03em;
}

.shop-products-section .stock-badge--available {
    background: #edf7ed;
    color: #27733a;
}

.shop-products-section .stock-badge--unavailable {
    background: #f8eaea;
    color: #a13b3b;
}


/* PRODUCT BUTTON */

.shop-products-section .btn-product {
    width: 100%;

    min-height: 44px;

    margin-top: 14px;

    border-radius: 12px;

    font-size: 12px;
    font-weight: 950;

    letter-spacing: .01em;
}

.shop-products-section .product-card:hover .btn-product {
    border-color:
        rgba(212,175,55,.38);
}


/* ==========================================================================
   EMPTY STATE
========================================================================== */

.shop-empty {
    padding: 76px 24px;

    border: 1px dashed #d7cfbf;
    border-radius: 24px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(212,175,55,.08),
            transparent 40%
        ),
        rgba(255,255,255,.72);

    text-align: center;
}

.shop-empty__icon {
    width: 72px;
    height: 72px;

    display: grid;
    place-items: center;

    margin: 0 auto 16px;

    border-radius: 22px;

    background: var(--shop-cream);

    font-size: 32px;
}

.shop-empty h3 {
    margin: 0 0 9px;

    font-size: 26px;
    line-height: 1.1;
}

.shop-empty p {
    max-width: 560px;

    margin: 0 auto 24px;

    color: var(--shop-muted);

    line-height: 1.65;
}


/* ==========================================================================
   LARGE TABLET
========================================================================== */

@media (max-width: 1180px) {

    .shop-products-section .product-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .shop-toolbar {
        grid-template-columns:
            minmax(0, 1fr)
            180px
            180px;
    }

    .shop-clear {
        grid-column: 1 / -1;
        justify-self: flex-start;
    }
}


/* ==========================================================================
   TABLET
========================================================================== */

@media (max-width: 860px) {

    .shop-page-hero__inner {
        min-height: auto;
        padding: 42px 0;
    }

    .shop-page-hero h1 {
        font-size: clamp(36px, 7vw, 50px);
    }

    .shop-page-hero p {
        max-width: 580px;
        font-size: 15px;
    }

    .shop-page-hero__badge {
        width: 130px;
        height: 130px;
    }

    .shop-page-hero__badge span {
        font-size: 32px;
    }

    .shop-toolbar {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(170px, .65fr)
            minmax(170px, .65fr);
    }

    .shop-products-section {
        padding-top: 34px;
    }
}


/* ==========================================================================
   MOBILE
========================================================================== */

@media (max-width: 720px) {

    .shop-page-hero__inner {
        padding: 34px 0 36px;
    }

    .shop-page-hero__badge {
        display: none;
    }

    .shop-page-hero h1 {
        font-size: 36px;
    }

    .shop-page-hero p {
        margin-top: 11px;
        font-size: 14px;
        line-height: 1.6;
    }

    .shop-toolbar-section {
        padding-top: 14px;
    }

    .shop-toolbar {
        grid-template-columns: 1fr 1fr;

        gap: 10px;

        padding: 12px;

        border-radius: 18px;
    }

    .shop-search {
        grid-column: 1 / -1;

        min-height: 50px;
        border-radius: 14px;
    }

    .shop-search input {
        min-height: 50px;

        padding: 0 14px;

        font-size: 14px;
    }

    .shop-search button {
        min-width: 82px;
        min-height: 50px;

        padding-inline: 12px;

        font-size: 12px;
    }

    .shop-control label {
        font-size: 9px;
        letter-spacing: .10em;
    }

    .shop-control select {
        min-height: 48px;

        padding-left: 11px;
        padding-right: 34px;

        border-radius: 12px;

        font-size: 12px;

        background-position:
            calc(100% - 15px) 20px,
            calc(100% - 9px) 20px;
    }

    .shop-clear {
        grid-column: 1 / -1;

        min-height: 42px;

        justify-self: flex-start;

        padding-inline: 12px;

        border-radius: 12px;

        font-size: 12px;
    }

    .shop-context {
        gap: 6px;

        margin-top: 9px;

        padding-inline: 1px;
    }

    .shop-context span {
        min-height: 30px;

        padding: 5px 9px;

        font-size: 11px;
    }

    .shop-results-heading {
        margin-bottom: 18px;
    }

    .shop-results-heading h2 {
        margin-top: 6px;

        font-size: 32px;
    }

    .shop-result-count {
        font-size: 13px;
    }

    .shop-products-section .product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 11px;
    }

    .shop-products-section .product-card {
        border-radius: 17px;
    }

    .shop-products-section .product-card__body {
        padding: 12px 12px 13px;
    }

    .shop-products-section .product-card__meta {
        margin-bottom: 6px;

        font-size: 8.5px;
    }

    .shop-products-section .product-card__body h3 {
        min-height: 40px;

        font-size: 13px;
        line-height: 1.32;
    }

    .shop-products-section .product-price-row {
        gap: 6px;
        margin-top: 9px;
    }

    .shop-products-section .product-price-row strong {
        font-size: 17px;
    }

    .shop-products-section .product-price-row del {
        font-size: 10px;
    }

    .shop-products-section .stock-badge {
        min-height: 22px;

        margin-top: 8px;

        padding: 3px 7px;

        font-size: 8.5px;
    }

    .shop-products-section .btn-product {
        min-height: 40px;

        margin-top: 10px;

        border-radius: 10px;

        font-size: 10px;
    }

    .shop-empty {
        padding: 54px 18px;
        border-radius: 19px;
    }

    .shop-empty__icon {
        width: 62px;
        height: 62px;

        border-radius: 19px;

        font-size: 27px;
    }

    .shop-empty h3 {
        font-size: 23px;
    }

    .shop-empty p {
        font-size: 14px;
    }
}


/* ==========================================================================
   SMALL MOBILE
========================================================================== */

@media (max-width: 420px) {

    .shop-page-hero__inner {
        padding: 30px 0 32px;
    }

    .shop-page-hero h1 {
        font-size: 31px;
    }

    .shop-page-hero p {
        font-size: 13px;
    }

    .shop-toolbar {
        padding: 10px;
        border-radius: 16px;
    }

    .shop-products-section {
        padding-top: 30px;
        padding-bottom: 58px;
    }

    .shop-products-section .product-grid {
        gap: 9px;
    }

    .shop-products-section .product-card__body {
        padding: 11px;
    }

    .shop-products-section .product-card__body h3 {
        font-size: 12.5px;
    }

    .shop-products-section .product-price-row strong {
        font-size: 16px;
    }

    .shop-products-section .btn-product {
        min-height: 38px;
        font-size: 9.5px;
    }
}


/* ==========================================================================
   VERY SMALL DEVICES
========================================================================== */

@media (max-width: 350px) {

    .shop-products-section .product-grid {
        grid-template-columns: 1fr;
    }

    .shop-products-section .product-card__body h3 {
        font-size: 14px;
    }

    .shop-products-section .product-price-row strong {
        font-size: 18px;
    }
}


/* ==========================================================================
   REDUCED MOTION
========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .shop-products-section .product-card,
    .shop-products-section .product-card__image img,
    .shop-search button,
    .shop-clear {
        transition: none !important;
    }
}


/* ==========================================================================
   TBH INDIA — DEPENDENT CATEGORY FILTERS
   Main category + subcategory controls for shop.php.
   Presentation only; filtering remains handled by shop.php.
========================================================================== */

.shop-toolbar {
    grid-template-columns:
        minmax(220px, 1fr)
        minmax(145px, 180px)
        minmax(145px, 180px)
        minmax(160px, 190px)
        auto;
}

.shop-control--subcategory select:disabled {
    cursor: not-allowed;
    color: #9a958a;
    background-color: #f5f2eb;
    opacity: .82;
}

.shop-control select {
    min-width: 0;
}

@media (max-width: 1180px) {
    .shop-toolbar {
        grid-template-columns:
            minmax(0, 1fr)
            repeat(3, minmax(145px, 1fr));
    }

    .shop-toolbar .shop-search {
        grid-column: 1 / -1;
    }

    .shop-clear {
        grid-column: 1 / -1;
        justify-self: flex-start;
    }
}

@media (max-width: 860px) {
    .shop-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-toolbar .shop-search {
        grid-column: 1 / -1;
    }

    .shop-control--category,
    .shop-control--subcategory,
    .shop-control--sort {
        min-width: 0;
    }

    .shop-control--category select,
    .shop-control--subcategory select,
    .shop-control--sort select {
        font-size: 13px;
    }
}

@media (max-width: 520px) {
    .shop-toolbar {
        grid-template-columns: minmax(0, 1fr);
        gap: 11px;
    }

    .shop-toolbar .shop-search,
    .shop-clear {
        grid-column: 1;
    }

    .shop-clear {
        width: 100%;
        justify-self: stretch;
    }

    .shop-control label {
        font-size: 10px;
    }

    .shop-control--category select,
    .shop-control--subcategory select,
    .shop-control--sort select {
        min-height: 48px;
        font-size: 14px;
    }
}


/* ==========================================================================
   TBH INDIA — SINGLE HIERARCHICAL CATEGORY HOVER MENU
   Replaces the separate main-category and subcategory select controls.
========================================================================== */

.shop-toolbar {
    grid-template-columns: minmax(220px, 1fr) minmax(210px, 270px) minmax(160px, 210px) auto;
}

.shop-category-menu-wrap {
    position: relative;
    display: grid;
    gap: 7px;
    min-width: 0;
    align-self: end;
}

.shop-category-menu-label {
    padding-left: 3px;
    color: var(--shop-gold-dark);
    font-size: 10px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.shop-category-menu {
    position: relative;
    min-width: 0;
    z-index: 50;
}

.shop-category-menu__trigger {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 15px;
    text-align: left;
    cursor: pointer;
    border: 1px solid #d9d0be;
    border-radius: 14px;
    background: #fff;
    color: var(--shop-ink);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.shop-category-menu__trigger:hover,
.shop-category-menu:hover .shop-category-menu__trigger,
.shop-category-menu:focus-within .shop-category-menu__trigger {
    border-color: rgba(212,175,55,.75);
    box-shadow: 0 0 0 3px rgba(212,175,55,.09);
}

.shop-category-menu__trigger-arrow {
    flex: 0 0 auto;
    color: #8a7a55;
    font-size: 16px;
}

.shop-category-menu__root,
.shop-category-menu__submenu {
    position: absolute;
    display: none;
    list-style: none;
    margin: 0;
    padding: 7px;
    min-width: 245px;
    max-width: min(320px, 82vw);
    max-height: min(68vh, 520px);
    overflow: visible;
    background: #fff;
    border: 1px solid rgba(166,124,0,.22);
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(17,17,17,.16);
}

.shop-category-menu__root {
    top: calc(100% + 5px);
    left: 0;
    overflow-y: auto;
}

.shop-category-menu:hover .shop-category-menu__root,
.shop-category-menu:focus-within .shop-category-menu__root {
    display: block;
}

.shop-category-menu__item {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-category-menu__link {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px;
    border-radius: 9px;
    color: #24211a;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.shop-category-menu__link:hover,
.shop-category-menu__item:focus-within > .shop-category-menu__link,
.shop-category-menu__item.is-active > .shop-category-menu__link {
    background: #fbf4df;
    color: #8c6800;
}

.shop-category-menu__arrow {
    flex: 0 0 auto;
    color: #9b7b22;
    font-size: 22px;
    line-height: 1;
}

.shop-category-menu__submenu {
    top: -7px;
    left: calc(100% - 2px);
    overflow-y: auto;
}

.shop-category-menu__item:hover > .shop-category-menu__submenu,
.shop-category-menu__item:focus-within > .shop-category-menu__submenu {
    display: block;
}

/* Keep nested menus usable near the right edge of the viewport. */
.shop-category-menu__item:nth-last-child(-n+3) > .shop-category-menu__submenu {
    top: auto;
    bottom: -7px;
}

@media (max-width: 1180px) {
    .shop-toolbar {
        grid-template-columns: minmax(0, 1fr) minmax(190px, 1fr) minmax(160px, .8fr);
    }

    .shop-toolbar .shop-search {
        grid-column: 1 / -1;
    }

    .shop-clear {
        grid-column: 1 / -1;
        justify-self: flex-start;
    }
}

@media (max-width: 860px) {
    .shop-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-category-menu-wrap,
    .shop-control--sort {
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .shop-toolbar {
        grid-template-columns: minmax(0, 1fr);
    }

    .shop-category-menu-wrap,
    .shop-control--sort,
    .shop-toolbar .shop-search,
    .shop-clear {
        grid-column: 1;
        width: 100%;
    }

    .shop-category-menu__trigger {
        min-height: 50px;
        font-size: 14px;
    }

    .shop-category-menu__root {
        min-width: 100%;
        max-width: 100%;
    }

    /* On touch devices there is no hover; tap the category trigger to open. */
    .shop-category-menu__submenu {
        position: static;
        min-width: 0;
        max-width: 100%;
        margin: 3px 0 5px 10px;
        box-shadow: none;
        border-radius: 10px;
    }

    .shop-category-menu__item:hover > .shop-category-menu__submenu,
    .shop-category-menu__item:focus-within > .shop-category-menu__submenu,
    .shop-category-menu__item.is-mobile-open > .shop-category-menu__submenu {
        display: block;
    }

    .shop-category-menu__root {
        max-height: 65vh;
        overflow-y: auto;
    }

    .shop-category-menu.is-open .shop-category-menu__root {
        display: block;
    }
}


/* Main categories (Fashion & Clothing, Men, Women, etc.) are visually distinct
   from nested subcategories in the single category hover menu. */
.shop-category-menu__root > .shop-category-menu__item > .shop-category-menu__link {
    font-weight: 850;
}

.shop-category-menu__root > .shop-category-menu__item.has-children > .shop-category-menu__link {
    background: #fffdf7;
}

.shop-category-menu__root > .shop-category-menu__item.has-children:hover > .shop-category-menu__link,
.shop-category-menu__root > .shop-category-menu__item.has-children:focus-within > .shop-category-menu__link {
    background: #fbf1d5;
}

/* HOTFIX: keep the hierarchical category menu as an overlay, never in document flow. */
.shop-toolbar .shop-category-menu-wrap {
    position: relative !important;
    display: grid !important;
    align-self: end !important;
    min-width: 0 !important;
    overflow: visible !important;
    z-index: 200 !important;
}
.shop-toolbar .shop-category-menu {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
    z-index: 201 !important;
}
.shop-toolbar .shop-category-menu__root,
.shop-toolbar .shop-category-menu__submenu {
    display: none !important;
    position: absolute !important;
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 7px !important;
    background: #fff !important;
    border: 1px solid rgba(166,124,0,.24) !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 42px rgba(17,17,17,.16) !important;
    box-sizing: border-box !important;
    z-index: 9999 !important;
}
.shop-toolbar .shop-category-menu__root {
    top: calc(100% + 5px) !important;
    left: 0 !important;
    right: auto !important;
    width: max-content !important;
    min-width: 245px !important;
    max-width: min(340px, 82vw) !important;
    max-height: min(68vh, 520px) !important;
    overflow-x: visible !important;
    overflow-y: auto !important;
}
.shop-toolbar .shop-category-menu__submenu {
    top: -7px !important;
    left: calc(100% - 2px) !important;
    right: auto !important;
    width: max-content !important;
    min-width: 235px !important;
    max-width: min(320px, 78vw) !important;
    max-height: min(60vh, 480px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
.shop-toolbar .shop-category-menu:hover > .shop-category-menu__root,
.shop-toolbar .shop-category-menu:focus-within > .shop-category-menu__root,
.shop-toolbar .shop-category-menu.is-open > .shop-category-menu__root {
    display: block !important;
}
.shop-toolbar .shop-category-menu__item {
    position: relative !important;
    display: block !important;
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.shop-toolbar .shop-category-menu__item:hover > .shop-category-menu__submenu,
.shop-toolbar .shop-category-menu__item:focus-within > .shop-category-menu__submenu,
.shop-toolbar .shop-category-menu__item.is-mobile-open > .shop-category-menu__submenu {
    display: block !important;
}
.shop-toolbar .shop-category-menu__link {
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
}
@media (max-width: 520px) {
    .shop-toolbar .shop-category-menu__root {
        position: absolute !important;
        top: calc(100% + 5px) !important;
        left: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        max-height: 65vh !important;
        overflow-y: auto !important;
    }
    .shop-toolbar .shop-category-menu__submenu {
        position: static !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        max-height: none !important;
        margin: 3px 0 5px 10px !important;
        box-shadow: none !important;
    }
    .shop-toolbar .shop-category-menu:hover > .shop-category-menu__root,
    .shop-toolbar .shop-category-menu:focus-within > .shop-category-menu__root,
    .shop-toolbar .shop-category-menu.is-open > .shop-category-menu__root {
        display: block !important;
    }
}


/* FINAL CATEGORY MENU FIX — consistent nested flyout panels */
.shop-toolbar .shop-category-menu__root {
    width: 276px !important;
    min-width: 276px !important;
    max-width: min(276px, calc(100vw - 32px)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    z-index: 10000 !important;
}
.shop-toolbar .shop-category-menu__submenu {
    position: fixed !important; /* JS places each panel beside its hovered parent */
    top: 8px;
    left: 8px;
    width: 276px !important;
    min-width: 276px !important;
    max-width: min(276px, calc(100vw - 32px)) !important;
    max-height: min(68vh, 520px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    z-index: 10010 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 18px 42px rgba(17,17,17,.16) !important;
}
.shop-toolbar .shop-category-menu__link {
    min-height: 42px !important;
    padding: 10px 12px !important;
    border-radius: 9px !important;
    color: #24211a !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}
.shop-toolbar .shop-category-menu__root > .shop-category-menu__item > .shop-category-menu__link {
    font-weight: 850 !important;
}
.shop-toolbar .shop-category-menu__link:hover,
.shop-toolbar .shop-category-menu__item:focus-within > .shop-category-menu__link,
.shop-toolbar .shop-category-menu__item.is-active > .shop-category-menu__link {
    background: #fbf1d5 !important;
    color: #8c6800 !important;
}
@media (max-width: 520px) {
    .shop-toolbar .shop-category-menu__submenu {
        position: static !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        max-height: none !important;
        margin: 3px 0 5px 10px !important;
        box-shadow: none !important;
    }
}


/* ==========================================================================
   CATEGORY FLYOUT HOTFIX — current shop.php hover positioning
   Fixes the JS/CSS priority conflict on nested category panels.
========================================================================== */
.shop-toolbar .shop-category-menu,
.shop-toolbar .shop-category-menu__item {
    overflow: visible !important;
}
.shop-toolbar .shop-category-menu__root {
    z-index: 10000 !important;
}
.shop-toolbar .shop-category-menu__item.has-children:hover > .shop-category-menu__submenu,
.shop-toolbar .shop-category-menu__item.has-children:focus-within > .shop-category-menu__submenu,
.shop-toolbar .shop-category-menu__item.has-children.is-mobile-open > .shop-category-menu__submenu {
    display: block !important;
    visibility: visible;
}
.shop-toolbar .shop-category-menu__submenu {
    pointer-events: auto !important;
}
@media (hover: hover) and (pointer: fine) and (min-width: 521px) {
    .shop-toolbar .shop-category-menu__item.has-children:hover > .shop-category-menu__submenu,
    .shop-toolbar .shop-category-menu__item.has-children:focus-within > .shop-category-menu__submenu {
        display: block !important;
    }
}


/* ==========================================================================
   TBH INDIA — FINAL CATEGORY EXPLORER FIX
   Stable nested list: subcategories expand inline, never as overlapping
   fixed-position panels. This intentionally overrides older flyout rules.
========================================================================== */
.shop-toolbar .shop-category-menu {
    position: relative !important;
    z-index: 20000 !important;
    overflow: visible !important;
}
.shop-toolbar .shop-category-menu__root {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    width: 300px !important;
    min-width: 260px !important;
    max-width: min(340px, calc(100vw - 32px)) !important;
    max-height: min(70vh, 560px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    display: none !important;
    padding: 8px !important;
    margin: 0 !important;
    list-style: none !important;
    background: #fffdf8 !important;
    border: 1px solid rgba(166,124,0,.24) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 48px rgba(17,17,17,.18) !important;
    z-index: 20001 !important;
}
.shop-toolbar .shop-category-menu:hover > .shop-category-menu__root,
.shop-toolbar .shop-category-menu:focus-within > .shop-category-menu__root,
.shop-toolbar .shop-category-menu.is-open > .shop-category-menu__root {
    display: block !important;
}
.shop-toolbar .shop-category-menu__submenu {
    position: static !important;
    inset: auto !important;
    display: none !important;
    visibility: visible !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 2px 0 7px 12px !important;
    padding: 3px 0 3px 9px !important;
    border: 0 !important;
    border-left: 2px solid rgba(212,175,55,.42) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    z-index: auto !important;
}
.shop-toolbar .shop-category-menu__item:hover > .shop-category-menu__submenu,
.shop-toolbar .shop-category-menu__item:focus-within > .shop-category-menu__submenu,
.shop-toolbar .shop-category-menu__item.is-mobile-open > .shop-category-menu__submenu {
    display: block !important;
}
.shop-toolbar .shop-category-menu__item {
    position: static !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
}
.shop-toolbar .shop-category-menu__link {
    display: flex !important;
    width: 100% !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 10px 12px !important;
    border-radius: 9px !important;
    color: #24211a !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}
.shop-toolbar .shop-category-menu__root > .shop-category-menu__item > .shop-category-menu__link {
    font-weight: 800 !important;
}
.shop-toolbar .shop-category-menu__link:hover,
.shop-toolbar .shop-category-menu__item:focus-within > .shop-category-menu__link,
.shop-toolbar .shop-category-menu__item.is-active > .shop-category-menu__link,
.shop-toolbar .shop-category-menu__item.is-mobile-open > .shop-category-menu__link {
    background: #fbf1d5 !important;
    color: #8c6800 !important;
}
.shop-toolbar .shop-category-menu__arrow {
    flex: 0 0 auto !important;
    transform: rotate(90deg);
    transition: transform .15s ease;
}
.shop-toolbar .shop-category-menu__item:hover > .shop-category-menu__link .shop-category-menu__arrow,
.shop-toolbar .shop-category-menu__item.is-mobile-open > .shop-category-menu__link .shop-category-menu__arrow {
    transform: rotate(-90deg);
}
.shop-toolbar .shop-category-menu__trigger {
    width: 100% !important;
    min-height: 54px !important;
    box-sizing: border-box !important;
}
@media (max-width: 520px) {
    .shop-toolbar .shop-category-menu__root {
        position: absolute !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: calc(100vw - 48px) !important;
        max-height: 65vh !important;
    }
    .shop-toolbar .shop-category-menu__submenu {
        position: static !important;
        margin-left: 8px !important;
    }
}


/* ========================================================================
   TBH INDIA — CATEGORY EXPLORER MEGA MENU (CURRENT IMPLEMENTATION)
   Single premium panel: main categories on the left, subcategories in
   multiple columns on the right. No cascading floating panels/overlap.
======================================================================== */
.shop-toolbar {
    position: relative !important;
    z-index: 1000 !important;
    overflow: visible !important;
    isolation: isolate;
}
.shop-toolbar-section,
.shop-toolbar-section .customer-container {
    overflow: visible !important;
}
.shop-toolbar .shop-category-menu-wrap {
    position: static !important;
    display: grid !important;
    min-width: 0 !important;
    align-self: end !important;
    overflow: visible !important;
    z-index: 500 !important;
}
.shop-toolbar .shop-category-menu {
    position: static !important;
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
    z-index: 501 !important;
}
.shop-toolbar .shop-category-menu__trigger {
    position: relative !important;
    width: 100% !important;
    min-height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    box-sizing: border-box !important;
    border: 1px solid #d9d0be !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: #24211a !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    cursor: pointer !important;
}
.shop-toolbar .shop-category-menu__trigger:hover,
.shop-toolbar .shop-category-menu:hover .shop-category-menu__trigger,
.shop-toolbar .shop-category-menu.is-open .shop-category-menu__trigger,
.shop-toolbar .shop-category-menu:focus-within .shop-category-menu__trigger {
    border-color: rgba(190,148,24,.75) !important;
    box-shadow: 0 0 0 3px rgba(212,175,55,.10) !important;
}
.shop-category-mega {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    max-height: min(72vh, 640px) !important;
    display: none !important;
    grid-template-columns: minmax(205px, 25%) minmax(0, 1fr) !important;
    overflow: hidden !important;
    border: 1px solid rgba(166,124,0,.20) !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 24px 60px rgba(25,21,12,.18) !important;
    z-index: 99999 !important;
    box-sizing: border-box !important;
}
.shop-category-menu:hover .shop-category-mega,
.shop-category-menu:focus-within .shop-category-mega,
.shop-category-menu.is-open .shop-category-mega {
    display: grid !important;
}
.shop-category-mega__sidebar {
    min-width: 0 !important;
    padding: 12px !important;
    background: linear-gradient(180deg, #fffdf7 0%, #fbf5e6 100%) !important;
    border-right: 1px solid #eee4cd !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
}
.shop-category-mega__all,
.shop-category-mega__main-link {
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    color: #28251e !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    overflow-wrap: anywhere !important;
    transition: background .15s ease, color .15s ease !important;
}
.shop-category-mega__all {
    margin-bottom: 8px !important;
    border-bottom: 1px solid #eadfbe !important;
    border-radius: 8px !important;
    color: #8b6800 !important;
    font-weight: 850 !important;
}
.shop-category-mega__main-link:hover,
.shop-category-mega__main-link:focus-visible,
.shop-category-mega__main-link.is-active {
    background: #f5e7b9 !important;
    color: #805f00 !important;
    outline: none !important;
}
.shop-category-mega__main-arrow {
    flex: 0 0 auto !important;
    color: #a47c0b !important;
    font-size: 22px !important;
    line-height: 1 !important;
}
.shop-category-mega__content {
    min-width: 0 !important;
    overflow: auto !important;
    padding: 22px 24px 26px !important;
    background: #fff !important;
    overscroll-behavior: contain;
}
.shop-category-mega__panel[hidden] {
    display: none !important;
}
.shop-category-mega__panel {
    min-width: 0 !important;
}
.shop-category-mega__panel-heading {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 20px !important;
    margin: 0 0 20px !important;
    padding: 0 0 15px !important;
    border-bottom: 1px solid #eee7d7 !important;
}
.shop-category-mega__eyebrow {
    display: block !important;
    margin-bottom: 5px !important;
    color: #a47c0b !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: .18em !important;
}
.shop-category-mega__panel-heading h3 {
    margin: 0 !important;
    color: #171612 !important;
    font-size: clamp(20px, 2vw, 27px) !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
}
.shop-category-mega__view-all {
    flex: 0 0 auto !important;
    color: #8b6800 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}
.shop-category-mega__view-all:hover {
    text-decoration: underline !important;
}
.shop-mega-columns {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: start !important;
    gap: 24px 22px !important;
}
.shop-mega-column {
    min-width: 0 !important;
    padding: 0 0 8px !important;
}
.shop-mega-column__title {
    display: inline-block !important;
    margin: 0 0 9px !important;
    color: #a47c0b !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
}
.shop-mega-column__title:hover {
    color: #6f5200 !important;
    text-decoration: underline !important;
}
.shop-mega-links {
    display: block !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.shop-mega-links__item {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.shop-mega-links__link {
    display: block !important;
    padding: 4px 0 !important;
    color: #4c4942 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    overflow-wrap: anywhere !important;
}
.shop-mega-links__link:hover,
.shop-mega-links__item.is-active > .shop-mega-links__link {
    color: #8b6800 !important;
    text-decoration: underline !important;
}
.shop-mega-links .shop-mega-links {
    margin: 1px 0 7px 9px !important;
    padding-left: 9px !important;
    border-left: 1px solid #eee4cd !important;
}
.shop-mega-links--depth-1 > .shop-mega-links__item > .shop-mega-links__link,
.shop-mega-links--depth-2 > .shop-mega-links__item > .shop-mega-links__link {
    font-size: 11px !important;
}
.shop-mega-empty {
    padding: 18px !important;
    border: 1px dashed #e8dcc0 !important;
    border-radius: 12px !important;
    color: #777064 !important;
    font-size: 13px !important;
}

@media (min-width: 861px) {
    .shop-category-menu-wrap { position: static !important; }
    .shop-category-menu:hover .shop-category-mega,
    .shop-category-menu:focus-within .shop-category-mega,
    .shop-category-menu.is-open .shop-category-mega { display: grid !important; }
}
@media (max-width: 1100px) {
    .shop-category-mega { grid-template-columns: minmax(180px, 29%) minmax(0, 1fr) !important; }
    .shop-category-mega__content { padding: 18px !important; }
    .shop-mega-columns { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 20px 16px !important; }
}
@media (max-width: 860px) {
    .shop-toolbar { position: relative !important; }
    .shop-category-mega {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: 72vh !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto minmax(0, 1fr) !important;
        overflow: hidden !important;
    }
    .shop-category-mega__sidebar {
        display: flex !important;
        gap: 6px !important;
        padding: 10px !important;
        border-right: 0 !important;
        border-bottom: 1px solid #eee4cd !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }
    .shop-category-mega__all,
    .shop-category-mega__main-link {
        flex: 0 0 auto !important;
        min-height: 38px !important;
        white-space: nowrap !important;
    }
    .shop-category-mega__all { margin: 0 !important; border-bottom: 0 !important; }
    .shop-category-mega__content { max-height: 52vh !important; padding: 16px !important; overflow-y: auto !important; }
    .shop-category-mega__panel-heading { margin-bottom: 15px !important; }
}
@media (max-width: 520px) {
    .shop-mega-columns { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 17px 12px !important; }
    .shop-category-mega__content { padding: 13px !important; }
    .shop-category-mega__panel-heading h3 { font-size: 20px !important; }
    .shop-category-mega__view-all { font-size: 11px !important; }
    .shop-mega-column__title { font-size: 12px !important; }
    .shop-mega-links__link { font-size: 11px !important; }
}

/* FINAL CATEGORY EXPLORER LAYOUT GUARD — always keep the mega panel out of grid flow. */
.shop-toolbar {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 300px) minmax(170px, 210px) auto !important;
    align-items: end !important;
    overflow: visible !important;
}
.shop-toolbar-section,
.shop-toolbar-section .customer-container {
    overflow: visible !important;
}
.shop-toolbar .shop-search,
.shop-toolbar .shop-category-menu-wrap,
.shop-toolbar .shop-control--sort {
    align-self: end !important;
    min-width: 0 !important;
}
.shop-toolbar .shop-search {
    grid-column: auto !important;
}
.shop-toolbar .shop-category-menu-wrap,
.shop-toolbar .shop-category-menu {
    position: static !important;
    overflow: visible !important;
}
.shop-toolbar .shop-category-menu-wrap {
    display: grid !important;
}
.shop-category-mega {
    position: absolute !important;
    inset-inline: 0 !important;
    top: calc(100% + 12px) !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: min(68vh, 610px) !important;
    min-height: 340px !important;
    max-height: 610px !important;
    display: none !important;
    grid-template-columns: minmax(215px, 25%) minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border: 1px solid rgba(166,124,0,.24) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 60px rgba(25,21,12,.20) !important;
    z-index: 99999 !important;
}
.shop-toolbar .shop-category-menu:hover > .shop-category-mega,
.shop-toolbar .shop-category-menu:focus-within > .shop-category-mega,
.shop-toolbar .shop-category-menu.is-open > .shop-category-mega {
    display: grid !important;
}
.shop-category-mega__sidebar {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
.shop-category-mega__content {
    display: block !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: auto !important;
}
.shop-category-mega__panel[hidden] {
    display: none !important;
}
.shop-mega-columns {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: start !important;
    min-width: 0 !important;
}
@media (max-width: 1180px) {
    .shop-toolbar {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 290px) minmax(160px, 200px) auto !important;
    }
    .shop-toolbar .shop-search,
    .shop-toolbar .shop-category-menu-wrap,
    .shop-toolbar .shop-control--sort {
        grid-column: auto !important;
    }
    .shop-mega-columns {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 860px) {
    .shop-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .shop-toolbar .shop-search {
        grid-column: 1 / -1 !important;
    }
    .shop-toolbar .shop-category-menu-wrap {
        grid-column: 1 !important;
    }
    .shop-toolbar .shop-control--sort {
        grid-column: 2 !important;
    }
    .shop-category-mega {
        height: min(72vh, 600px) !important;
        max-height: 600px !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto minmax(0, 1fr) !important;
    }
    .shop-category-mega__sidebar {
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }
    .shop-category-mega__main-link,
    .shop-category-mega__all {
        width: auto !important;
        white-space: nowrap !important;
    }
    .shop-mega-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 520px) {
    .shop-toolbar {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .shop-toolbar .shop-search,
    .shop-toolbar .shop-category-menu-wrap,
    .shop-toolbar .shop-control--sort,
    .shop-toolbar .shop-clear {
        grid-column: 1 !important;
        width: 100% !important;
    }
}


/* ==========================================================================
   TBH INDIA — CATEGORY EXPLORER REFINEMENT (MEN/WOMEN + FULL ROOT LIST)
   Final override: compact main-category rail, no vertical scrollbar.
   ========================================================================== */
@media (min-width: 861px) {
    .shop-category-mega {
        height: min(85vh, calc(100vh - 245px)) !important;
        min-height: 470px !important;
        max-height: calc(100vh - 245px) !important;
        grid-template-columns: minmax(245px, 25%) minmax(0, 1fr) !important;
    }

    .shop-category-mega__sidebar {
        min-height: 0 !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        padding: 7px 8px !important;
        gap: 0 !important;
    }

    .shop-category-mega__sidebar::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .shop-category-mega__all,
    .shop-category-mega__main-link {
        box-sizing: border-box !important;
        min-height: 21px !important;
        height: 21px !important;
        margin: 0 0 1px !important;
        padding: 2px 9px !important;
        border-radius: 6px !important;
        gap: 6px !important;
        font-size: 11.5px !important;
        line-height: 1.05 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .shop-category-mega__all {
        height: 25px !important;
        min-height: 25px !important;
        margin-bottom: 3px !important;
        padding-inline: 9px !important;
        border-bottom: 1px solid #eadfbe !important;
    }

    .shop-category-mega__main-link > span:first-child {
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .shop-category-mega__main-arrow {
        font-size: 15px !important;
        line-height: 1 !important;
    }
}

@media (min-width: 861px) and (max-height: 760px) {
    .shop-category-mega {
        height: min(84vh, calc(100vh - 190px)) !important;
        min-height: 0 !important;
        max-height: calc(100vh - 190px) !important;
    }
    .shop-category-mega__sidebar { padding-block: 5px !important; }
    .shop-category-mega__all,
    .shop-category-mega__main-link {
        min-height: 19px !important;
        height: 19px !important;
        padding-block: 1px !important;
        font-size: 11px !important;
    }
    .shop-category-mega__all { min-height: 23px !important; height: 23px !important; }
}
