/* ==========================================================================
   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;
    }
}