/* ============================================
   GRID LAYOUT
   ============================================ */

.goldika-products-wrapper {
    width: 100%;
    position: relative;
}

.goldika-products-wrapper ul.products {
    display: grid;
    grid-template-columns: repeat(var(--gk-cols, 4), 1fr);
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.goldika-products-wrapper ul.products.columns-2 { --gk-cols: 2; }
.goldika-products-wrapper ul.products.columns-3 { --gk-cols: 3; }
.goldika-products-wrapper ul.products.columns-4 { --gk-cols: 4; }
.goldika-products-wrapper ul.products.columns-5 { --gk-cols: 5; }
.goldika-products-wrapper ul.products.columns-6 { --gk-cols: 6; }

/* ============================================
   PRODUCT CARD
   ============================================ */

.goldika-products-wrapper li.product {
    position: relative;
    background: #1E1F25;
    border-radius: 1em;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background var(--gmf-transition, 0.3s ease),
                border-color var(--gmf-transition, 0.3s ease),
                box-shadow var(--gmf-transition, 0.3s ease);
    display: flex;
    flex-direction: column;
}

.goldika-products-wrapper li.product:hover {
    border-color: rgba(250, 175, 0, 0.2);
    box-shadow: 0 0 20px rgba(250, 175, 0, 0.06);
}

.goldika-products-wrapper li.product > a.woocommerce-loop-product__link {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    padding: 1em;
}

.goldika-products-wrapper .products > .product .woocommerce-loop-product__link img {
    padding: 0;
    margin: 0;
    width: 100%;
    aspect-ratio: 1;
    height: auto;
}

/* ============================================
   PRODUCT IMAGE — dual image crossfade
   ============================================ */

.gk-product-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #1E1F25;
    border-radius: var(--gmf-border-radius, 8px);
}

.gk-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gk-product-thumb .gk-img-primary {
    position: relative;
    z-index: 1;
    transition: opacity 0.45s ease;
    padding: 1em !important;
    background: #1E1F25;
    box-sizing: border-box;
    object-fit: contain;
    border-radius: 0 !important;
}

.gk-product-thumb .gk-img-secondary {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 1;
    padding: 2px !important;
    border-radius: 8px !important;
}

li.product:hover .gk-product-thumb .gk-img-primary {
    opacity: 0;
}

li.product.gk-no-secondary:hover .gk-product-thumb .gk-img-primary {
    opacity: 1;
}

/* ============================================
   BADGES
   ============================================ */

.gk-badges {
    display: flex;
    position: absolute;
    top: 16px;
    right: 16px;
    flex-wrap: wrap;
    gap: 5px;
    z-index: 2;
    margin-top: 8px;
    margin-right: 8px;
    pointer-events: none;
    margin-bottom: 6px;
}

.gk-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.2px;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    color: #fff;
}

.gk-badge-new        { color: rgba(255, 255, 255, 0.9); }
.gk-badge-economical { color: rgba(255, 255, 255, 0.9); }

/* ============================================
   SALE PERCENTAGE
   ============================================ */

.gk-sale-percent::after {
    content: '٪';
    font-size: 10px;
    opacity: 0.8;
}

/* ============================================
   OUT OF STOCK OVERLAY
   ============================================ */

.gk-oos-overlay {
    position: absolute;
    inset: 0;
    background: rgba(35, 40, 50, 0.45);
    z-index: 3;
    pointer-events: none;
    transition: background 0.3s;
}

li.product.gk-outofstock:hover .gk-oos-overlay {
    background: rgba(35, 40, 50, 0.3);
}

/* ============================================
   PRODUCT INFO
   ============================================ */

.gk-product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px 0 0;
}

.gk-product-head {
    margin-bottom: 2px;
}

.goldika-products-wrapper li.product h2.woocommerce-loop-product__title {
    font-size: 13.5px;
    font-weight: 600;
    color: #e8e8e8;
    margin: 0 0 4px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s;
}

li.product:hover h2.woocommerce-loop-product__title {
    color: var(--gmf-primary, #FAAF00);
}

.gk-sku {
    font-size: 11px;
    color: #777;
    font-family: 'SF Mono', 'Fira Code', monospace;
    letter-spacing: 0.6px;
    margin-bottom: 2px;
}

/* ============================================
   PRICE
   ============================================ */

.gk-price-wrap {
    padding: 10px 0 0;
    margin-top: auto;
}

.gk-price-row {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.gk-price-wrap .price {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 14px;
    font-weight: 700;
    color: #e0e0e0;
    line-height: 1.5;
    flex: 1;
    min-width: 0;
}

.gk-price-wrap .price del {
    font-size: 11.5px;
    color: #666;
    font-weight: 400;
    text-decoration: line-through;
    order: -1;
}

.gk-price-wrap .price ins {
    text-decoration: none;
    color: var(--gmf-primary, #FAAF00);
    font-weight: 700;
}

.gk-price-wrap .price .woocommerce-Price-amount {
    font-variant-numeric: tabular-nums;
}

.relative-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0;
}

.gk-sale-percent {
    background-color: #d49e00de;
    color: #000000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    padding-top: 0.25em;
    flex-direction: row-reverse;
    margin-bottom: 0.35em;
}

.price-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.price {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 !important;
}

.price-old {
    color: #888;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.gk-unavailable {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: #666;
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--gmf-border-radius, 8px);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.gk-unavailable svg {
    flex-shrink: 0;
    opacity: 0.5;
}

/* ============================================
   OUT OF STOCK CARD
   ============================================ */

li.product.gk-outofstock {
    opacity: 0.55;
    transition: opacity var(--gmf-transition, 0.3s ease),
                background var(--gmf-transition, 0.3s ease),
                border-color var(--gmf-transition, 0.3s ease),
                box-shadow var(--gmf-transition, 0.3s ease);
}

li.product.gk-outofstock:hover {
    opacity: 0.72;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

li.product.gk-outofstock h2.woocommerce-loop-product__title {
    color: #777;
}

li.product.gk-outofstock:hover h2.woocommerce-loop-product__title {
    color: #999;
}

li.product.gk-outofstock .gk-product-thumb img {
    filter: grayscale(40%) brightness(0.85);
    transition: filter 0.4s ease;
}

li.product.gk-outofstock:hover .gk-product-thumb img {
    filter: grayscale(20%) brightness(0.9);
}

li.product.gk-outofstock .gk-sku {
    color: #555;
}

li.product.gk-outofstock .gk-badges {
    display: none;
}

li.product.stock-onbackorder .gk-price-wrap::after {
    content: 'ارسال سفارشی';
    display: block;
    font-size: 10px;
    color: #d97706;
    font-weight: 500;
    margin-top: 4px;
}

/* ============================================
   FILTER BAR
   ============================================ */

.gk-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    position: sticky;
    background: var(--body-950, #232832);
    backdrop-filter: none;
    z-index: 3;
    top: var(--goldika-header-offset, 76px);
}

.gk-sorting {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: space-between;
}

#gmf-filter-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--gmf-border-radius, 8px);
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #000;
    transition: all var(--gmf-transition, 0.3s ease);
    white-space: nowrap;
    line-height: 1.4;
    flex-shrink: 0;
}

#gmf-filter-trigger:hover {
    border-color: var(--gmf-primary, #FAAF00);
    color: var(--gmf-primary, #FAAF00);
}

#gmf-filter-trigger svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.gk-sort-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 250px;
}

.gk-sort-wrap i {
    display: none;
}

.gk-sort-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #999;
}

.gk-sort-wrap select {
    appearance: none;
    -webkit-appearance: none;
    flex: 1;
    background-color: var(--bg-500);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--gmf-border-radius, 8px);
    padding: 8px 32px 8px 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--gmf-transition, 0.3s ease);
    line-height: 1.4;
    width: 100%;
    margin-left: auto;
    max-width: 250px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 10px center;
}

.gk-sort-wrap select:hover,
.gk-sort-wrap select:focus {
    border-color: var(--gmf-primary, #FAAF00);
    outline: none;
}

.gk-sort-wrap select option {
    background: var(--gmf-bg-medium, #373943);
    color: #ccc;
}


/* ============================================
   PRODUCT COUNT
   ============================================ */

.gk-result-count {
    font-size: 12px;
    color: #666;
    padding: 0 0 8px;
}

.gk-result-count strong {
    color: #999;
    font-weight: 600;
}

/* ============================================
   LOADING & END
   ============================================ */

.gk-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 13px;
}

.gk-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--gmf-primary, #FAAF00);
    border-radius: 50%;
    animation: gk-spin 0.75s linear infinite;
    margin: 0 auto 12px;
}

@keyframes gk-spin {
    to { transform: rotate(360deg); }
}

.gk-no-more {
    text-align: center;
    padding: 28px 20px;
    display: none;
}

.gk-no-more.show {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 16px;
}

.gk-no-more hr {
    border: none;
    flex: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 10px 0;
}

.gk-no-more p {
    color: #555;
    font-size: 12.5px;
    margin: 10px 0;
}

.gk-scroll-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #888;
    cursor: pointer;
    transition: all 0.25s;
    margin: 6px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gk-scroll-top:hover {
    background: var(--gmf-primary, #FAAF00);
    color: var(--gmf-bg-dark, #232832);
    border-color: var(--gmf-primary, #FAAF00);
    box-shadow: 0 4px 16px rgba(250, 175, 0, 0.3);
}

.gk-error {
    color: #ef4444;
    font-weight: 500;
}

/* ============================================
   RESPONSIVE — Tablet
   ============================================ */

@media (max-width: 1024px) {
    .goldika-products-wrapper ul.products {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */

@media (max-width: 767px) {
    .goldika-products-wrapper ul.products {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .goldika-products-wrapper li.product {
        border-radius: 12px;
    }

    .goldika-products-wrapper li.product > a.woocommerce-loop-product__link {
        flex-direction: row;
        padding: 10px;
        gap: 12px;
        align-items: stretch;
    }

    .gk-product-thumb {
        width: 110px;
        min-width: 110px;
        max-width: 110px;
        aspect-ratio: 1 / 1;
        border-radius: 8px;
        flex-shrink: 0;
        margin: auto;
    }

    .gk-product-thumb .gk-img-primary {
        padding: 8px;
    }

    .gk-product-body {
        padding: 2px 0 0;
        flex: 1;
        min-width: 0;
        justify-content: center;
    }

    .gk-product-head {
        margin-bottom: 0;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .goldika-products-wrapper li.product h2.woocommerce-loop-product__title {
        font-size: 13px;
        line-height: 1.45;
        -webkit-line-clamp: 2;
        margin: 0 0 3px;
    }

    .gk-sku {
        font-size: 10px;
        margin-bottom: 0;
    }

    .gk-badges {
        margin: 0;
        position: relative;
        max-width: 120px;
        top: unset;
        right: unset;
        margin-bottom: 4px;
        gap: 4px;
        order: 1;
    }

    .gk-badge {
        font-size: 9.5px;
        padding: 2px 6px;
        border-radius: 4px;
    }

    .gk-price-wrap {
        padding: 6px 0 0;
        order: 2;
    }

    .gk-price-row {
        display: flex;
        align-items: flex-end;
        gap: 0;
        flex-wrap: wrap;
        flex-direction: row-reverse;
        justify-content: space-between;
    }

    .gk-price-wrap .price {
        font-size: 14px;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: flex-end;
        flex-direction: column;
        margin: 0 !important;
    }

    .gk-price-wrap .price del {
        font-size: 11px;
        order: 0;
    }

    .gk-sale-percent {
        font-size: 11px;
    }

    .gk-unavailable {
        font-size: 11px;
        padding: 5px 10px;
        gap: 4px;
    }

    .gk-unavailable svg {
        width: 12px;
        height: 12px;
    }

    #gmf-filter-trigger {
        padding: 7px 12px;
        font-size: 12px;
    }

    #gmf-filter-trigger svg {
        width: 18px;
        height: 18px;
    }

    .gk-sort-wrap select {
        padding: 7px 28px 7px 10px;
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .goldika-products-wrapper ul.products {
        gap: 8px;
    }

    .goldika-products-wrapper li.product > a.woocommerce-loop-product__link {
        padding: 8px;
        gap: 10px;
    }

    .gk-product-thumb {
        width: 96px;
        min-width: 96px;
        max-width: 96px;
    }

    .gk-product-thumb .gk-img-primary {
        padding: 6px;
    }

    .goldika-products-wrapper li.product h2.woocommerce-loop-product__title {
        font-size: 12px;
    }

    .gk-price-wrap .price {
        font-size: 12px;
    }
}

/* ============================================
   PRESERVED TOOLBAR — STOCK + EMPTY POLISH
   Added without changing the established card/grid geometry.
   ============================================ */
.goldika-products-wrapper .gk-instock-toggle {
    --gk-switch-gold: var(--gmf-primary, #FAAF00);
    --gk-switch-dark: var(--gmf-bg-dark, #232832);
    --gk-switch-off: #6f6b73;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    direction: rtl;
    -webkit-tap-highlight-color: transparent;
    color: #fff;
    font-size: 12px;
    flex: 0 0 auto;
}
.goldika-products-wrapper .gk-instock-toggle__input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}
.goldika-products-wrapper .gk-instock-switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    direction: ltr;
    inline-size: 46px;
    block-size: 28px;
    border: 2px solid var(--gk-switch-off);
    border-radius: 999px;
    background: rgba(255,255,255,.035);
    transition: background .18s ease, border-color .18s ease;
}
.goldika-products-wrapper .gk-instock-switch::before {
    content: '';
    position: absolute;
    inline-size: 16px;
    block-size: 16px;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--gk-switch-off);
    transition: transform .18s ease, background .18s ease;
}
.goldika-products-wrapper .gk-instock-toggle__input:checked + .gk-instock-switch {
    border-color: var(--gk-switch-gold);
    background: rgba(250,175,0,.09);
}
.goldika-products-wrapper .gk-instock-toggle__input:checked + .gk-instock-switch::before {
    transform: translate(18px,-50%);
    background: var(--gk-switch-gold);
}
.goldika-products-wrapper .gk-instock-toggle__input:focus-visible + .gk-instock-switch {
    outline: 2px solid var(--gk-switch-gold);
    outline-offset: 3px;
}

.goldika-products-wrapper .gk-empty-state {
    width: 100%;
    text-align: center;
    padding: clamp(42px, 7vw, 72px) 20px;
    border: 1px dashed rgba(255,255,255,.12);
    border-radius: 14px;
    color: #9ba0aa;
    background: rgba(255,255,255,.015);
}
.goldika-products-wrapper .gk-empty-state__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    border: 1px solid rgba(250,175,0,.34);
    border-radius: 50%;
    color: var(--gmf-primary, #FAAF00);
    font-size: 18px;
}
.goldika-products-wrapper .gk-empty-state h2 {
    margin: 0 0 8px;
    color: #f1f2f4;
    font-size: 16px;
    line-height: 1.8;
}
.goldika-products-wrapper .gk-empty-state p {
    margin: 0 auto 16px;
    max-width: 520px;
    color: #8f949e;
    font-size: 12.5px;
    line-height: 2;
}
.goldika-products-wrapper .gk-empty-state__reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 18px;
    border: 1px solid rgba(250,175,0,.55);
    border-radius: 10px;
    background: transparent;
    color: var(--gmf-primary, #FAAF00);
    font: inherit;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
}
.goldika-products-wrapper .gk-empty-state__reset:hover {
    background: rgba(250,175,0,.08);
}

@media (max-width: 767px) {
    .goldika-products-wrapper .gk-sorting { gap: 8px; }
    .goldika-products-wrapper .gk-instock-toggle { gap: 6px; font-size: 11px; }
    .goldika-products-wrapper .gk-instock-switch { inline-size: 42px; block-size: 26px; }
    .goldika-products-wrapper .gk-instock-switch::before { inline-size: 14px; block-size: 14px; }
    .goldika-products-wrapper .gk-instock-toggle__input:checked + .gk-instock-switch::before { transform: translate(16px,-50%); }
}

/* v3 loading recovery — keeps the established grid look while exposing a real retry. */
.gk-load-trigger--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 8px auto 0;
    padding: 9px 18px;
    border: 1px solid var(--body-600, #4f607a);
    border-radius: 10px;
    background: var(--bg-600, #26282f);
    color: var(--body-50, #f6f7f9);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
}

.gk-load-trigger--fallback:hover,
.gk-load-trigger--fallback:focus-visible {
    border-color: var(--golden-500, #faaf00);
    color: var(--golden-500, #faaf00);
}

.gk-load-trigger--fallback:focus-visible,
.gk-retry-load:focus-visible {
    outline: 3px solid var(--golden-500, #faaf00);
    outline-offset: 3px;
}

.gk-load-error {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
    max-width: 620px;
    margin-inline: auto;
    padding: 14px 16px;
    border: 1px solid var(--body-600, #4f607a);
    border-radius: 12px;
    background: var(--bg-600, #26282f);
    color: var(--body-100, #eceef2);
}

.gk-load-error p { margin: 0; color: inherit; }
.gk-retry-load {
    min-height: 40px;
    padding: 7px 13px;
    border: 1px solid var(--golden-500, #faaf00);
    border-radius: 9px;
    background: transparent;
    color: var(--golden-500, #faaf00);
    cursor: pointer;
    font: inherit;
}

@media (prefers-reduced-motion: reduce) {
    .gk-spinner { animation: none; border-color: var(--golden-500, #faaf00); }
    .gk-loading, .gk-load-trigger--fallback, .gk-scroll-top { scroll-behavior: auto; transition: none; }
}


/* ============================================================
   Catalog interaction polish v3.2
   ============================================================ */
.gk-filter-bar{
    background:var(--body-950,#232832);
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
    border-bottom-color:color-mix(in srgb,var(--body-700,#414e63) 42%,transparent);
    box-shadow:0 8px 18px rgba(8,11,18,.08);
}
.gk-result-meta{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:10px 14px;
    flex-wrap:wrap;
    min-height:36px;
    margin:0 0 10px;
}
.gk-result-meta .gk-active-filter-slot{display:block;flex:1 1 auto;min-width:0}
.gk-result-meta .gk-active-filter-slot[hidden]{display:none!important}
.gk-result-meta .gk-result-count{
    flex:0 0 auto;
    margin-inline-start:0;
    padding:0;
    color:var(--body-400,#8f9bad);
    font-size:12px;
    white-space:nowrap;
}
.gk-result-meta .gk-result-count strong{color:var(--body-200,#d4dae3);font-weight:700}
.gk-result-meta .gk-active-filter-list ul{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.gk-result-meta .gk-active-filter-list a{
    display:inline-flex;
    align-items:center;
    gap:7px;
    min-height:32px;
    padding:5px 9px;
    border:1px solid color-mix(in srgb,var(--body-600,#4f607a) 70%,transparent);
    border-radius:999px;
    background:color-mix(in srgb,var(--body-900,#323a48) 74%,var(--body-950,#232832));
    color:var(--body-100,#eceef2);
    font-size:11px;
    line-height:1.5;
    text-decoration:none;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.gk-result-meta .gk-active-filter-list a b{font-size:15px;line-height:1;color:var(--body-400,#8f9bad);font-weight:400}
.gk-result-meta .gk-active-filter-list a:hover{border-color:color-mix(in srgb,var(--golden-500,#FAAF00) 58%,var(--body-700,#414e63));color:var(--golden-500,#FAAF00)}
.gk-result-meta .gk-active-filter-list a:hover b{color:var(--golden-500,#FAAF00)}
.gk-result-meta .gk-active-filter-list a.gk-clear-all{border-color:transparent;background:transparent;color:var(--golden-500,#FAAF00);box-shadow:none}

.gk-loading{
    width:min(100%,520px);
    margin:18px auto;
    padding:20px 18px;
    border:1px solid color-mix(in srgb,var(--body-700,#414e63) 55%,transparent);
    border-radius:14px;
    background:color-mix(in srgb,var(--body-900,#323a48) 58%,var(--body-950,#232832));
    color:var(--body-300,#afbaca);
    box-shadow:0 10px 26px rgba(8,11,18,.10);
}
.gk-loading p{margin:0;color:inherit;line-height:1.9}
.gk-spinner{width:26px;height:26px;border-width:2px;margin-bottom:9px}

.gk-no-more.show{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    gap:12px 16px;
    width:100%;
    margin:22px 0 6px;
    padding:14px 16px;
    border:1px solid color-mix(in srgb,var(--body-700,#414e63) 52%,transparent);
    border-radius:14px;
    background:color-mix(in srgb,var(--body-900,#323a48) 58%,var(--body-950,#232832));
    box-shadow:0 10px 28px rgba(8,11,18,.10),inset 0 1px 0 rgba(255,255,255,.02);
    text-align:right;
}
.gk-no-more__icon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:12px;background:color-mix(in srgb,var(--golden-500,#FAAF00) 9%,transparent);color:var(--golden-500,#FAAF00)}
.gk-no-more__icon svg{width:20px;height:20px}
.gk-no-more__copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.gk-no-more__copy strong{color:var(--body-100,#eceef2);font-size:12.5px;line-height:1.8;font-weight:700}
.gk-no-more__copy span{color:var(--body-400,#8f9bad);font-size:11px;line-height:1.8}
.gk-scroll-top{
    width:auto;height:auto;min-height:40px;
    margin:0;padding:7px 11px;
    border:1px solid color-mix(in srgb,var(--golden-500,#FAAF00) 34%,var(--body-700,#414e63));
    border-radius:10px;
    background:color-mix(in srgb,var(--golden-500,#FAAF00) 5%,transparent);
    color:var(--golden-500,#FAAF00);
    gap:7px;
    font:inherit;font-size:11.5px;font-weight:650;
}
.gk-scroll-top svg{width:17px;height:17px}
.gk-scroll-top:hover{background:var(--golden-500,#FAAF00);color:var(--body-950,#232832);border-color:var(--golden-500,#FAAF00);box-shadow:0 6px 18px color-mix(in srgb,var(--golden-500,#FAAF00) 15%,transparent)}
.gk-load-trigger--fallback{border-color:color-mix(in srgb,var(--body-600,#4f607a) 72%,transparent);background:color-mix(in srgb,var(--body-900,#323a48) 72%,var(--body-950,#232832));box-shadow:0 8px 20px rgba(8,11,18,.08)}

@media(max-width:767px){
    .gk-result-meta{align-items:flex-start;margin-bottom:9px}
    .gk-result-meta .gk-result-count{order:1;margin-inline-start:0}
    .gk-result-meta .gk-active-filter-slot{order:2;flex:1 1 100%}
    .gk-no-more.show{grid-template-columns:auto minmax(0,1fr);padding:13px 14px}
    .gk-no-more .gk-scroll-top{grid-column:1/-1;width:100%;justify-content:center}
}


/* ============================================================
   Archive-context + active-filter pills v3.3
   ============================================================ */
.gk-result-meta .gk-active-filter-list,
.gk-result-meta .gk-active-filter-slot > ul{
    min-width:0;
}
.gk-result-meta .gk-active-filter-list ul,
.gk-result-meta .gk-active-filter-slot > ul{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:7px;
    margin:0;
    padding:0;
    list-style:none;
}
.gk-result-meta .gk-active-filter-list li,
.gk-result-meta .gk-active-filter-slot > ul > li{margin:0;padding:0;list-style:none}
.gk-result-meta .gk-active-filter-list a,
.gk-result-meta .gk-active-filter-slot > ul a{
    display:inline-flex;
    align-items:center;
    gap:8px;
    min-height:34px;
    padding:6px 11px;
    border:1px solid color-mix(in srgb,var(--body-600,#4f607a) 76%,transparent);
    border-radius:999px;
    background:color-mix(in srgb,var(--body-800,#384354) 72%,var(--body-900,#323a48));
    color:var(--body-100,#eceef2);
    font-size:11.5px;
    font-weight:550;
    line-height:1.45;
    text-decoration:none;
    box-shadow:0 3px 10px rgba(8,11,18,.10),inset 0 1px 0 rgba(255,255,255,.035);
    transition:border-color .15s ease,background-color .15s ease,color .15s ease;
}
.gk-result-meta .gk-active-filter-list a:not(.gk-clear-all)::before,
.gk-result-meta .gk-active-filter-slot > ul a:not(.gk-clear-all)::before{
    content:'';
    width:6px;
    height:6px;
    border-radius:50%;
    flex:0 0 auto;
    background:var(--golden-500,#FAAF00);
    box-shadow:0 0 0 3px color-mix(in srgb,var(--golden-500,#FAAF00) 10%,transparent);
}
.gk-result-meta .gk-active-filter-list a b,
.gk-result-meta .gk-active-filter-slot > ul a b{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:18px;
    height:18px;
    border-radius:50%;
    background:color-mix(in srgb,var(--body-950,#232832) 54%,transparent);
    color:var(--body-300,#afbaca);
    font-size:14px;
    line-height:1;
    font-weight:500;
}
.gk-result-meta .gk-active-filter-list a:hover,
.gk-result-meta .gk-active-filter-slot > ul a:hover{
    border-color:color-mix(in srgb,var(--golden-500,#FAAF00) 62%,var(--body-600,#4f607a));
    background:color-mix(in srgb,var(--golden-500,#FAAF00) 7%,var(--body-800,#384354));
    color:var(--golden-500,#FAAF00);
}
.gk-result-meta .gk-active-filter-list a.gk-clear-all,
.gk-result-meta .gk-active-filter-slot > ul a.gk-clear-all{
    min-height:32px;
    padding-inline:8px;
    border-color:transparent;
    background:transparent;
    color:var(--golden-500,#FAAF00);
    box-shadow:none;
    font-weight:650;
}
.gk-result-meta .gk-active-filter-list a.gk-clear-all:hover,
.gk-result-meta .gk-active-filter-slot > ul a.gk-clear-all:hover{
    background:color-mix(in srgb,var(--golden-500,#FAAF00) 7%,transparent);
    transform:none;
}

/* ============================================================
   Golden Horizon load states v3.4
   Presentation only: loading / manual fallback / end / retry.
   ============================================================ */
.goldika-products-wrapper .gk-loading{
    width:100%;
    max-width:none;
    margin:22px 0 8px;
    padding:16px 0;
    border:0;
    border-radius:0;
    background:transparent;
    color:var(--body-300,#afbaca);
    box-shadow:none;
    text-align:center;
}

.goldika-products-wrapper .gk-horizon{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
    align-items:center;
    gap:18px;
    width:100%;
    max-width:920px;
    margin-inline:auto;
}
.goldika-products-wrapper .gk-horizon__line{
    display:block;
    min-width:24px;
    height:1px;
    border-radius:999px;
    background:var(--body-700,#414e63);
}
.goldika-products-wrapper .gk-horizon__center{
    min-width:0;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    color:var(--body-300,#afbaca);
    font-size:12.5px;
    line-height:1.85;
    text-align:center;
}
.goldika-products-wrapper .gk-horizon__text{
    min-width:0;
    overflow-wrap:anywhere;
}
.goldika-products-wrapper .gk-horizon__orb{
    flex:0 0 auto;
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border:1px solid color-mix(in srgb,var(--golden-500,#FAAF00) 58%,var(--body-700,#414e63));
    border-radius:50%;
    background:var(--body-900,#323a48);
    color:var(--golden-500,#FAAF00);
    box-shadow:0 0 0 5px color-mix(in srgb,var(--golden-500,#FAAF00) 5%,transparent);
}
.goldika-products-wrapper .gk-horizon__orb svg{width:19px;height:19px}
.goldika-products-wrapper .gk-spinner{
    width:18px;
    height:18px;
    margin:0;
    border:2px solid var(--body-700,#414e63);
    border-top-color:var(--golden-500,#FAAF00);
    border-radius:50%;
    animation:gk-spin .8s linear infinite;
}

/* Manual fallback keeps the horizon and only the center reads as an action. */
.goldika-products-wrapper .gk-load-trigger--fallback{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
    align-items:center;
    gap:18px;
    width:100%;
    max-width:920px;
    min-height:0;
    margin:22px auto 8px;
    padding:16px 0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    color:inherit;
    cursor:pointer;
}
.goldika-products-wrapper .gk-load-trigger__center{display:flex;align-items:center;justify-content:center;min-width:0}
.goldika-products-wrapper .gk-load-trigger__button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:9px 16px;
    border:1px solid color-mix(in srgb,var(--golden-500,#FAAF00) 48%,var(--body-700,#414e63));
    border-radius:12px;
    background:color-mix(in srgb,var(--golden-500,#FAAF00) 7%,var(--body-900,#323a48));
    color:var(--golden-400,#ffd31b);
    font-size:12px;
    font-weight:700;
    line-height:1.6;
    transition:background-color .18s ease,color .18s ease,border-color .18s ease,transform .18s ease;
    pointer-events:none;
}
.goldika-products-wrapper .gk-load-trigger--fallback:hover .gk-load-trigger__button,
.goldika-products-wrapper .gk-load-trigger--fallback:focus-visible .gk-load-trigger__button{
    border-color:var(--golden-500,#FAAF00);
    background:var(--golden-500,#FAAF00);
    color:var(--body-950,#232832);
    transform:translateY(-1px);
}
.goldika-products-wrapper .gk-load-trigger--fallback:focus-visible{
    outline:0;
}
.goldika-products-wrapper .gk-load-trigger--fallback:focus-visible .gk-load-trigger__button{
    box-shadow:0 0 0 3px color-mix(in srgb,var(--golden-500,#FAAF00) 22%,transparent);
}

/* End state is intentionally unboxed and quiet. */
.goldika-products-wrapper .gk-no-more.show{
    display:block;
    width:100%;
    margin:24px 0 8px;
    padding:16px 0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    text-align:center;
}
.goldika-products-wrapper .gk-horizon--end .gk-horizon__center{
    flex-direction:column;
    gap:9px;
}
.goldika-products-wrapper .gk-horizon--end .gk-horizon__orb{
    border-color:var(--golden-500,#FAAF00);
    background:var(--golden-500,#FAAF00);
    color:var(--body-950,#232832);
    box-shadow:0 0 0 5px color-mix(in srgb,var(--golden-500,#FAAF00) 7%,transparent);
}
.goldika-products-wrapper .gk-horizon__copy{min-width:0;text-align:center}
.goldika-products-wrapper .gk-horizon__copy strong{
    display:block;
    color:var(--body-50,#f6f7f9);
    font-size:13px;
    line-height:1.8;
    font-weight:700;
}
.goldika-products-wrapper .gk-horizon__copy span{
    display:block;
    margin-top:1px;
    color:var(--body-400,#8395ad);
    font-size:11.5px;
    line-height:1.8;
}
.goldika-products-wrapper .gk-scroll-top{
    width:auto;
    height:auto;
    min-height:40px;
    margin:1px 0 0;
    padding:8px 13px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    border:1px solid color-mix(in srgb,var(--golden-500,#FAAF00) 48%,var(--body-700,#414e63));
    border-radius:12px;
    background:color-mix(in srgb,var(--golden-500,#FAAF00) 7%,var(--body-900,#323a48));
    color:var(--golden-400,#ffd31b);
    font:inherit;
    font-size:11.5px;
    font-weight:700;
    cursor:pointer;
    box-shadow:none;
    transition:background-color .18s ease,color .18s ease,border-color .18s ease,transform .18s ease;
}
.goldika-products-wrapper .gk-scroll-top svg{width:17px;height:17px}
.goldika-products-wrapper .gk-scroll-top:hover,
.goldika-products-wrapper .gk-scroll-top:focus-visible{
    border-color:var(--golden-500,#FAAF00);
    background:var(--golden-500,#FAAF00);
    color:var(--body-950,#232832);
    transform:translateY(-1px);
    box-shadow:none;
}
.goldika-products-wrapper .gk-scroll-top:focus-visible{
    outline:3px solid color-mix(in srgb,var(--golden-500,#FAAF00) 22%,transparent);
    outline-offset:3px;
}

/* Error is the only boxed state, by design. */
.goldika-products-wrapper .gk-load-error{
    width:100%;
    max-width:none;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px 16px;
    flex-wrap:wrap;
    margin:0;
    padding:16px;
    background:var(--body-900,#323a48);
    border-radius:16px;
    border:2px dashed var(--body-500,#637894);
    color:var(--body-100,#eceef2);
    box-shadow:none;
    text-align:right;
}
.goldika-products-wrapper .gk-load-error__icon{
    width:38px;
    height:38px;
    flex:0 0 auto;
    display:grid;
    place-items:center;
    border:1px solid color-mix(in srgb,var(--error-500,#f43a0c) 55%,var(--body-600,#4f607a));
    border-radius:50%;
    background:color-mix(in srgb,var(--error-500,#f43a0c) 7%,var(--body-900,#323a48));
    color:#ff8d73;
    font-weight:800;
}
.goldika-products-wrapper .gk-load-error p{
    min-width:0;
    flex:0 1 auto;
    margin:0;
    color:inherit;
    overflow-wrap:anywhere;
}
.goldika-products-wrapper .gk-retry-load{
    min-height:40px;
    padding:8px 13px;
    border:1px solid var(--golden-500,#FAAF00);
    border-radius:11px;
    background:transparent;
    color:var(--golden-400,#ffd31b);
    cursor:pointer;
    font:inherit;
    font-size:12px;
    font-weight:700;
}
.goldika-products-wrapper .gk-retry-load:hover,
.goldika-products-wrapper .gk-retry-load:focus-visible{
    background:var(--golden-500,#FAAF00);
    color:var(--body-950,#232832);
}
.goldika-products-wrapper .gk-retry-load:focus-visible{
    outline:3px solid color-mix(in srgb,var(--golden-500,#FAAF00) 22%,transparent);
    outline-offset:3px;
}

@media(max-width:620px){
    .goldika-products-wrapper .gk-horizon,
    .goldika-products-wrapper .gk-load-trigger--fallback{
        grid-template-columns:minmax(0,1fr) minmax(180px,72%) minmax(0,1fr);
        gap:10px;
    }
    .goldika-products-wrapper .gk-horizon__line{min-width:0}
    .goldika-products-wrapper .gk-horizon__center{white-space:normal;flex-wrap:wrap}
    .goldika-products-wrapper .gk-horizon--end .gk-horizon__center{width:100%}
    .goldika-products-wrapper .gk-load-error{justify-content:flex-start}
    .goldika-products-wrapper .gk-load-error .gk-retry-load{margin-inline-start:auto}
}
@media(max-width:360px){
    .goldika-products-wrapper .gk-horizon,
    .goldika-products-wrapper .gk-load-trigger--fallback{
        grid-template-columns:minmax(0,1fr) minmax(160px,76%) minmax(0,1fr);
    }
}
@media(prefers-reduced-motion:reduce){
    .goldika-products-wrapper .gk-spinner{animation:none;border-color:var(--golden-500,#FAAF00)}
    .goldika-products-wrapper .gk-load-trigger__button,
    .goldika-products-wrapper .gk-scroll-top{transition:none}
}


/* ============================================================
   Filter trigger + active-pill polish v3.5
   Deliberately does not touch Golden Horizon loading/end states.
   ============================================================ */
#gmf-filter-trigger{
    position:relative;
    background:var(--golden-500,#FAAF00);
    border-color:var(--golden-500,#FAAF00);
    color:var(--body-950,#232832);
    font-weight:750;
    box-shadow:0 5px 14px color-mix(in srgb,var(--golden-500,#FAAF00) 11%,transparent);
}
#gmf-filter-trigger:hover{
    background:color-mix(in srgb,var(--golden-500,#FAAF00) 90%,white);
    color:var(--body-950,#232832);
    border-color:color-mix(in srgb,var(--golden-500,#FAAF00) 90%,white);
}
#gmf-filter-trigger .gk-filter-count{
    min-width:21px;
    height:21px;
    padding:0 6px;
    display:inline-grid;
    place-items:center;
    border-radius:999px;
    background:color-mix(in srgb,var(--body-950,#232832) 16%,transparent);
    color:var(--body-950,#232832);
    font-size:10px;
    font-weight:850;
}
#gmf-filter-trigger .gk-filter-count[hidden]{display:none!important}
#gmf-filter-trigger.has-active-filters{
    box-shadow:0 0 0 3px color-mix(in srgb,var(--golden-500,#FAAF00) 12%,transparent),0 5px 14px color-mix(in srgb,var(--golden-500,#FAAF00) 12%,transparent);
}
.gk-result-meta .gk-active-filter-list a:not(.gk-clear-all),
.gk-result-meta .gk-active-filter-slot > ul a:not(.gk-clear-all){
    min-height:33px;
    padding:5px 10px;
    background:color-mix(in srgb,var(--body-800,#384354) 82%,var(--body-900,#323a48));
    border-color:color-mix(in srgb,var(--body-600,#4f607a) 74%,transparent);
}
.gk-result-meta .gk-active-filter-list a:not(.gk-clear-all)::before,
.gk-result-meta .gk-active-filter-slot > ul a:not(.gk-clear-all)::before{
    box-shadow:none;
}
.gk-result-meta .gk-active-filter-list a b,
.gk-result-meta .gk-active-filter-slot > ul a b{
    width:19px;
    height:19px;
    border:1px solid color-mix(in srgb,var(--body-600,#4f607a) 52%,transparent);
    background:color-mix(in srgb,var(--body-950,#232832) 58%,transparent);
}
@media(max-width:767px){
    .gk-result-meta .gk-active-filter-slot{overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
    .gk-result-meta .gk-active-filter-list ul{flex-wrap:nowrap;width:max-content;max-width:none}
    .gk-result-meta .gk-active-filter-list a{white-space:nowrap}
}

/* ============================================================
   First-page catalog refresh overlay — v3.6
   Used only for filter / stock / sorting refreshes. Infinite-scroll
   Golden Horizon loading and end states remain unchanged.
   ============================================================ */
.goldika-products-wrapper .gk-refresh-overlay {
    position: absolute;
    inset: 0;
    z-index: 48;
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: color-mix(in srgb, var(--body-950, #232832) 76%, transparent);
    transition: opacity 140ms ease, visibility 0s linear 140ms;
}

.goldika-products-wrapper.is-grid-refreshing .gk-refresh-overlay {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 140ms ease;
}

.goldika-products-wrapper .gk-refresh-overlay__status {
    position: sticky;
    top: 50%;
    right: 50%;
    translate: 50% -50%;
    width: max-content;
    max-width: calc(100% - 32px);
    margin: clamp(64px, 16vh, 150px) auto 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid color-mix(in srgb, var(--golden-500, #FAAF00) 32%, var(--body-700, #4b586e));
    border-radius: 999px;
    background: var(--body-900, #323a48);
    color: var(--body-50, #f8fafc);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
    font-size: 13px;
    font-weight: 750;
}

.goldika-products-wrapper .gk-refresh-spinner {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 2px solid color-mix(in srgb, var(--body-500, #7c8aa0) 62%, transparent);
    border-top-color: var(--golden-500, #FAAF00);
    border-radius: 50%;
    animation: gk-refresh-spin 720ms linear infinite;
}

@keyframes gk-refresh-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
    .goldika-products-wrapper .gk-refresh-overlay__status {
        max-width: calc(100% - 24px);
        margin-top: clamp(48px, 13vh, 110px);
        padding: 9px 12px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .goldika-products-wrapper .gk-refresh-overlay,
    .goldika-products-wrapper.is-grid-refreshing .gk-refresh-overlay {
        transition: none;
    }
    .goldika-products-wrapper .gk-refresh-spinner {
        animation: none;
        border-color: var(--body-600, #66748b);
        border-top-color: var(--golden-500, #FAAF00);
    }
}
