/* ============================================================
   HBE Shop Filter System — shop-filter.css
   Mobile-first, RTL, dark navy + gold theme
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --hf-gold:        #D4AF37;
    --hf-gold-light:  #f0d878;
    --hf-gold-dim:    rgba(212,175,55,0.18);
    --hf-gold-border: rgba(212,175,55,0.28);
    --hf-navy-deep:   #080e1a;
    --hf-navy:        #0a1628;
    --hf-surface:     #0d1f3c;
    --hf-surface2:    #112444;
    --hf-border:      rgba(255,255,255,0.08);
    --hf-text:        #e2e8f0;
    --hf-text-muted:  #94a3b8;
    --hf-text-dim:    #64748b;
    --hf-radius:      14px;
    --hf-radius-sm:   8px;
    --hf-font:        'rabar_021', 'Segoe UI', Tahoma, sans-serif;
    --hf-transition:  0.22s cubic-bezier(0.4,0,0.2,1);
    --hf-drawer-w:    340px;
    --hf-mobile-nav-h: 72px;
}

/* ── Toolbar ────────────────────────────────────────────────── */
.hf-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    font-family: var(--hf-font);
}

.hf-toolbar-start {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ── Filter Button ──────────────────────────────────────────── */
.hf-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    background: linear-gradient(135deg, var(--hf-surface), var(--hf-surface2));
    border: 1px solid var(--hf-gold-border);
    border-radius: var(--hf-radius-sm);
    color: var(--hf-text);
    font-family: var(--hf-font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--hf-transition);
    position: relative;
    white-space: nowrap;
}
.hf-filter-btn svg { flex-shrink: 0; }
.hf-filter-btn:hover {
    background: linear-gradient(135deg, var(--hf-surface2), #163060);
    border-color: var(--hf-gold);
    color: var(--hf-gold);
    box-shadow: 0 4px 16px rgba(212,175,55,0.2);
}
.hf-filter-btn.is-active {
    background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.08));
    border-color: var(--hf-gold);
    color: var(--hf-gold);
}

.hf-active-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: var(--hf-gold);
    color: #0a1628;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.hf-results-count {
    font-family: var(--hf-font);
    font-size: 0.84rem;
    color: var(--hf-text-muted);
}

/* ── Sort Dropdown ──────────────────────────────────────────── */
.hf-sort-wrapper {
    position: relative;
    font-family: var(--hf-font);
}

.hf-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    background: linear-gradient(135deg, var(--hf-surface), var(--hf-surface2));
    border: 1px solid var(--hf-gold-border);
    border-radius: var(--hf-radius-sm);
    color: var(--hf-text);
    font-family: var(--hf-font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--hf-transition);
    white-space: nowrap;
    min-width: 150px;
    justify-content: space-between;
}
.hf-sort-btn:hover {
    border-color: var(--hf-gold);
    color: var(--hf-gold);
    box-shadow: 0 4px 16px rgba(212,175,55,0.15);
}
.hf-sort-btn.open {
    border-color: var(--hf-gold);
    color: var(--hf-gold);
    box-shadow: 0 4px 16px rgba(212,175,55,0.15);
}
.hf-sort-chevron {
    transition: transform var(--hf-transition);
    flex-shrink: 0;
    opacity: 0.7;
}
.hf-sort-btn.open .hf-sort-chevron { transform: rotate(180deg); }

.hf-sort-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-end: 0;
    min-width: 200px;
    background: #0d1f3c;
    border: 1px solid var(--hf-gold-border);
    border-radius: var(--hf-radius-sm);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    list-style: none;
    padding: 0.35rem 0;
    margin: 0;
    z-index: 200;
    overflow: hidden;
    animation: hfMenuIn 0.18s ease forwards;
}
.hf-sort-menu.open { display: block; }

@keyframes hfMenuIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hf-sort-item {
    padding: 0.62rem 1.1rem;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--hf-text-muted);
    font-family: var(--hf-font);
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.hf-sort-item:hover {
    background: rgba(212,175,55,0.1);
    color: var(--hf-gold);
}
.hf-sort-item.active {
    color: var(--hf-gold);
    font-weight: 700;
    background: rgba(212,175,55,0.08);
}
.hf-sort-item.active::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hf-gold);
    flex-shrink: 0;
}
.hf-sort-item:not(.active)::before { content: ''; width: 6px; height: 6px; flex-shrink: 0; }

/* ── Overlay ────────────────────────────────────────────────── */
.hf-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1400;
    animation: hfOverlayIn 0.25s ease forwards;
}
.hf-overlay.open { display: block; }

@keyframes hfOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Drawer (mobile: bottom-sheet) ─────────────────────────── */
.hf-drawer {
    position: fixed;
    bottom: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    width: 100%;
    max-height: 88vh;
    background: linear-gradient(180deg, #0c1a30 0%, #080e1a 100%);
    border-top: 1px solid var(--hf-gold-border);
    border-radius: 20px 20px 0 0;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.36s cubic-bezier(0.32,0.72,0,1);
    will-change: transform;
    font-family: var(--hf-font);
    box-shadow: 0 -20px 60px rgba(0,0,0,0.6);
}
.hf-drawer.open {
    transform: translateY(0);
}

/* Drag handle visual cue (mobile) */
.hf-drawer::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

/* ── Drawer Header ──────────────────────────────────────────── */
.hf-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--hf-border);
    flex-shrink: 0;
}

.hf-drawer-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hf-text);
}
.hf-drawer-title svg { color: var(--hf-gold); }

.hf-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--hf-border);
    color: var(--hf-text-muted);
    cursor: pointer;
    transition: all var(--hf-transition);
}
.hf-drawer-close:hover {
    background: rgba(239,68,68,0.15);
    border-color: rgba(239,68,68,0.4);
    color: #f87171;
}

/* ── Drawer Body ────────────────────────────────────────────── */
.hf-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0 calc(6.5rem + var(--hf-mobile-nav-h) + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: calc(6.5rem + var(--hf-mobile-nav-h));
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.hf-drawer-body::-webkit-scrollbar { width: 4px; }
.hf-drawer-body::-webkit-scrollbar-track { background: transparent; }
.hf-drawer-body::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.3); border-radius: 2px; }

/* ── Filter Sections ────────────────────────────────────────── */
.hf-section {
    border-bottom: 1px solid var(--hf-border);
}
.hf-section:last-child { border-bottom: none; }

.hf-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.9rem 1.25rem;
    background: none;
    border: none;
    color: var(--hf-text);
    font-family: var(--hf-font);
    font-size: 0.94rem;
    font-weight: 700;
    cursor: pointer;
    text-align: start;
    transition: color var(--hf-transition);
}
.hf-section-toggle:hover { color: var(--hf-gold); }
.hf-section-toggle:hover .hf-chevron { stroke: var(--hf-gold); }

.hf-section-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.hf-chevron {
    flex-shrink: 0;
    transition: transform var(--hf-transition);
    stroke: var(--hf-text-dim);
}
.hf-section-body.open + .hf-section-toggle .hf-chevron,
.hf-section-toggle[aria-expanded="true"] .hf-chevron { transform: rotate(180deg); }

.hf-section-body {
    display: none;
    padding: 0.25rem 1.25rem 1rem;
    animation: hfBodyIn 0.2s ease forwards;
}
.hf-section-body.open { display: block; }

@keyframes hfBodyIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hf-loading {
    padding: 0.5rem 0;
    color: var(--hf-text-dim);
    font-size: 0.85rem;
    font-family: var(--hf-font);
}

/* ── Custom Checkboxes ──────────────────────────────────────── */
.hf-check-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: all 0.15s ease;
    border-radius: 6px;
}
.hf-check-item:hover { background: rgba(212,175,55,0.05); margin: 0 -0.5rem; padding-inline: 0.5rem; }

.hf-check {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.hf-checkmark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 2px solid rgba(212,175,55,0.35);
    background: rgba(255,255,255,0.04);
    transition: all 0.18s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hf-check:checked ~ .hf-checkmark {
    background: linear-gradient(135deg, var(--hf-gold), #b8960c);
    border-color: var(--hf-gold);
    box-shadow: 0 0 10px rgba(212,175,55,0.4);
}
.hf-check:checked ~ .hf-checkmark::after {
    content: '';
    width: 5px;
    height: 9px;
    border: 2px solid #0a1628;
    border-top: none;
    border-inline-start: none;
    transform: rotate(45deg) translate(-1px,-1px);
    display: block;
}

.hf-check-label {
    font-size: 0.88rem;
    color: var(--hf-text-muted);
    font-family: var(--hf-font);
    transition: color 0.15s ease;
    line-height: 1.4;
}
.hf-check:checked ~ .hf-checkmark ~ .hf-check-label,
.hf-check:checked ~ .hf-checkmark + .hf-check-label,
.hf-check-item:has(.hf-check:checked) .hf-check-label { color: var(--hf-text); }

/* Star ratings */
.hf-stars {
    color: var(--hf-gold);
    font-size: 0.82rem;
    letter-spacing: 1px;
    flex-shrink: 0;
}

/* Category children (sub-categories indented) */
.hf-cat-children {
    padding-inline-start: 1.5rem;
    border-inline-start: 2px solid var(--hf-gold-dim);
    margin-inline-start: 0.6rem;
    margin-top: 0.2rem;
    margin-bottom: 0.4rem;
}
.hf-cat-parent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.hf-cat-expand {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--hf-text-dim);
    padding: 0.2rem;
    border-radius: 4px;
    transition: all 0.15s ease;
    flex-shrink: 0;
    line-height: 0;
}
.hf-cat-expand:hover { color: var(--hf-gold); }
.hf-cat-expand.expanded svg { transform: rotate(180deg); }
.hf-cat-expand svg { transition: transform var(--hf-transition); }

/* Filter rows: checkbox + real link side-by-side (used for categories, brands, new, discount, rating, price) */
.hf-cat-row,
.hf-filter-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s ease;
    flex: 1;
}
.hf-cat-row:hover,
.hf-filter-row:hover {
    background: rgba(212,175,55,0.05);
    margin: 0 -0.5rem;
    padding-inline: 0.5rem;
}
.hf-cat-row .hf-check-item,
.hf-filter-row .hf-check-item {
    padding: 0;
    margin: 0;
}
.hf-cat-row .hf-check-item:hover,
.hf-filter-row .hf-check-item:hover {
    background: transparent;
    margin: 0;
    padding-inline: 0;
}
.hf-cat-link,
.hf-filter-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    color: var(--hf-text-muted);
    font-family: var(--hf-font);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.15s ease;
    flex: 1;
}
.hf-cat-row:hover .hf-cat-link,
.hf-filter-row:hover .hf-filter-link,
.hf-cat-link:hover,
.hf-filter-link:hover { color: var(--hf-gold); }
.hf-cat-row:has(.hf-check:checked) .hf-cat-link,
.hf-filter-row:has(.hf-check:checked) .hf-filter-link { color: var(--hf-text); }

/* Search inside sections */
.hf-section-search {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--hf-gold-border);
    border-radius: var(--hf-radius-sm);
    color: var(--hf-text);
    font-family: var(--hf-font);
    font-size: 0.84rem;
    padding: 0.45rem 0.75rem;
    margin-bottom: 0.75rem;
    outline: none;
    transition: border-color var(--hf-transition);
}
.hf-section-search:focus { border-color: rgba(212,175,55,0.55); }
.hf-section-search::placeholder { color: var(--hf-text-dim); font-family: var(--hf-font); }

/* ── Price Section ──────────────────────────────────────────── */
.hf-custom-price {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--hf-border);
}
.hf-price-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.hf-price-label {
    font-size: 0.78rem;
    color: var(--hf-text-dim);
    font-family: var(--hf-font);
}
.hf-price-sep {
    color: var(--hf-text-dim);
    padding-bottom: 0.45rem;
    text-align: center;
}
.hf-price-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--hf-gold-border);
    border-radius: var(--hf-radius-sm);
    color: var(--hf-text);
    font-family: var(--hf-font);
    font-size: 0.86rem;
    padding: 0.48rem 0.65rem;
    outline: none;
    transition: border-color var(--hf-transition), box-shadow var(--hf-transition);
    -moz-appearance: textfield;
    appearance: textfield;
}
.hf-price-input::-webkit-outer-spin-button,
.hf-price-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hf-price-input:focus {
    border-color: rgba(212,175,55,0.55);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

.hf-currency-note {
    margin-top: 0.6rem;
    font-size: 0.76rem;
    color: var(--hf-text-dim);
    font-family: var(--hf-font);
    text-align: center;
}

/* ── Drawer Footer ──────────────────────────────────────────── */
.hf-drawer-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    margin-top: 0;
    margin-bottom: calc(var(--hf-mobile-nav-h) + 0.75rem);
    border-top: 1px solid var(--hf-border);
    background: linear-gradient(180deg, rgba(8,14,26,0.92) 0%, rgba(8,14,26,0.98) 70%);
    flex-shrink: 0;
    position: sticky;
    bottom: calc(var(--hf-mobile-nav-h) + env(safe-area-inset-bottom, 0px));
    inset-inline: 0;
    z-index: 5;
    box-shadow: 0 -6px 25px rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
}

.hf-reset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 0.75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--hf-border);
    border-radius: var(--hf-radius-sm);
    color: var(--hf-text-muted);
    font-family: var(--hf-font);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--hf-transition);
}
.hf-reset-btn:hover {
    background: rgba(239,68,68,0.1);
    border-color: rgba(239,68,68,0.35);
    color: #f87171;
}

.hf-apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 0.75rem;
    background: linear-gradient(135deg, var(--hf-gold), #b8960c);
    border: none;
    border-radius: var(--hf-radius-sm);
    color: #0a1628;
    font-family: var(--hf-font);
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    transition: all var(--hf-transition);
    box-shadow: 0 4px 16px rgba(212,175,55,0.25);
}
.hf-apply-btn:hover {
    background: linear-gradient(135deg, var(--hf-gold-light), var(--hf-gold));
    box-shadow: 0 6px 20px rgba(212,175,55,0.4);
    transform: translateY(-1px);
}
.hf-apply-btn:active { transform: translateY(0); }

/* ── Products area ──────────────────────────────────────────── */
.shop-products-area { width: 100%; }

/* ── Skeleton loaders ───────────────────────────────────────── */
@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.hf-skeleton {
    background: linear-gradient(90deg,
        rgba(255,255,255,0.04) 25%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0.04) 75%);
    background-size: 400px 100%;
    animation: shimmer 1.4s infinite linear;
    border-radius: var(--hf-radius-sm);
}

/* ── Desktop overrides (≥992px: drawer becomes right sidebar modal) ── */
@media (min-width: 992px) {
    .hf-toolbar {
        position: sticky;
        top: 88px;
        z-index: 15;
        background: linear-gradient(135deg, rgba(10,22,40,0.98), rgba(8,14,26,0.98));
        border: 1px solid var(--hf-gold-border);
        border-radius: var(--hf-radius);
        padding: 0.65rem 1.1rem;
        margin-bottom: 1.75rem;
        backdrop-filter: blur(8px);
        box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    }

    .hf-filter-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.92rem;
    }
    .hf-sort-btn {
        min-width: 180px;
        font-size: 0.92rem;
    }
    .hf-sort-menu {
        min-width: 220px;
    }

    /* Desktop: centered modal panel instead of bottom-sheet */
    .hf-drawer {
        inset: 0;
        width: var(--hf-drawer-w);
        max-height: none;
        height: 100%;
        max-width: var(--hf-drawer-w);
        inset-inline-start: auto;
        inset-inline-end: 0;
        top: 0;
        bottom: 0;
        border-top: none;
        border-radius: 0;
        border-inline-start: 1px solid var(--hf-gold-border);
        transform: translateX(100%);
        transition: transform 0.32s cubic-bezier(0.32,0.72,0,1);
        box-shadow: -20px 0 60px rgba(0,0,0,0.5);
    }

    /* RTL: anchor to right side, slides in from right */
    [dir="rtl"] .hf-drawer {
        inset-inline-end: auto;
        inset-inline-start: 0;
        border-inline-start: none;
        border-inline-end: 1px solid var(--hf-gold-border);
        transform: translateX(100%);
    }

    .hf-drawer.open {
        transform: translateX(0) !important;
    }

    .hf-drawer::before { display: none; }

    .hf-drawer-body {
        padding: 0.5rem 0 1.5rem;
        scroll-padding-bottom: 1.5rem;
    }

    .hf-sort-menu { inset-inline-end: 0; inset-inline-start: auto; }
}

/* ── Tablet tweaks (640–991px) ──────────────────────────────── */
@media (min-width: 640px) {
    .hf-drawer-footer {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Large desktop (≥1280px) ────────────────────────────────── */
@media (min-width: 1280px) {
    :root { --hf-drawer-w: 360px; }
}

/* ============================================================
   HBE Shop Pagination — navy + gold pill design
   ============================================================ */
.shop-pagination-wrapper {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-family: var(--hf-font);
}

.shop-pagination-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.shop-pagination-info {
    font-size: 0.88rem;
    color: var(--hf-text-muted);
    font-weight: 600;
}

.shop-pagination-size {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--hf-surface), var(--hf-surface2));
    border: 1px solid var(--hf-gold-border);
    border-radius: 999px;
    padding: 0.35rem 0.45rem;
}

.shop-page-size-label {
    font-size: 0.82rem;
    color: var(--hf-text-muted);
    padding: 0 0.4rem;
}

.shop-page-size-btn {
    min-width: 38px;
    height: 34px;
    padding: 0 0.7rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--hf-text-muted);
    font-family: var(--hf-font);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--hf-transition);
}

.shop-page-size-btn:hover {
    color: var(--hf-gold);
    background: rgba(212, 175, 55, 0.1);
}

.shop-page-size-btn.active {
    background: linear-gradient(135deg, var(--hf-gold), var(--hf-gold-light));
    color: var(--hf-navy);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

/* Main pill pagination bar */
.shop-pagination {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--hf-surface), var(--hf-surface2));
    border: 1px solid var(--hf-gold-border);
    border-radius: 999px;
    padding: 0.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.shop-pagination-btn,
.shop-pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.85rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--hf-text);
    font-family: var(--hf-font);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--hf-transition);
    white-space: nowrap;
}

.shop-pagination-btn:hover,
.shop-pagination-page:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--hf-gold);
}

.shop-pagination-btn:disabled,
.shop-pagination-btn[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    color: var(--hf-text-dim);
}

.shop-pagination-btn:disabled:hover,
.shop-pagination-btn[aria-disabled="true"]:hover {
    background: transparent;
    color: var(--hf-text-dim);
}

.shop-pagination-page.active {
    background: linear-gradient(135deg, var(--hf-gold), var(--hf-gold-light));
    color: var(--hf-navy);
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
    transform: scale(1.05);
}

.shop-pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    color: var(--hf-text-muted);
    font-size: 0.95rem;
    letter-spacing: 2px;
    pointer-events: none;
}

.shop-pagination-prev,
.shop-pagination-next {
    padding: 0 1.25rem;
    gap: 0.45rem;
    font-weight: 700;
}

.shop-pagination-next {
    background: linear-gradient(135deg, var(--hf-gold), var(--hf-gold-light));
    color: var(--hf-navy);
}

.shop-pagination-next:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--hf-gold-light), #f8e09a);
    color: var(--hf-navy);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.4);
    transform: translateY(-1px);
}

.shop-pagination-arrow {
    font-size: 0.8rem;
}

/* Compact variant support */
.shop-pagination-compact {
    gap: 0.75rem;
}

.shop-pagination-compact .shop-pagination-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--hf-gold-border);
}

.shop-pagination-compact .shop-pagination-next {
    background: linear-gradient(135deg, var(--hf-gold), var(--hf-gold-light));
    border-color: transparent;
}

.shop-pagination-compact .shop-pagination-current {
    font-size: 0.95rem;
    color: var(--hf-text);
    font-weight: 700;
    min-width: 80px;
    text-align: center;
}

/* Mobile */
@media (max-width: 640px) {
    .shop-pagination-bar {
        justify-content: center;
    }

    .shop-pagination-info {
        text-align: center;
        width: 100%;
    }

    .shop-pagination {
        gap: 0.3rem;
        padding: 0.4rem;
    }

    .shop-pagination-btn,
    .shop-pagination-page {
        min-width: 36px;
        height: 38px;
        padding: 0 0.6rem;
        font-size: 0.85rem;
    }

    .shop-pagination-prev,
    .shop-pagination-next {
        padding: 0 0.8rem;
    }

    .shop-pagination-prev span,
    .shop-pagination-next span {
        display: none;
    }

    .shop-page-size-btn {
        min-width: 34px;
        height: 32px;
        padding: 0 0.55rem;
    }
}

/* Desktop */
@media (min-width: 992px) {
    .shop-pagination-wrapper {
        margin-top: 3rem;
    }
}
