/* Pragati "listing" page group: collection pages (pages/product-listing.php), all categories (pages/categories.php)
   and brands (pages/brands.php). Meesho-like layout in the Pragati palette, built on pragati-shop.css (page kit).
   Every selector is scoped under .pg-plp / .pg-cats / .pg-brandpage because this file loads on every page. */

/* ======================================================================
   Collection page
   ====================================================================== */
/* body is a 100vh flex column in the stock theme; the kit's .pg-page min-height would let the page shrink under its content */
.pg-plp, .pg-cats, .pg-brandpage { flex-shrink: 0; }
.pg-plp { padding-top: 22px; }
.pg-plp .pg-vh { position: absolute !important; width: 1px !important; height: 1px !important; margin: 0 !important; padding: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0; pointer-events: none; }

/* ---------- title row ---------- */
.pg-plp .pg-plp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 20px; margin-bottom: 18px; }
.pg-plp .pg-plp-heading { min-width: 0; }
.pg-plp .pg-plp-title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--pg-espresso); overflow-wrap: anywhere; }
.pg-plp .pg-plp-sub { margin: 4px 0 0; font-size: 15px; color: var(--pg-text); }
.pg-plp .pg-plp-tools { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.pg-plp .pg-plp-perpage { display: flex; align-items: center; gap: 8px; }
.pg-plp .pg-plp-tools-label { font-size: 14px; color: var(--pg-muted); }
.pg-plp .pg-plp-perpage-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; font-size: 14px; font-weight: 700; color: var(--pg-text) !important; text-decoration: none; background: #fff; border: 1px solid var(--pg-line); border-radius: 6px; }
.pg-plp .pg-plp-perpage-btn:hover, .pg-plp .pg-plp-perpage-btn[aria-expanded="true"] { border-color: var(--pg-mocha); }
.pg-plp .pg-plp-perpage-btn::after { position: static; display: inline-block; width: auto; height: auto; margin: 0; font-family: "Unicons"; font-size: 17px; font-weight: 400 !important; line-height: 1; vertical-align: middle; color: var(--pg-mocha); content: "\e92d"; border: 0; }
.pg-plp #per_page_products { min-width: 84px; padding: 6px; background: #fff; border: 1px solid var(--pg-line); border-radius: 8px; box-shadow: var(--pg-shadow); }
.pg-plp #per_page_products .dropdown-item { padding: 7px 12px; font-size: 14px; color: var(--pg-text); border-radius: 6px; }
.pg-plp #per_page_products .dropdown-item:hover, .pg-plp #per_page_products .dropdown-item:focus { color: var(--pg-mocha); background: var(--pg-cream); }
.pg-plp .pg-plp-views { display: flex; gap: 4px; padding-left: 14px; border-left: 1px solid var(--pg-line); }
.pg-plp .pg-plp-view { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; font-size: 19px; color: var(--pg-muted) !important; text-decoration: none; border-radius: 6px; }
.pg-plp .pg-plp-view:hover { color: var(--pg-mocha) !important; background: var(--pg-cream); }
.pg-plp .pg-plp-view.active { color: var(--pg-mocha) !important; background: var(--pg-gold-soft); }

/* ---------- sub-category rail (same arch tiles as the home page, a bit smaller) ---------- */
.pg-plp .pg-plp-subcats { margin: -4px 0 18px; }
.pg-plp .pg-plp-subcats .pg-rail { gap: 16px; }
.pg-plp .pg-plp-subcats .pg-rail-item { flex-basis: 120px; }
.pg-plp .pg-plp-subcats .pg-rail-item img { width: 120px; height: 120px; padding: 8px; border-radius: 60px 60px 10px 10px; }
.pg-plp .pg-plp-subcats .pg-rail-label { margin-top: 8px; font-size: 14px; }
.pg-plp .pg-plp-subcats .pg-rail-btn { top: 64px; }

/* ---------- two columns: sort + filters | products ---------- */
.pg-plp .pg-plp-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 24px; }
.pg-plp .pg-plp-layout.is-full { grid-template-columns: minmax(0, 1fr); } /* nothing to sort or filter (e.g. a search without results) */
.pg-plp .pg-plp-side { min-width: 0; }
.pg-plp .pg-plp-main { min-width: 0; }

/* sort box */
.pg-plp .pg-plp-sortbox { position: relative; display: flex; align-items: center; height: 48px; margin-bottom: 16px; padding: 0 14px; background: #fff; border: 1px solid var(--pg-line); border-radius: var(--pg-radius-sm); transition: border-color .15s, box-shadow .15s; }
.pg-plp .pg-plp-sortbox:hover { border-color: #DCCFBD; }
.pg-plp .pg-plp-sortbox:focus-within { border-color: var(--pg-gold); box-shadow: 0 0 0 3px rgba(212, 160, 23, .22); }
.pg-plp .pg-plp-sortbox label { flex: 0 0 auto; margin: 0; font-size: 15px; font-weight: 400; color: var(--pg-muted); white-space: nowrap; }
.pg-plp .pg-plp-select { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0 30px 0 6px; font-size: 15px; font-weight: 700; color: var(--pg-text); text-overflow: ellipsis; cursor: pointer; background: transparent; border: 0; outline: 0; box-shadow: none; -webkit-appearance: none; -moz-appearance: none; appearance: none; }
.pg-plp .pg-plp-select option { font-weight: 400; color: var(--pg-text); background: #fff; }
.pg-plp .pg-plp-sortbox > i { position: absolute; top: 50%; right: 12px; font-size: 22px; color: var(--pg-mocha); pointer-events: none; transform: translateY(-50%); }

/* ---------- filters card (a sidebar on desktop, a bottom sheet on phones) ---------- */
.pg-plp .pg-plp-filters { --bs-offcanvas-bg: #fff; --bs-offcanvas-color: var(--pg-text); color: var(--pg-text); }
.pg-plp .pg-fcard-head { padding: 18px 0 14px; border-bottom: 1px solid var(--pg-line); }
.pg-plp .pg-fcard-title { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pg-espresso); }
.pg-plp .pg-fcard-sub { margin: 2px 0 0; font-size: 12px; color: var(--pg-muted); }

/* sections: ours (.pg-fsec) and the ones custom.js print_filters() builds (.accordion-item) look the same */
.pg-plp .pg-fsec, .pg-plp #product-filters-desktop .accordion-item { margin: 0; background: none; border: 0; border-bottom: 1px solid var(--pg-line); border-radius: 0; box-shadow: none; }
.pg-plp #product-filters-desktop .accordion-wrapper { margin: 0; }
.pg-plp #product-filters-desktop .card-header { margin: 0; padding: 0; background: none; border: 0; }
.pg-plp .pg-fsec-head { margin: 0; }
.pg-plp .pg-fsec-btn,
.pg-plp #product-filters-desktop .accordion-button { position: relative; display: flex; align-items: center; width: 100%; margin: 0; padding: 16px 30px 16px 0; font-size: 17px !important; font-weight: 600; line-height: 1.3; color: var(--pg-text) !important; text-align: left; text-transform: none; letter-spacing: 0; cursor: pointer; background: none !important; border: 0; border-radius: 0; box-shadow: none !important; }
.pg-plp #product-filters-desktop .accordion-button::before { content: none !important; display: none !important; }
.pg-plp .pg-fsec-btn::after,
.pg-plp #product-filters-desktop .accordion-button::after { content: ""; position: absolute; top: 50%; right: 6px; width: 9px; height: 9px; margin: 0; background: none; border: solid var(--pg-mocha); border-width: 0 2px 2px 0; transform: translateY(-25%) rotate(-135deg); transition: transform .2s; }
.pg-plp .pg-fsec-btn.collapsed::after,
.pg-plp #product-filters-desktop .accordion-button.collapsed::after { transform: translateY(-75%) rotate(45deg); }
.pg-plp .pg-fsec-btn:focus-visible,
.pg-plp #product-filters-desktop .accordion-button:focus-visible { outline: 2px solid var(--pg-gold); outline-offset: 2px; }

/* category rows (radio look) */
.pg-plp .pg-fopts { display: flex; flex-direction: column; gap: 2px; max-height: 330px; padding: 0 0 14px; overflow-y: auto; scrollbar-width: thin; }
.pg-plp .pg-fopt { position: relative; display: block; margin: 0; padding: 8px 8px 8px 34px; font-size: 15px; font-weight: 400; line-height: 1.35; color: var(--pg-text) !important; text-decoration: none; cursor: pointer; border-radius: 6px; }
.pg-plp .pg-fopt::before { content: ""; position: absolute; top: 50%; left: 6px; width: 18px; height: 18px; margin-top: -9px; background: #fff; border: 2px solid #B8A792; border-radius: 50%; }
.pg-plp .pg-fopt:hover { background: var(--pg-cream); }
.pg-plp .pg-fopt.is-active, .pg-plp input:checked + .pg-fopt { font-weight: 600; color: var(--pg-mocha) !important; }
.pg-plp .pg-fopt.is-active::before, .pg-plp input:checked + .pg-fopt::before { background: var(--pg-mocha); border-color: var(--pg-mocha); box-shadow: inset 0 0 0 3px #fff; }
.pg-plp input:focus-visible + .pg-fopt { outline: 2px solid var(--pg-gold); outline-offset: 1px; }

/* chips: ours use the kit's .pg-chip; the JS-built attribute values (Size...) are restyled to match */
.pg-plp .pg-fchips,
.pg-plp #product-filters-desktop .card-body-custom { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; padding: 2px 0 18px; }
.pg-plp .pg-fchips .pg-chip { margin: 0; min-height: 36px; }
.pg-plp .pg-fchips .pg-chip .fa-star { font-size: 12px; color: var(--pg-gold); }
.pg-plp .pg-fchips input:checked + .pg-chip .fa-star { color: var(--pg-gold-light); }
.pg-plp input:focus-visible + .pg-chip { box-shadow: 0 0 0 3px rgba(212, 160, 23, .45); }
.pg-plp .pg-brand-chip img { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; }
.pg-plp #product-filters-desktop .input-container { position: relative; display: block !important; margin: 0; }
.pg-plp #product-filters-desktop .toggle-input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.pg-plp #product-filters-desktop .toggle { display: none !important; }
.pg-plp #product-filters-desktop .text-label { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 36px; margin: 0; padding: 0 16px; font-size: 14px; font-weight: 500; line-height: 1.2; color: var(--pg-text); white-space: nowrap; cursor: pointer; user-select: none; background: #fff; border: 1px solid #DCCFBD; border-radius: 999px; transition: border-color .15s, background-color .15s, color .15s; }
.pg-plp #product-filters-desktop .text-label:hover { color: var(--pg-mocha); border-color: var(--pg-mocha); }
.pg-plp #product-filters-desktop .toggle-input:checked ~ .text-label { color: #fff; background: var(--pg-mocha); border-color: var(--pg-mocha); }
.pg-plp #product-filters-desktop .toggle-input:focus-visible ~ .text-label { box-shadow: 0 0 0 3px rgba(212, 160, 23, .45); }

/* Clear / Apply */
.pg-plp .pg-plp-filters-foot { display: flex; gap: 12px; }
.pg-plp .pg-plp-filters-foot .pg-btn { flex: 1 1 0; min-height: 44px; }

@media (min-width: 992px) {
    .pg-plp .pg-plp-filters { background-color: #fff !important; border: 1px solid var(--pg-line); border-radius: var(--pg-radius); }
    .pg-plp .pg-plp-filters .offcanvas-body { display: block; padding: 0 20px; overflow: visible; }
    .pg-plp .pg-plp-filters-foot { padding: 16px 20px 20px; }
    .pg-plp .pg-plp-bar, .pg-plp .pg-plp-sheet { display: none !important; }
}

/* ---------- product grid ---------- */
.pg-plp .pg-plp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; }
.pg-plp .pg-plp-grid .pg-card { border-color: var(--pg-line); border-radius: 8px; }
/* The shop asked for one card size across the whole site, so the grid keeps the shared height
   from pragati-theme.css rather than its own ratio. Leaving a ratio here would do nothing
   anyway, because an explicit height wins over aspect-ratio. */
.pg-plp .pg-plp-grid .pg-card-body { padding: 10px 12px 14px; }
.pg-plp .pg-plp-grid .pg-card-name { font-size: 15px; }
.pg-plp .pg-plp-grid .pg-card-price strong { font-size: 20px; }

/* list view (?type=list): the same tiles laid out as rows */
.pg-plp .pg-plp-grid.is-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.pg-plp .is-list .pg-card-link { flex-direction: row; }
.pg-plp .is-list .pg-card-img { flex: 0 0 210px; width: 210px; aspect-ratio: auto; min-height: 230px; }
.pg-plp .is-list .pg-card-body { align-self: center; padding: 18px 56px 18px 22px; }
.pg-plp .is-list .pg-card-name { font-size: 17px; white-space: normal; }

/* ---------- pagination (also on the brands page) ---------- */
.pg-plp .pg-plp-pages, .pg-brandpage .pg-plp-pages { display: flex; justify-content: center; margin-top: 30px; }
.pg-plp .pg-plp-pages .pagination, .pg-brandpage .pg-plp-pages .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pg-plp .pg-plp-pages .page-item, .pg-brandpage .pg-plp-pages .page-item { margin: 0; }
.pg-plp .pg-plp-pages .page-link, .pg-brandpage .pg-plp-pages .page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; margin: 0; padding: 0 12px; font-size: 15px; font-weight: 600; color: var(--pg-mocha); background: #fff; border: 1px solid var(--pg-line); border-radius: 8px !important; box-shadow: none; }
.pg-plp .pg-plp-pages a.page-link:hover, .pg-brandpage .pg-plp-pages a.page-link:hover { color: var(--pg-mocha); background: var(--pg-cream); border-color: var(--pg-mocha); }
.pg-plp .pg-plp-pages .page-item.active .page-link, .pg-brandpage .pg-plp-pages .page-item.active .page-link { color: #fff; background: var(--pg-mocha); border-color: var(--pg-mocha); }

/* ---------- empty state, loading ---------- */
.pg-plp .pg-plp-empty { max-width: none; background: #fff; border: 1px solid var(--pg-line); border-radius: var(--pg-radius); }
.pg-plp.is-loading .pg-plp-main { opacity: .45; pointer-events: none; transition: opacity .2s; }

/* ---------- phone bar + sheets ---------- */
.pg-plp .pg-plp-bar { display: none; }
.pg-plp .pg-plp-sheet-head { padding: 16px 16px 12px; border-bottom: 1px solid var(--pg-line); }
.pg-plp .pg-plp-sheet-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--pg-espresso); }
.pg-plp .pg-plp-x { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; font-size: 22px; color: var(--pg-text); background: var(--pg-cream); border: 0; border-radius: 50%; }
.pg-plp .pg-plp-x:hover { color: var(--pg-mocha); background: var(--pg-gold-soft); }
.pg-plp .pg-plp-sheet { --bs-offcanvas-height: auto; --bs-offcanvas-bg: #fff; --bs-offcanvas-color: var(--pg-text); max-height: 82vh; color: var(--pg-text); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgba(43, 33, 24, .2); }
.pg-plp .pg-plp-sheet-body { padding: 4px 16px calc(14px + env(safe-area-inset-bottom)); }
.pg-plp .pg-sort-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 2px; font-size: 16px; color: var(--pg-text) !important; text-decoration: none; border-bottom: 1px solid var(--pg-line); }
.pg-plp .pg-sort-opt:last-child { border-bottom: 0; }
.pg-plp .pg-sort-radio { flex: 0 0 auto; width: 20px; height: 20px; background: #fff; border: 2px solid #B8A792; border-radius: 50%; }
.pg-plp .pg-sort-opt.is-active { font-weight: 700; color: var(--pg-mocha) !important; }
.pg-plp .pg-sort-opt.is-active .pg-sort-radio { background: var(--pg-mocha); border-color: var(--pg-mocha); box-shadow: inset 0 0 0 3px #fff; }
/* the stock back-to-top / chat buttons (z-index 99999) would cover the sheet buttons */
body:has(.pg-plp .pg-plp-sheet.show, .pg-plp .pg-plp-filters.show) .fixed-icon { display: none; }

/* ---------- tablets and phones ---------- */
@media (max-width: 1199.98px) {
    .pg-plp .pg-plp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .pg-plp { padding-top: 14px; }
    .pg-plp .pg-plp-head { margin-bottom: 12px; }
    .pg-plp .pg-plp-tools, .pg-plp .pg-plp-sortbox { display: none; }
    .pg-plp .pg-plp-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }

    .pg-plp .pg-plp-bar { position: sticky; top: 0; z-index: 1020; display: flex; margin: 0 -15px 14px; background: #fff; border-top: 1px solid var(--pg-line); border-bottom: 1px solid var(--pg-line); box-shadow: 0 3px 8px rgba(43, 33, 24, .06); }
    .pg-plp .pg-plp-bar-btn { display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 4px; min-width: 0; height: 48px; padding: 0 4px; font-size: 14.5px; font-weight: 500; color: var(--pg-text); background: none; border: 0; }
    .pg-plp .pg-plp-bar-btn + .pg-plp-bar-btn { border-left: 1px solid var(--pg-line); }
    .pg-plp .pg-plp-bar-btn i { flex: 0 0 auto; font-size: 17px; color: var(--pg-mocha); }
    .pg-plp .pg-plp-bar-btn .uil-angle-down { margin-right: -2px; font-size: 18px; }
    .pg-plp .pg-plp-bar-btn span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .pg-plp .pg-plp-bar-btn .pg-plp-bar-count { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; font-size: 12px; font-weight: 700; color: var(--pg-espresso); background: var(--pg-gold); border-radius: 10px; }
    .pg-plp .pg-plp-bar-btn:active { background: var(--pg-cream); }

    .pg-plp .pg-plp-filters { --bs-offcanvas-height: min(88vh, 760px); --bs-offcanvas-zindex: 1055; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgba(43, 33, 24, .2); }
    .pg-plp .pg-plp-filters .offcanvas-body { padding: 0 16px; overflow-y: auto; overscroll-behavior: contain; }
    .pg-plp .pg-fcard-head { display: none; }
    .pg-plp .pg-plp-filters-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--pg-line); box-shadow: 0 -6px 16px rgba(43, 33, 24, .06); }
    .pg-plp .pg-plp-sheet { --bs-offcanvas-zindex: 1055; }
    /* opened from the bar's Category / Size button: only that filter, a short sheet titled with its name (listing.js) */
    .pg-plp .pg-plp-filters.is-single { --bs-offcanvas-height: auto; max-height: 88vh; }
    .pg-plp .pg-plp-filters.is-single .pg-sec-off { display: none !important; }
    .pg-plp .pg-plp-filters.is-single .pg-fsec, .pg-plp .pg-plp-filters.is-single #product-filters-desktop .accordion-item { border-bottom: 0; }
    .pg-plp .pg-plp-filters.is-single .pg-fsec-head, .pg-plp .pg-plp-filters.is-single #product-filters-desktop .card-header { display: none; }
    .pg-plp .pg-plp-filters.is-single .pg-fsec-body, .pg-plp .pg-plp-filters.is-single #product-filters-desktop .card-body-custom { padding-top: 16px; padding-bottom: 20px; }
    .pg-plp .pg-plp-filters.is-single .pg-fopts { max-height: none; overflow: visible; }

    .pg-plp .pg-plp-subcats .pg-rail { gap: 12px; }
    .pg-plp .pg-plp-subcats .pg-rail-item { flex-basis: 84px; }
    .pg-plp .pg-plp-subcats .pg-rail-item img { width: 84px; height: 84px; padding: 6px; border-radius: 42px 42px 8px 8px; }
    .pg-plp .pg-plp-subcats .pg-rail-label { font-size: 12.5px; }
    .pg-plp .pg-plp-subcats .pg-rail-btn { top: 44px; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    /* tablets: the container has side margins, so the bar is a rounded toolbar rather than edge-to-edge */
    .pg-plp .pg-plp-bar { margin: 0 0 16px; border: 1px solid var(--pg-line); border-radius: var(--pg-radius-sm); }
}
@media (max-width: 767.98px) {
    .pg-plp .pg-plp-title { font-size: 19px; }
    .pg-plp .pg-plp-sub { font-size: 13px; }
    /* edge-to-edge 2-column grid with hairlines, like Meesho on phones */
    .pg-plp .pg-plp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: -14px -15px 0; background: #fff; }
    .pg-plp .pg-plp-grid .pg-card { border-width: 0 1px 1px 0; border-radius: 0; }
    .pg-plp .pg-plp-grid .pg-card:nth-child(2n) { border-right: 0; }
    .pg-plp .pg-plp-grid .pg-card:hover { transform: none; box-shadow: none; }
    .pg-plp .pg-plp-grid .pg-card-body { padding: 8px 10px 12px; }
    .pg-plp .pg-plp-grid .pg-card-name { font-size: 13px; }
    .pg-plp .pg-plp-grid .pg-card-price strong { font-size: 16px; }
    .pg-plp .pg-plp-grid .pg-card-price s, .pg-plp .pg-plp-grid .pg-card-off { font-size: 12px; }
    .pg-plp .pg-plp-grid .pg-card-fav { top: 8px; right: 8px; width: 30px; height: 30px; font-size: 15px; }
    .pg-plp .pg-plp-grid .pg-card-badge { top: 8px; left: 8px; font-size: 11px; }
    .pg-plp .pg-plp-grid.is-list { grid-template-columns: minmax(0, 1fr); }
    .pg-plp .is-list .pg-card { border-right: 0; }
    .pg-plp .is-list .pg-card-img { flex-basis: 130px; width: 130px; min-height: 160px; }
    .pg-plp .is-list .pg-card-body { padding: 12px 44px 12px 14px; }
    .pg-plp .is-list .pg-card-name { font-size: 14px; }
    .pg-plp .pg-plp-pages { margin-top: 22px; }
    .pg-plp .pg-plp-empty { margin-top: 0; padding: 36px 16px; }
}
@media (max-width: 399.98px) {
    /* small phones (360px): "Category" must not be cut to "Catego..." in the four-button bar */
    .pg-plp .pg-plp-bar-btn { gap: 3px; padding: 0 2px; font-size: 13.5px; }
    .pg-plp .pg-plp-bar-btn i { font-size: 16px; }
}
@media (max-width: 339.98px) {
    .pg-plp .pg-plp-bar-btn .uil-angle-down { display: none; }
}

/* ======================================================================
   All categories (pages/categories.php)
   ====================================================================== */
.pg-cats .pg-cats-nav { position: sticky; top: var(--pg-cats-top, 132px); z-index: 20; display: flex; gap: 8px; margin: 0 0 16px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; background: var(--pg-bg); -webkit-overflow-scrolling: touch; }
.pg-cats .pg-cats-nav::-webkit-scrollbar { display: none; }
.pg-cats .pg-cats-nav a { flex: 0 0 auto; padding: 7px 14px; font-size: 14px; font-weight: 500; color: var(--pg-text) !important; text-decoration: none; white-space: nowrap; background: #fff; border: 1px solid var(--pg-line); border-radius: 999px; transition: border-color .15s, background-color .15s, color .15s; }
.pg-cats .pg-cats-nav a:hover { color: var(--pg-mocha) !important; border-color: var(--pg-mocha); }
.pg-cats .pg-cats-nav a.is-active { color: #fff !important; background: var(--pg-mocha); border-color: var(--pg-mocha); }
.pg-cats .pg-cats-dept { scroll-margin-top: calc(var(--pg-cats-top, 132px) + 70px); padding: 18px 20px 22px; background: #fff; border: 1px solid var(--pg-line); border-radius: var(--pg-radius); }
.pg-cats .pg-cats-dept + .pg-cats-dept { margin-top: 16px; }
.pg-cats .pg-cats-dept-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pg-cats .pg-cats-dept-name { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.pg-cats .pg-cats-dept-name img { flex: 0 0 auto; width: 52px; height: 52px; padding: 4px; object-fit: contain; background: var(--pg-gold-soft); border-radius: 26px 26px 8px 8px; }
.pg-cats .pg-cats-dept-name h2 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.25; color: var(--pg-espresso); }
.pg-cats .pg-cats-dept-name:hover h2 { color: var(--pg-mocha); }
.pg-cats .pg-cats-all { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 2px; font-size: 14px; }
.pg-cats .pg-cats-all i { font-size: 18px; }
.pg-cats .pg-cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 20px 14px; }
.pg-cats .pg-cats-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--pg-text) !important; text-align: center; text-decoration: none; }
.pg-cats .pg-cats-tile img { width: 112px; height: 112px; padding: 8px; object-fit: contain; background: var(--pg-gold-soft); border: 2px solid transparent; border-radius: 56px 56px 10px 10px; transition: transform .2s, border-color .2s; }
.pg-cats .pg-cats-tile span { display: -webkit-box; overflow: hidden; font-size: 14px; font-weight: 500; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pg-cats .pg-cats-tile:hover img { border-color: var(--pg-gold); transform: translateY(-3px); }
.pg-cats .pg-cats-tile:hover span { color: var(--pg-mocha); }
@media (max-width: 991.98px) {
    .pg-cats .pg-cats-nav { top: 0; margin: 0 -15px 14px; padding: 10px 15px; border-bottom: 1px solid var(--pg-line); }
    .pg-cats .pg-cats-dept { scroll-margin-top: 66px; padding: 14px 12px 18px; }
    .pg-cats .pg-cats-dept-head { margin-bottom: 14px; }
    .pg-cats .pg-cats-dept-name img { width: 44px; height: 44px; border-radius: 22px 22px 7px 7px; }
    .pg-cats .pg-cats-dept-name h2 { font-size: 17px; }
    .pg-cats .pg-cats-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 16px 8px; }
    .pg-cats .pg-cats-tile img { width: 84px; height: 84px; padding: 6px; border-radius: 42px 42px 8px 8px; }
    .pg-cats .pg-cats-tile span { font-size: 12.5px; }
}

/* ======================================================================
   Brands (pages/brands.php)
   ====================================================================== */
.pg-brandpage .pg-brandpage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.pg-brandpage .pg-brandpage-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 12px 14px; color: var(--pg-text) !important; text-decoration: none; background: #fff; border: 1px solid var(--pg-line); border-radius: var(--pg-radius); transition: border-color .2s, box-shadow .2s, transform .2s; }
.pg-brandpage .pg-brandpage-tile:hover { border-color: var(--pg-gold-light); box-shadow: var(--pg-shadow); transform: translateY(-2px); }
.pg-brandpage .pg-brandpage-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 90px; }
.pg-brandpage .pg-brandpage-logo img { max-width: 100%; max-height: 90px; object-fit: contain; }
.pg-brandpage .pg-brandpage-initial { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; font-size: 30px; font-weight: 700; color: var(--pg-mocha); background: var(--pg-gold-soft); border-radius: 50%; }
.pg-brandpage .pg-brandpage-name { font-size: 15px; font-weight: 600; line-height: 1.3; text-align: center; }
.pg-brandpage .pg-brandpage-tile:hover .pg-brandpage-name { color: var(--pg-mocha); }
.pg-brandpage .pg-brandpage-empty { max-width: none; background: #fff; border: 1px solid var(--pg-line); border-radius: var(--pg-radius); }
@media (max-width: 767.98px) {
    .pg-brandpage .pg-brandpage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pg-brandpage .pg-brandpage-tile { padding: 14px 10px 12px; }
    .pg-brandpage .pg-brandpage-logo { height: 70px; }
    .pg-brandpage .pg-brandpage-logo img { max-height: 70px; }
    .pg-brandpage .pg-brandpage-name { font-size: 14px; }
}

/* ---------- tap targets on phones ----------
   The filter-sheet rows and the sheet close buttons were 36-38px. */
@media (max-width: 991.98px) {
    .pg-plp .pg-fopt { min-height: 44px; }
    .pg-plp .pg-plp-x { width: 44px; height: 44px; }
    .pg-plp .pg-plp-grid .pg-card-fav { width: 40px; height: 40px; font-size: 16px; }
}
