/*
 * WooCommerce — Single Product & Shop
 * Matches United Signs site design system
 * @package KadenceChild
 *
 * Sections:
 *   1. SINGLE PRODUCT  (.usg-sp-*)
 *   2. SHOP / ARCHIVE  (.usg-shop-*)
 *   3. RESPONSIVE
 */

/* ════════════════════════════════════════════════════════════
   1. SINGLE PRODUCT
════════════════════════════════════════════════════════════ */

.usg-sp { background: #fff; }

/* ── Breadcrumb ─────────────────────────────────────────── */
.usg-sp-crumb {
    background: #f7f7f9;
    border-bottom: 1px solid #e0e0e8;
    padding: 11px 0;
}
.usg-sp-crumb .woocommerce-breadcrumb {
    max-width: 1240px; margin: 0 auto !important;
    padding: 0 clamp(20px,5vw,60px) !important;
    font-size: 12px !important; color: #8888a2 !important;
}
.usg-sp-crumb .woocommerce-breadcrumb a { color: #52526a; text-decoration: none; }
.usg-sp-crumb .woocommerce-breadcrumb a:hover { color: var(--global-palette1,#ed1c24); }

/* ── Two-col body ───────────────────────────────────────── */
.usg-sp-body {
    max-width: 1240px; margin: 0 auto;
    padding: clamp(36px,5vw,64px) clamp(20px,5vw,60px);
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: clamp(36px,5vw,72px);
    align-items: start;
}

/* ── Gallery ────────────────────────────────────────────── */
.usg-sp-gallery { position: relative; }
.usg-sp-gallery-info-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 10;
    width: 28px;
    height: 28px;
    background: #ed1c24;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    cursor: help;
    transition: background 0.2s ease;
}
.usg-sp-gallery-info-badge:hover {
    background: #c01019;
}
.usg-sp-gallery-tooltip {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #ed1c24;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    margin-bottom: 8px;
}
.usg-sp-gallery-info-badge:hover .usg-sp-gallery-tooltip {
    opacity: 1;
}
.usg-sp-gallery .woocommerce-product-gallery { position: sticky; top: 96px; }
.usg-sp-gallery .flex-viewport {
    border-radius: 12px; overflow: hidden; border: 1px solid #e8e8f0;
}
.usg-sp-gallery .woocommerce-product-gallery__image img { width: 100%; display: block; }
.usg-sp-gallery .woocommerce-product-gallery__wrapper {
    border-radius: 12px; overflow: hidden; border: 1px solid #e8e8f0;
}
.usg-sp-gallery .flex-control-thumbs {
    display: flex; gap: 8px; flex-wrap: wrap;
    padding: 0; margin: 12px 0 0; list-style: none;
}
.usg-sp-gallery .flex-control-thumbs li { flex: 0 0 auto; }
.usg-sp-gallery .flex-control-thumbs li img {
    width: 70px; height: 70px; object-fit: cover; display: block;
    border-radius: 8px; border: 2px solid #e0e0e8; cursor: pointer; opacity: .65;
    transition: opacity .2s, border-color .2s;
}
.usg-sp-gallery .flex-control-thumbs li img:hover,
.usg-sp-gallery .flex-control-thumbs li img.flex-active {
    opacity: 1; border-color: var(--global-palette1,#ed1c24);
}
.usg-sp-gallery .woocommerce-product-gallery__trigger { display: none; }

/* ── Summary ────────────────────────────────────────────── */

/* Category overline */
/* Category pills — multi-category safe */
.usg-sp-cats {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 12px;
}
.usg-sp-cat-pill {
    display: inline-block;
    font-family: Montserrat, sans-serif;
    font-size: 10px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase;
    color: #ed1c24;
    background: rgba(237,28,36,.08);
    border: 1px solid rgba(237,28,36,.2);
    border-radius: 100px;
    padding: 3px 10px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s, color .18s;
    line-height: 1.6;
}
.usg-sp-cat-pill:hover {
    background: #ed1c24;
    color: #fff;
}

/* Title */
.usg-sp-title {
    font-family: Montserrat, sans-serif;
    font-size: clamp(22px,3vw,34px); font-weight: 800;
    letter-spacing: -.025em; line-height: 1.2;
    color: #0d0d10; margin: 0 0 14px;
}

/* SKU pill */
.usg-sku-pill {
    display: inline-flex; align-items: center; gap: 7px;
    background: #f7f7f9; border: 1px solid #e0e0e8;
    border-radius: 100px; padding: 5px 14px;
    font-size: 12px; color: #52526a; margin-bottom: 16px;
}
.usg-sku-pill strong { font-weight: 700; color: #1a1a24; font-size: 12px; }

/* Price */
.usg-price-from {
    font-family: Montserrat, sans-serif;
    font-size: 11px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: #8888a2; margin: 0 0 4px;
}
.usg-sp-price {
    font-family: Montserrat, sans-serif;
    font-size: clamp(20px,2.5vw,28px); font-weight: 800; color: var(--global-palette1,#ed1c24);
    margin: 0 0 4px;
}
.usg-sp-price .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; color: inherit; }
.usg-price-note {
    font-size: 12px; color: #8888a2; margin: 0 0 18px;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.usg-price-note svg { width: 13px; height: 13px; color: var(--global-palette1,#ed1c24); flex-shrink: 0; }
.usg-price-note-pill {
    background: #ed1c24;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Divider */
.usg-sp-divider { border: none; border-top: 1px solid #f0f0f3; margin: 20px 0; }

/* Short description */
.usg-sp-short { font-size: 14px; line-height: 1.82; color: #52526a; margin-bottom: 20px; }
.usg-sp-short p { margin: 0 0 8px; }
.usg-sp-short p:last-child { margin-bottom: 0; }

/* ── Variation dropdown ──────────────────────────────────
   Show the <select>, hide the cart button + quantity
─────────────────────────────────────────────────────────── */
.usg-sp-variations { margin-bottom: 20px; }
.usg-sp-summary .variations_form .variations {
    width: 100%; border-collapse: collapse; margin-bottom: 16px;
}
.usg-sp-summary .variations_form .variations td,
.usg-sp-summary .variations_form .variations th { padding: 0; vertical-align: top; }
.usg-sp-summary .variations_form .variations .label { padding-bottom: 6px; }
.usg-sp-summary .variations_form .variations .label label {
    font-family: Montserrat, sans-serif;
    font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #333;
}
.usg-sp-summary .variations_form .variations .value select {
    width: 100%; padding: 10px 38px 10px 14px;
    border: 1.5px solid #e0e0e8; border-radius: 8px;
    font-family: Poppins, sans-serif; font-size: 14px; color: #0d0d10;
    background: #fff; cursor: pointer; outline: none;
    transition: border-color .2s;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238888a2' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.usg-sp-summary .variations_form .variations .value select:focus { border-color: var(--global-palette1,#ed1c24); }
.usg-sp-summary .variations_form .reset_variations {
    font-size: 12px; color: #8888a2; text-decoration: none; display: block; margin-top: 6px;
}
.usg-sp-summary .variations_form .reset_variations:hover { color: var(--global-palette1,#ed1c24); }
/* Hide cart button + qty + variation price update — keep Google Merchant data intact */
.usg-sp-summary .variations_form .woocommerce-variation-add-to-cart,
.usg-sp-summary .single_add_to_cart_button,
.usg-sp-summary .quantity,
/*.usg-sp-summary .woocommerce-variation-price { display: none !important; }*/

/* ── CTA row ────────────────────────────────────────────── */
.usg-sp-cta {
    display: flex; flex-wrap: wrap; gap: 12px;
    align-items: center; margin: 20px 0 24px;
}
.usg-sp-call {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: Montserrat, sans-serif; font-size: 13px; font-weight: 600;
    color: #52526a; text-decoration: none; transition: color .2s;
}
.usg-sp-call:hover { color: var(--global-palette1,#ed1c24); }

/* ── Trust badges ───────────────────────────────────────── */
.usg-sp-badges {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    margin-top: 24px; padding-top: 22px; border-top: 1px solid #f0f0f3;
}
.usg-sp-badge {
    display: flex; align-items: center; gap: 10px;
    background: #f7f7f9; border: 1px solid #e8e8f0;
    border-radius: 10px; padding: 11px 13px;
}
.usg-sp-badge-ico {
    width: 34px; height: 34px; background: rgba(237,28,36,.08);
    border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.usg-sp-badge-ico svg { width: 17px; height: 17px; color: var(--global-palette1,#ed1c24); }
.usg-sp-badge-lbl strong { display: block; font-family: Montserrat, sans-serif; font-size: 12px; font-weight: 700; color: #1a1a24; }
.usg-sp-badge-lbl span { font-size: 11px; color: #8888a2; }

/* ── Tabs ───────────────────────────────────────────────── */
.usg-sp-tabs {
    background: #f7f7f9; border-top: 1px solid #e0e0e8;
    padding: clamp(40px,5vw,64px) 0;
}
.usg-sp-tabs .woocommerce-tabs {
    max-width: 1240px; margin: 0 auto;
    padding: 0 clamp(20px,5vw,60px);
}
.usg-sp-tabs ul.wc-tabs {
    display: flex; gap: 2px; flex-wrap: wrap;
    padding: 0; margin: 0 0 28px; list-style: none;
    border-bottom: 2px solid #e0e0e8;
}
.usg-sp-tabs ul.wc-tabs li { padding: 0; border-radius: 0; background: none; border: none; margin: 0; }
.usg-sp-tabs ul.wc-tabs li a {
    display: block; font-family: Montserrat, sans-serif;
    font-size: 13px; font-weight: 700; letter-spacing: .03em;
    color: #52526a; padding: 10px 18px; text-decoration: none;
    border-bottom: 3px solid transparent; margin-bottom: -2px;
    transition: color .2s, border-color .2s; white-space: nowrap;
}
.usg-sp-tabs ul.wc-tabs li.active > a,
.usg-sp-tabs ul.wc-tabs li a:hover {
    color: var(--global-palette1,#ed1c24);
    border-bottom-color: var(--global-palette1,#ed1c24);
}
.usg-sp-tabs .woocommerce-tabs .panel {
    background: #fff; border-radius: 12px;
    padding: 28px 32px; border: 1px solid #e0e0e8;
}

/* ── Related products ───────────────────────────────────── */
.usg-sp-related {
    border-top: 1px solid #e0e0e8;
    padding: clamp(40px,5vw,64px) 0;
    background: #fff;
}
.usg-sp-related .related {
    max-width: 1240px; margin: 0 auto;
    padding: 0 clamp(20px,5vw,60px);
}
.usg-sp-related h2 {
    font-family: Montserrat, sans-serif;
    font-size: clamp(20px,2.5vw,28px); font-weight: 800;
    letter-spacing: -.02em; color: #0d0d10; margin: 0 0 8px;
}
.usg-sp-related h2::after {
    content: ''; display: block; width: 40px; height: 3px;
    background: var(--global-palette1,#ed1c24); border-radius: 2px; margin-top: 10px;
}
.usg-sp-related .products {
/*    display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr));*/
    gap: 18px; list-style: none; 
/*    padding: 0; margin: 28px 0 0;*/
}
.usg-sp-related .products li.product {
    border: 1px solid #e0e0e8; border-radius: 12px; overflow: hidden;
    background: #fff; transition: box-shadow .2s, transform .2s;
    display: flex; flex-direction: column;
}
.usg-sp-related .products li.product:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.1); transform: translateY(-3px);
}
.usg-sp-related .products li.product a img { width: 100%; height: 160px; object-fit: cover; display: block; }
.usg-sp-related .products li.product .woocommerce-loop-product__title {
    font-family: Montserrat, sans-serif; font-size: 13px; font-weight: 700;
    color: #0d0d10; padding: 12px 14px 4px; margin: 0;
}
.usg-sp-related .products li.product .price {
    font-size: 13px; font-weight: 700; color: var(--global-palette1,#ed1c24);
    padding: 0 14px 14px; display: block;
}
/* Hide add-to-cart in related — Google Merchant data intact */
.usg-sp-related .products li.product .button,
.usg-sp-related .products li.product .add_to_cart_button { display: none !important; }

/* ════════════════════════════════════════════════════════════
   2. SHOP / ARCHIVE PAGE
════════════════════════════════════════════════════════════ */

/* ── Hero ───────────────────────────────────────────────── */
.usg-shop-hero {
    background: #0d0d10;
    padding: clamp(48px,7vw,80px) 0 clamp(36px,5vw,60px);
    position: relative; overflow: hidden;
}
.usg-shop-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 85% 50%, rgba(237,28,36,.16) 0%, transparent 60%);
    pointer-events: none;
}
.usg-shop-hero__inner {
    max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px,5vw,60px);
    display: flex; align-items: center; justify-content: space-between;
    gap: 32px; flex-wrap: wrap; position: relative; z-index: 1;
}
.usg-shop-hero__over {
    display: block; font-family: Montserrat, sans-serif;
    font-size: 11px; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--global-palette1,#ed1c24); margin-bottom: 10px;
}
.usg-shop-hero__title {
    font-family: Montserrat, sans-serif;
    font-size: clamp(26px,4vw,44px); font-weight: 900;
    color: #fff; margin: 0 0 12px; letter-spacing: -.03em; line-height: 1.1;
}
.usg-shop-hero__title span { color: var(--global-palette1,#ed1c24); }
.usg-shop-hero__desc { font-size: 15px; color: rgba(255,255,255,.52); max-width: 500px; line-height: 1.75; margin: 0; }
.usg-shop-hero__badge {
    display: flex; background: rgba(255,255,255,.07);
    border-radius: 12px; overflow: hidden; flex-shrink: 0;
}
.usg-shop-hero__badge-item {
    padding: 16px 22px; text-align: center; min-width: 80px;
    border-right: 1px solid rgba(255,255,255,.07);
}
.usg-shop-hero__badge-item:last-child { border-right: none; }
.usg-shop-hero__badge-item strong {
    display: block; font-family: Montserrat, sans-serif;
    font-size: 20px; font-weight: 900; color: #fff; line-height: 1;
}
.usg-shop-hero__badge-item span {
    font-size: 10px; color: rgba(255,255,255,.42); font-weight: 600;
    letter-spacing: .05em; text-transform: uppercase; margin-top: 4px; display: block;
}

/* ── Sidebar + main layout ──────────────────────────────── */
.usg-shop-layout {
    max-width: 1240px; margin: 0 auto;
    padding: clamp(20px,2.5vw,28px) clamp(20px,5vw,60px) clamp(28px,4vw,48px);
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}

/* ── Sidebar ────────────────────────────────────────────── */
.usg-shop-sidebar {
    position: sticky; top: 100px;
    background: #fff; border: 1px solid #e0e0e8;
    border-radius: 14px; overflow: hidden;
}

/* Header — hidden on desktop, shown on mobile as drawer title */
.usg-sidebar-header {
    display: none;
    align-items: center; justify-content: space-between;
    padding: 15px 18px;
    background: #0d0d10;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.usg-sidebar-title {
    font-family: Montserrat, sans-serif;
    font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: #fff;
    display: flex; align-items: center; gap: 8px;
}
.usg-sidebar-title svg { color: var(--global-palette1,#ed1c24); }
.usg-sidebar-close {
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,.7); padding: 4px;
    transition: color .2s;
}
.usg-sidebar-close:hover { color: #fff; }

/* ── Quick Search + Filter Pills Bar ───────────────────── */
.usg-quickbar {
    background: #fff;
    border-top: 1px solid #e5e5ef;
    border-bottom: 1px solid #e5e5ef;
}
.usg-quickbar__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px clamp(20px, 5vw, 60px);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Search */
.usg-quickbar__search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f6f6f8;
    border: 1.5px solid transparent;
    border-radius: 10px;
    padding: 0 14px;
    flex: 0 1 260px;
    transition: border-color .2s, background .2s;
}
.usg-quickbar__search:focus-within {
    background: #fff;
    border-color: #ed1c24;
}
.usg-quickbar__search-ico {
    color: #aaa;
    flex-shrink: 0;
    transition: color .2s;
}
.usg-quickbar__search:focus-within .usg-quickbar__search-ico { color: #ed1c24; }
.usg-quickbar__search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13.5px;
    color: #0d0d10;
    padding: 10px 0;
    min-width: 0;
}
.usg-quickbar__search-input::placeholder { color: #bbb; }
.usg-quickbar__search-clear {
    color: #bbb;
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: color .2s;
}
.usg-quickbar__search-clear:hover { color: #ed1c24; }

/* Divider */
.usg-quickbar__divider {
    width: 1px;
    height: 28px;
    background: #e5e5ef;
    flex-shrink: 0;
}

/* Pills group */
.usg-quickbar__pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}
.usg-quickbar__pills-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #aaa;
    white-space: nowrap;
    margin-right: 2px;
}
.usg-qpill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1.5px solid #d0d0de;
    font-size: 12.5px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    background: #fff;
    transition: border-color .2s, color .2s, background .2s, box-shadow .2s;
    white-space: nowrap;
    line-height: 1.4;
}
.usg-qpill:hover {
    border-color: #ed1c24;
    color: #ed1c24;
    box-shadow: 0 2px 8px rgba(237,28,36,.12);
}
.usg-qpill--active {
    background: #ed1c24 !important;
    border-color: #ed1c24 !important;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(237,28,36,.28);
}
.usg-qpill--active:hover {
    background: #c5151c !important;
    border-color: #c5151c !important;
    color: #fff !important;
}

/* Filter wrap — contains BeRocket output */
.usg-filter-wrap {
    padding: 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e0e0e0 transparent;
}
.usg-filter-wrap::-webkit-scrollbar { width: 4px; }
.usg-filter-wrap::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

/* ── BeRocket AJAX Filter accordion
   Real HTML structure:
     .berocket_single_filter_widget  (outer widget wrapper)
       .bapf_sfilter                 (filter group)
         .bapf_head h3               (clickable title)
         .bapf_body                  (collapsible content)
─────────────────────────────────────────────────────────── */

/* Strip all BeRocket default widget chrome */
.usg-filter-wrap .berocket_single_filter_widget {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

/* Each filter group — accordion item */
.usg-filter-wrap .bapf_sfilter {
    border-bottom: 1px solid #f0f0f0;
    margin: 0 !important;
    padding: 0 !important;
}
.usg-filter-wrap .berocket_single_filter_widget:last-child .bapf_sfilter {
    border-bottom: none;
}

/* ── Accordion head — the clickable row ── */
.usg-filter-wrap .bapf_head {
    cursor: pointer;
    user-select: none;
    padding: 13px 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    transition: background .15s;
}
.usg-filter-wrap .bapf_head:hover { background: #fafafa; }
.usg-filter-wrap .bapf_head.usg-open { background: #fafafa; }

.usg-filter-wrap .bapf_head h3 {
    font-family: Montserrat, sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    color: #0d0d10 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    line-height: 1.3 !important;
    flex: 1 !important;
}
.usg-filter-wrap .bapf_head:hover h3 { color: var(--global-palette1,#ed1c24) !important; }
.usg-filter-wrap .bapf_head.usg-open h3 { color: var(--global-palette1,#ed1c24) !important; }

/* Chevron — injected via pseudo on bapf_head */
.usg-filter-wrap .bapf_head::after {
    content: '';
    display: block;
    width: 8px; height: 8px;
    border-right: 2px solid #aaa;
    border-bottom: 2px solid #aaa;
    transform: rotate(45deg) translateY(-3px);
    transition: transform .22s, border-color .22s;
    flex-shrink: 0;
    margin-left: 8px;
}
.usg-filter-wrap .bapf_head.usg-open::after {
    transform: rotate(-135deg) translateY(3px);
    border-color: var(--global-palette1,#ed1c24);
}

/* ── Accordion body ── */
.usg-filter-wrap .bapf_body {
    padding: 2px 18px 14px !important;
    display: none; /* JS controls open/close */
}
.usg-filter-wrap .bapf_body.usg-open {
    display: block;
}

/* ── Checkbox list ── */
.usg-filter-wrap .bapf_body ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* Each li wraps input + label as siblings — make it flex row */
.usg-filter-wrap .bapf_body ul li {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 5px 0 !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
    cursor: pointer !important;
}
.usg-filter-wrap .bapf_body ul li:hover label { color: #0d0d10 !important; }
.usg-filter-wrap .bapf_body ul li.checked label { color: #0d0d10 !important; font-weight: 600 !important; }

.usg-filter-wrap .bapf_body ul li label {
    display: block !important;
    padding: 0 !important;
    font-family: Poppins, sans-serif !important;
    font-size: 13px !important;
    color: #52526a !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    flex: 1 !important;
    transition: color .15s !important;
}

.usg-filter-wrap .bapf_body ul li input[type="checkbox"] {
    width: 15px !important; height: 15px !important;
    flex-shrink: 0 !important;
    accent-color: var(--global-palette1,#ed1c24) !important;
    cursor: pointer !important;
    margin: 0 !important;
    order: -1 !important; /* checkbox always before label */
}

/* ── Price range slider (ion.RangeSlider) ── */
.usg-filter-wrap .bapf_slidr_all { padding: 8px 4px 4px !important; }

/* ion.RangeSlider flat skin overrides */
.usg-filter-wrap .irs--flat .irs-line {
    background: #e0e0e8 !important; height: 4px !important; border-radius: 2px !important;
}
.usg-filter-wrap .irs--flat .irs-bar {
    background: var(--global-palette1,#ed1c24) !important; height: 4px !important;
}
.usg-filter-wrap .irs--flat .irs-handle {
    width: 16px !important; height: 16px !important;
    top: 22px !important; border-radius: 50% !important;
    background: #fff !important;
    border: 2px solid var(--global-palette1,#ed1c24) !important;
    box-shadow: 0 1px 6px rgba(237,28,36,.3) !important;
    cursor: grab !important;
}
.usg-filter-wrap .irs--flat .irs-handle > i:first-child {
    background: var(--global-palette1,#ed1c24) !important;
    width: 4px !important; height: 4px !important;
    border-radius: 50% !important;
    top: 50% !important; left: 50% !important;
    transform: translate(-50%,-50%) !important;
}
.usg-filter-wrap .irs--flat .irs-from,
.usg-filter-wrap .irs--flat .irs-to,
.usg-filter-wrap .irs--flat .irs-single {
    background: var(--global-palette1,#ed1c24) !important;
    font-family: Poppins, sans-serif !important;
    font-size: 11px !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
}
.usg-filter-wrap .irs--flat .irs-from::before,
.usg-filter-wrap .irs--flat .irs-to::before,
.usg-filter-wrap .irs--flat .irs-single::before {
    border-top-color: var(--global-palette1,#ed1c24) !important;
}

/* ── Main area: toolbar + grid ──────────────────────────── */
.usg-shop-main { min-width: 0; }

/* Mobile filter toggle — hidden on desktop, shown in mobile breakpoint */
.usg-shop-toolbar { display: none; }
.usg-filter-toggle { display: none; }

/* ── Product grid ───────────────────────────────────────── */
.usg-shop-grid {
    display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
    gap: 16px; margin-bottom: 32px;
}

/* Product card */
.usg-shop-card {
    background: #fff; border: 1px solid #e0e0e8; border-radius: 14px;
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .22s, box-shadow .22s;
}
.usg-shop-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,.14); }

.usg-shop-card__img-wrap {
    display: block; overflow: hidden; aspect-ratio: 4/3; background: #f0f0f3; position: relative;
}
.usg-shop-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s; }
.usg-shop-card:hover .usg-shop-card__img-wrap img { transform: scale(1.05); }
.usg-shop-card__no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #e0e0e8; }
.usg-shop-card__badge-sale {
    position: absolute; top: 10px; left: 10px;
    background: var(--global-palette1,#ed1c24); color: #fff;
    font-family: Montserrat, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; padding: 4px 10px; border-radius: 100px;
}

.usg-shop-card__body { padding: 14px 14px 8px; flex: 1; }
.usg-shop-card__cats {
    display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px;
}
.usg-shop-card__cat-pill {
    font-family: Montserrat, sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .09em;
    text-transform: uppercase; color: #ed1c24;
    background: rgba(237,28,36,.07); border: 1px solid rgba(237,28,36,.18);
    border-radius: 100px; padding: 2px 8px;
    text-decoration: none; white-space: nowrap; line-height: 1.6;
    transition: background .15s, color .15s;
}
.usg-shop-card__cat-pill:hover { background: #ed1c24; color: #fff; }
.usg-shop-card__cat-more {
    font-family: Montserrat, sans-serif; font-size: 9px; font-weight: 700;
    color: #aaa; background: #f3f3f5; border-radius: 100px;
    padding: 2px 7px; line-height: 1.6;
}
.usg-shop-card__title { font-family: Montserrat, sans-serif; font-size: 13px; font-weight: 700; color: #0d0d10; margin: 0 0 5px; line-height: 1.3; }
.usg-shop-card__title a { color: inherit; text-decoration: none; }
.usg-shop-card__title a:hover { color: var(--global-palette1,#ed1c24); }
.usg-shop-card__sku { font-size: 11px; color: #8888a2; display: block; margin-bottom: 7px; }
.usg-shop-card__price .price { font-family: Montserrat, sans-serif; font-size: 15px; font-weight: 700; color: #0d0d10; }
.usg-shop-card__price .price ins { text-decoration: none; }
.usg-shop-card__price .price del { opacity: .5; font-size: .8em; }

.usg-shop-card__actions { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 7px; }
.usg-shop-card__actions .usg-quote-btn { width: 100%; justify-content: center; font-size: 12px; padding: 10px 14px; }
.usg-shop-card__details {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-family: Montserrat, sans-serif; font-size: 12px; font-weight: 600; color: #52526a;
    text-decoration: none; padding: 8px;
    border: 1.5px solid #e0e0e8; border-radius: 7px; transition: color .2s, border-color .2s;
}
.usg-shop-card__details:hover { color: var(--global-palette1,#ed1c24); border-color: var(--global-palette1,#ed1c24); }

/* Pagination */
.usg-shop-pagination .woocommerce-pagination { text-align: center; margin-top: 8px; }
.usg-shop-pagination ul.page-numbers { display: inline-flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.usg-shop-pagination ul.page-numbers li { margin: 0; }
.usg-shop-pagination ul.page-numbers a,
.usg-shop-pagination ul.page-numbers span {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: 1.5px solid #e0e0e8; border-radius: 8px;
    font-family: Montserrat, sans-serif; font-size: 13px; font-weight: 600; color: #52526a;
    text-decoration: none; transition: border-color .2s, color .2s;
}
.usg-shop-pagination ul.page-numbers a:hover { border-color: var(--global-palette1,#ed1c24); color: var(--global-palette1,#ed1c24); }
.usg-shop-pagination ul.page-numbers .current { background: var(--global-palette1,#ed1c24); border-color: var(--global-palette1,#ed1c24); color: #fff; }

/* Empty state */
.usg-shop-empty { text-align: center; padding: clamp(48px,8vw,96px) 0; color: #8888a2; }
.usg-shop-empty svg { margin-bottom: 16px; }
.usg-shop-empty h2 { font-family: Montserrat, sans-serif; font-size: 22px; font-weight: 700; color: #0d0d10; margin: 0 0 10px; }
.usg-shop-empty p { font-size: 14px; }
.usg-shop-empty a { color: var(--global-palette1,#ed1c24); }

/* Mobile sidebar overlay */
.usg-sidebar-overlay {
    display: none; position: fixed; inset: 0; z-index: 9998;
    background: rgba(0,0,0,.55); backdrop-filter: blur(3px);
}
.usg-sidebar-overlay.open { display: block; }

/* ════════════════════════════════════════════════════════════
   3. PRODUCT TAB CONTENT — Features & Turnkey grids
════════════════════════════════════════════════════════════ */

/* Features grid — Digital Displays Features & Turnkey Sign Package */
.dds-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.dds-feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 18px;
    background: #f7f7f9;
    border: 1px solid #e8e8f0;
    border-radius: 12px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.dds-feature-card:hover {
    border-color: var(--global-palette1, #ed1c24);
    box-shadow: 0 6px 24px rgba(237,28,36,.08);
    transform: translateY(-2px);
    background: #fff;
}

.dds-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(237,28,36,.08);
    border: 1px solid rgba(237,28,36,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s, border-color .2s;
}
.dds-feature-card:hover .dds-feature-icon {
    background: var(--global-palette1, #ed1c24);
    border-color: var(--global-palette1, #ed1c24);
}
.dds-feature-icon svg {
    color: var(--global-palette1, #ed1c24);
    transition: color .2s;
}
.dds-feature-card:hover .dds-feature-icon svg { color: #fff; }

.dds-feature-title {
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0d0d10;
    margin: 0;
    line-height: 1.3;
}

.dds-feature-desc {
    font-size: 13px;
    color: #52526a;
    line-height: 1.6;
    margin: 0;
}

/* Downloads grid — Informative Downloads tab */
.dds-downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.dds-download-card {
    border: 1px solid #e0e0e8;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s, transform .2s;
}
.dds-download-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); transform: translateY(-2px); }
.dds-download-img-wrap { aspect-ratio: auto; overflow: hidden; background: #f0f0f3; }
.dds-download-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dds-download-body { padding: 12px; }
.dds-download-btn {
    display: block; text-align: center;
    font-family: Montserrat, sans-serif;
    font-size: 12px; font-weight: 700; letter-spacing: .04em;
    color: var(--global-palette1, #ed1c24);
    border: 1.5px solid var(--global-palette1, #ed1c24);
    border-radius: 6px; padding: 8px;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.dds-download-btn:hover {
    background: var(--global-palette1, #ed1c24);
    color: #fff;
}

/* ════════════════════════════════════════════════════════════
   4. RESPONSIVE — STANDARDIZED BREAKPOINTS
════════════════════════════════════════════════════════════ */

/* Quickbar responsive */
@media (max-width: 860px) {
    .usg-quickbar__search { flex: 1 1 200px; }
    .usg-quickbar__divider { display: none; }
    .usg-quickbar__pills { flex: 1 1 100%; order: 2; }
    .usg-quickbar__search { order: 1; }
}
@media (max-width: 540px) {
    .usg-quickbar__inner { gap: 10px; }
    .usg-quickbar__pills-label { display: none; }
    .usg-qpill { font-size: 12px; padding: 5px 12px; }
    .usg-quickbar__search { flex: 1 1 100%; }
}

/* Desktop to Tablet Transition (1024px) */
@media (max-width: 1024px) {
    /* Show toolbar with filter toggle on mobile */
    .usg-shop-toolbar { display: flex; align-items: center; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #e0e0e8; }
    /* Sidebar collapses — shown as drawer on mobile */
    .usg-shop-layout { grid-template-columns: 1fr; }
    .usg-shop-sidebar {
        position: fixed; top: 0; left: -300px; bottom: 0; z-index: 9999;
        width: 280px; border-radius: 0;
        overflow-y: auto;
        transition: left .32s cubic-bezier(.4,0,.2,1);
    }
    .usg-shop-sidebar.open { left: 0; }
    /* Show header only in mobile drawer */
    .usg-sidebar-header { display: flex !important; }
    /* Remove max-height on mobile — drawer is full height */
    .usg-filter-wrap { max-height: none; overflow-y: visible; }
    .usg-filter-toggle {
        display: inline-flex; align-items: center; gap: 7px;
        font-family: Montserrat, sans-serif; font-size: 12px; font-weight: 700;
        letter-spacing: .04em; text-transform: uppercase;
        color: var(--global-palette1,#ed1c24);
        background: rgba(237,28,36,.07); border: 1.5px solid var(--global-palette1,#ed1c24);
        border-radius: 8px; padding: 9px 16px; cursor: pointer;
        transition: background .2s;
    }
    .usg-filter-toggle:hover { background: rgba(237,28,36,.14); }
    /* Single product */
    .usg-sp-body { grid-template-columns: 1fr; }
    .usg-sp-gallery .woocommerce-product-gallery { position: static; }
    .usg-sp-badges { grid-template-columns: 1fr; }
    /* Shop hero badge */
    .usg-shop-hero__badge { display: none; }
    /* Features grid */
    .dds-features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet (768px) */
@media (max-width: 768px) {
    .usg-shop-grid { grid-template-columns: repeat(2, 1fr); }
    .dds-features-grid { grid-template-columns: 1fr; }
}

/* Large Phone (640px) */
@media (max-width: 640px) {
    .usg-shop-grid { grid-template-columns: 1fr 1fr; }
    /* Tabs on mobile */
    .usg-sp-tabs ul.wc-tabs { border-bottom: none; flex-direction: column; }
    .usg-sp-tabs ul.wc-tabs li a {
        border-left: 3px solid transparent; border-bottom: none;
        margin-bottom: 0; padding: 10px 14px;
    }
    .usg-sp-tabs ul.wc-tabs li.active > a { border-left-color: var(--global-palette1,#ed1c24); }
    .dds-downloads-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Small Phone (480px) */
@media (max-width: 480px) {
    .usg-shop-grid { grid-template-columns: 1fr; }
    .dds-downloads-grid { grid-template-columns: 1fr; }
}