/* ============================================
   AppGold Webstore — Dark Gold Theme
   Mobile-first | RTL | WCAG AA
   ============================================ */

:root {
    /* Background */
    --ws-bg-primary: #0f0f1a;
    --ws-bg-surface: #1a1a2e;
    --ws-bg-header: #12121f;

    /* Gold */
    --ws-gold: #DAB04D;
    --ws-gold-light: #F0D878;
    --ws-gold-dark: #8B7535;

    /* Text */
    --ws-text-primary: #F5F0E8;
    --ws-text-secondary: #BFB49A;

    /* Status */
    --ws-success: #4CAF50;
    --ws-error: #F44336;
    --ws-warning: #FF9800;

    /* Spacing base: 4px */
    --ws-space-1: 4px;
    --ws-space-2: 8px;
    --ws-space-3: 12px;
    --ws-space-4: 16px;
    --ws-space-5: 20px;
    --ws-space-6: 24px;

    /* Radius */
    --ws-radius: 12px;
    --ws-radius-card: 12px;
    --ws-radius-btn: 8px;

    /* Transition */
    --ws-transition: 150ms ease;
}

/* ---- Light Mode ---- */
.ws-light {
    --ws-bg-primary: #FAFAF5;
    --ws-bg-surface: #FFFFFF;
    --ws-bg-header: #F5F0E8;
    --ws-gold: #B8941F;
    --ws-gold-light: #DAB04D;
    --ws-gold-dark: #8B7535;
    --ws-text-primary: #1a1a2e;
    --ws-text-secondary: #5a5540;
}

/* ---- Base ---- */
.ws-page {
    background: var(--ws-bg-primary);
    color: var(--ws-text-primary);
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Tabular numbers for prices */
.ws-price {
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
    color: var(--ws-gold-light);
    font-weight: 700;
}

.ws-price-lg { font-size: 32px; }
.ws-price-xl { font-size: 40px; }

/* ---- PriceBar ---- */
.ws-pricebar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--ws-bg-header);
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ws-space-5);
    padding: 0 var(--ws-space-3);
    border-bottom: 1px solid var(--ws-gold-dark);
    font-size: 16px;
    overflow: hidden;
}

.ws-pricebar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.ws-pricebar-label {
    color: var(--ws-text-secondary);
    font-size: 14px;
}

.ws-pricebar-value {
    color: var(--ws-gold-light);
    font-weight: 700;
    font-size: 19px;
    font-feature-settings: 'tnum';
}

.ws-pricebar-arrow-up { color: var(--ws-success); }
.ws-pricebar-arrow-down { color: var(--ws-error); }

.ws-pricebar-stale { border-bottom-color: var(--ws-warning); }
.ws-pricebar-expired {
    background: var(--ws-bg-surface);
    justify-content: center;
}

/* Mobile small: show only 21K */
@media (max-width: 340px) {
    .ws-pricebar-secondary { display: none; }
}

/* ---- Hero ---- */
.ws-hero {
    padding: var(--ws-space-6) var(--ws-space-3);
    text-align: center;
    background: linear-gradient(180deg, var(--ws-bg-header) 0%, var(--ws-bg-primary) 100%);
}

.ws-hero-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid var(--ws-gold);
    object-fit: cover;
    margin: 0 auto var(--ws-space-3);
}

.ws-hero-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--ws-gold);
    margin-bottom: var(--ws-space-1);
}

.ws-hero-desc {
    color: var(--ws-text-secondary);
    font-size: 16px;
    margin-bottom: var(--ws-space-3);
}

.ws-hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--ws-space-4);
    font-size: 14px;
    color: var(--ws-text-secondary);
}

/* ---- Cards Grid ---- */
.ws-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--ws-space-2);
    padding: var(--ws-space-2);
}

@media (min-width: 600px) {
    .ws-grid { grid-template-columns: repeat(2, 1fr); gap: var(--ws-space-3); padding: var(--ws-space-3); }
}

@media (min-width: 900px) {
    .ws-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Product Card ---- */
.ws-card {
    background: var(--ws-bg-surface);
    border-radius: var(--ws-radius-card);
    overflow: hidden;
    border: 1px solid transparent;
    transition: border-color var(--ws-transition), transform var(--ws-transition);
    position: relative;
}

.ws-card:active {
    transform: scale(0.98);
    border-color: var(--ws-gold-dark);
}

@media (hover: hover) {
    .ws-card:hover {
        border-color: var(--ws-gold-dark);
        transform: scale(0.98);
    }
}

.ws-card-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: var(--ws-bg-primary);
    overflow: hidden;
}

.ws-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 1px solid var(--ws-gold-dark);
}

.ws-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ws-gold-dark);
    font-size: 48px;
    border-bottom: 1px solid var(--ws-gold-dark);
}

.ws-card-badge {
    position: absolute;
    top: var(--ws-space-2);
    right: var(--ws-space-2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.ws-card-badge-sold {
    background: var(--ws-error);
    color: #fff;
}

.ws-card-badge-set {
    background: var(--ws-gold);
    color: var(--ws-bg-primary);
}

.ws-card-badge-warning {
    background: var(--ws-warning);
    color: var(--ws-bg-primary);
}

.ws-card-body {
    padding: var(--ws-space-3);
}

.ws-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--ws-text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--ws-space-1);
}

.ws-card-meta {
    font-size: 14px;
    color: var(--ws-text-secondary);
    margin-bottom: var(--ws-space-2);
}

.ws-card-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

/* ---- Set Card Extras ---- */
.ws-set-thumbs {
    position: absolute;
    bottom: var(--ws-space-2);
    right: var(--ws-space-2);
    display: flex;
    gap: 4px;
}

.ws-set-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--ws-gold);
    object-fit: cover;
    background: var(--ws-bg-surface);
}

.ws-set-thumb-more {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--ws-gold-dark);
    background: var(--ws-bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--ws-gold);
}

.ws-set-components {
    font-size: 13px;
    color: var(--ws-text-secondary);
    margin-bottom: var(--ws-space-2);
}

/* ---- Filter Chips (shared) ---- */
.ws-filter-chip {
    flex-shrink: 0;
    padding: var(--ws-space-2) var(--ws-space-3);
    border-radius: 20px;
    border: 1px solid var(--ws-gold-dark);
    background: transparent;
    color: var(--ws-text-secondary);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--ws-transition);
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: var(--ws-space-1);
}

.ws-filter-chip-active,
.ws-filter-chip[aria-pressed="true"] {
    background: var(--ws-gold);
    color: var(--ws-bg-primary);
    border-color: var(--ws-gold);
    font-weight: 600;
}

/* ---- Focus Visible (Accessibility) ---- */
.ws-filter-chip:focus-visible,
.ws-filter-type-chip:focus-visible,
.ws-filter-trigger:focus-visible,
.ws-filter-sheet-close:focus-visible,
.ws-filter-btn-clear:focus-visible,
.ws-filter-btn-apply:focus-visible,
.ws-filter-budget-input:focus-visible {
    outline: 2px solid var(--ws-gold);
    outline-offset: 2px;
}

/* ---- Filter Sheet ---- */

/* زر فتح الفلتر (موبايل) */
.ws-filter-trigger-wrap {
    display: flex;
    gap: var(--ws-space-2);
    padding: var(--ws-space-2) var(--ws-space-3);
    align-items: center;
}

.ws-filter-trigger {
    display: flex;
    align-items: center;
    gap: var(--ws-space-2);
    padding: var(--ws-space-2) var(--ws-space-3);
    border-radius: 8px;
    border: 1px solid var(--ws-gold-dark);
    background: var(--ws-bg-surface);
    color: var(--ws-text-primary);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    min-height: 44px;
    transition: all var(--ws-transition);
}

.ws-filter-trigger i {
    color: var(--ws-gold);
}

.ws-filter-badge {
    background: var(--ws-gold);
    color: var(--ws-bg-primary);
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-filter-sort-quick {
    flex: 1;
    min-width: 0;
    padding: var(--ws-space-2) var(--ws-space-3);
    border-radius: 8px;
    border: 1px solid var(--ws-gold-dark);
    background: var(--ws-bg-surface);
    color: var(--ws-text-primary);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    min-height: 44px;
    appearance: none;
    -webkit-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='%23DAB04D' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 32px;
}

/* Overlay */
.ws-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease;
}

.ws-filter-overlay-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Sheet */
.ws-filter-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: var(--ws-bg-primary);
    border-radius: 16px 16px 0 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 250ms ease;
    overflow: hidden;
}

.ws-filter-sheet-open {
    transform: translateY(0);
}

.ws-filter-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--ws-space-3) var(--ws-space-4);
    border-bottom: 1px solid rgba(218,176,77,0.15);
    flex-shrink: 0;
    position: relative;
}

.ws-filter-sheet-handle {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(218,176,77,0.3);
}

.ws-filter-sheet-title {
    display: flex;
    align-items: center;
    gap: var(--ws-space-2);
    font-size: 16px;
    font-weight: 600;
    color: var(--ws-text-primary);
}

.ws-filter-sheet-title i {
    color: var(--ws-gold);
}

.ws-filter-sheet-close {
    background: none;
    border: none;
    color: var(--ws-text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: var(--ws-space-2);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-filter-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--ws-space-3) var(--ws-space-4);
    -webkit-overflow-scrolling: touch;
}

/* أقسام الفلاتر */
.ws-filter-section {
    margin-bottom: var(--ws-space-4);
}

.ws-filter-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ws-gold);
    margin-bottom: var(--ws-space-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filter rows — two dropdowns side by side */
.ws-filter-row {
    display: flex;
    gap: var(--ws-space-3);
    margin-bottom: var(--ws-space-4);
}

.ws-filter-half {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

/* Filter dropdown selects */
.ws-filter-select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--ws-gold-dark);
    background: rgba(255,255,255,0.05);
    color: var(--ws-text-primary);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b8860b' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 12px;
    min-height: 44px;
    transition: border-color var(--ws-transition), box-shadow var(--ws-transition);
}

.ws-filter-select:focus {
    outline: none;
    border-color: var(--ws-gold);
    box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.2);
}

.ws-filter-select option {
    background: var(--ws-bg-primary);
    color: var(--ws-text-primary);
    padding: 8px;
}

.ws-filter-section-title i {
    margin-inline-start: 6px;
    font-size: 12px;
    opacity: 0.7;
}

/* أنواع المنتجات (scroll أفقي) — legacy */
.ws-filter-types-scroll {
    display: flex;
    gap: var(--ws-space-2);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--ws-space-1);
}

.ws-filter-types-scroll::-webkit-scrollbar { display: none; }

.ws-filter-type-chip {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: var(--ws-space-2) var(--ws-space-3);
    border-radius: 12px;
    border: 1px solid var(--ws-gold-dark);
    background: transparent;
    color: var(--ws-text-secondary);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    min-width: 64px;
    min-height: 44px;
    transition: all var(--ws-transition);
}

.ws-filter-type-chip i {
    font-size: 18px;
    color: var(--ws-gold-dark);
}

.ws-filter-type-chip small {
    font-size: 10px;
    opacity: 0.6;
}

.ws-filter-type-chip.ws-filter-chip-active {
    background: var(--ws-gold);
    color: var(--ws-bg-primary);
    border-color: var(--ws-gold);
}

.ws-filter-type-chip.ws-filter-chip-active i {
    color: var(--ws-bg-primary);
}

/* Chips عامة */
.ws-filter-chips {
    display: flex;
    gap: var(--ws-space-2);
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ws-filter-chips::-webkit-scrollbar { display: none; }

.ws-filter-chips-wrap {
    flex-wrap: wrap;
}

.ws-filter-chip-sm {
    padding: 6px 10px;
    font-size: 12px;
    min-height: 44px;
}

.ws-filter-more {
    color: var(--ws-gold);
    border-style: dashed;
}

/* الميزانية */
.ws-filter-budget-inputs {
    display: flex;
    align-items: center;
    gap: var(--ws-space-2);
    margin-bottom: var(--ws-space-2);
}

.ws-filter-budget-field {
    flex: 1;
    position: relative;
}

.ws-filter-budget-field label {
    display: block;
    font-size: 11px;
    color: var(--ws-text-secondary);
    margin-bottom: 4px;
}

.ws-filter-budget-input {
    width: 100%;
    padding: 8px 12px;
    padding-left: 36px;
    border-radius: 8px;
    border: 1px solid var(--ws-gold-dark);
    background: var(--ws-bg-surface);
    color: var(--ws-text-primary);
    font-family: inherit;
    font-size: 14px;
    min-height: 44px;
    box-sizing: border-box;
}

.ws-filter-budget-input:focus {
    outline: none;
    border-color: var(--ws-gold);
}

.ws-filter-budget-unit {
    position: absolute;
    bottom: 12px;
    left: 10px;
    font-size: 12px;
    color: var(--ws-text-secondary);
}

.ws-filter-budget-sep {
    color: var(--ws-text-secondary);
    margin-top: 16px;
}

.ws-filter-budget-presets {
    margin-top: var(--ws-space-1);
}

/* Footer أزرار */
.ws-filter-sheet-footer {
    display: flex;
    gap: var(--ws-space-2);
    padding: var(--ws-space-3) var(--ws-space-4);
    border-top: 1px solid rgba(218,176,77,0.15);
    flex-shrink: 0;
}

.ws-filter-btn-clear {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ws-space-1);
    padding: var(--ws-space-2) var(--ws-space-3);
    border-radius: 8px;
    border: 1px solid var(--ws-gold-dark);
    background: transparent;
    color: var(--ws-text-secondary);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    min-height: 44px;
}

.ws-filter-btn-apply {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ws-space-1);
    padding: var(--ws-space-2) var(--ws-space-3);
    border-radius: 8px;
    border: none;
    background: var(--ws-gold);
    color: var(--ws-bg-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
    transition: all var(--ws-transition);
}

.ws-filter-btn-apply:active {
    background: var(--ws-gold-dark);
}

/* ---- ديسكتوب: Sidebar ---- */
@media (min-width: 768px) {
    .ws-filter-trigger-wrap {
        display: none;
    }

    .ws-filter-overlay {
        display: none;
    }

    .ws-filter-sheet {
        position: static;
        max-height: none;
        border-radius: 12px;
        border: 1px solid rgba(218,176,77,0.15);
        transform: none;
        margin: 0 var(--ws-space-3) var(--ws-space-3);
    }

    .ws-filter-sheet-handle {
        display: none;
    }

    .ws-filter-sheet-close {
        display: none;
    }

    .ws-filter-sheet-footer {
        display: none;
    }

    .ws-filter-sheet-body {
        padding: var(--ws-space-2) var(--ws-space-3);
    }

    .ws-filter-section {
        margin-bottom: var(--ws-space-3);
    }
}

/* ---- WhatsApp FAB ---- */
.ws-fab {
    position: fixed;
    bottom: var(--ws-space-6);
    left: var(--ws-space-6);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 40;
    text-decoration: none;
    transition: transform var(--ws-transition);
}

.ws-fab:active { transform: scale(0.92); }

.ws-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--ws-warning);
    color: var(--ws-bg-primary);
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 700;
    white-space: nowrap;
}

/* ---- Product Detail ---- */
.ws-detail-nav {
    padding: var(--ws-space-3) var(--ws-space-4);
}
.ws-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ws-gold);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.ws-detail-back:hover { color: var(--ws-gold-light); }
.ws-detail-back:focus-visible {
    outline: 2px solid var(--ws-gold);
    outline-offset: 2px;
    border-radius: 4px;
}
.ws-detail-carousel {
    position: relative;
    overflow: hidden;
}

.ws-detail-slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.ws-detail-slides::-webkit-scrollbar { display: none; }

.ws-detail-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    aspect-ratio: 4/3;
    min-height: 300px;
}

.ws-detail-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ws-detail-dots {
    display: flex;
    justify-content: center;
    gap: var(--ws-space-2);
    padding: var(--ws-space-3) 0;
}

.ws-detail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ws-gold-dark);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background var(--ws-transition);
}

.ws-detail-dot-active {
    background: var(--ws-gold);
    width: 20px;
    border-radius: 4px;
}

.ws-detail-info {
    padding: var(--ws-space-4) var(--ws-space-3);
}

.ws-detail-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--ws-text-primary);
    margin-bottom: var(--ws-space-2);
}

.ws-detail-meta {
    color: var(--ws-text-secondary);
    font-size: 16px;
    margin-bottom: var(--ws-space-3);
}

.ws-detail-price-box {
    background: var(--ws-bg-header);
    border-radius: var(--ws-radius-btn);
    padding: var(--ws-space-3) var(--ws-space-4);
    margin-bottom: var(--ws-space-4);
    border: 1px solid var(--ws-gold-dark);
}

.ws-detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ws-space-3);
    margin-bottom: var(--ws-space-4);
}

/* ---- Buttons ---- */
.ws-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ws-space-2);
    padding: var(--ws-space-3) var(--ws-space-4);
    border-radius: var(--ws-radius-btn);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    min-height: 48px;
    cursor: pointer;
    transition: all var(--ws-transition);
    text-decoration: none;
    border: none;
}

.ws-btn-primary {
    background: var(--ws-gold);
    color: var(--ws-bg-primary);
}

.ws-btn-primary:active { background: var(--ws-gold-dark); }

.ws-btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.ws-btn-outline {
    background: transparent;
    border: 1px solid var(--ws-gold-dark);
    color: var(--ws-text-primary);
}

/* ---- Expandable ---- */
.ws-expandable-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--ws-space-3);
    background: var(--ws-bg-surface);
    border-radius: var(--ws-radius-btn);
    cursor: pointer;
    color: var(--ws-gold);
    font-size: 15px;
    min-height: 44px;
    border: none;
    width: 100%;
    font-family: inherit;
}

.ws-expandable-body {
    padding: var(--ws-space-3);
    font-size: 14px;
    color: var(--ws-text-secondary);
}

/* ---- Empty State ---- */
.ws-empty {
    text-align: center;
    padding: var(--ws-space-6) var(--ws-space-3);
}

.ws-empty-icon {
    font-size: 48px;
    color: var(--ws-gold-dark);
    margin-bottom: var(--ws-space-3);
}

.ws-empty-text {
    font-size: 18px;
    color: var(--ws-text-secondary);
    margin-bottom: var(--ws-space-4);
}

/* ---- Similar Products ---- */
.ws-similar-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ws-gold);
    padding: 0 var(--ws-space-3) var(--ws-space-3);
}

.ws-similar-scroll {
    display: flex;
    gap: var(--ws-space-3);
    overflow-x: auto;
    padding: 0 var(--ws-space-3) var(--ws-space-3);
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ws-similar-scroll::-webkit-scrollbar { display: none; }

.ws-similar-scroll .ws-card {
    flex: 0 0 160px;
    scroll-snap-align: start;
}

/* ---- Pagination ---- */
.ws-pagination {
    display: flex;
    justify-content: center;
    gap: var(--ws-space-2);
    padding: var(--ws-space-4) var(--ws-space-3);
}

.ws-pagination a,
.ws-pagination span {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ws-radius-btn);
    font-size: 14px;
    text-decoration: none;
    color: var(--ws-text-secondary);
    border: 1px solid var(--ws-gold-dark);
}

.ws-pagination .active {
    background: var(--ws-gold);
    color: var(--ws-bg-primary);
    border-color: var(--ws-gold);
    font-weight: 700;
}

/* ---- Skeleton Loading ---- */
.ws-skeleton {
    background: linear-gradient(90deg, var(--ws-bg-surface) 25%, var(--ws-bg-header) 50%, var(--ws-bg-surface) 75%);
    background-size: 200% 100%;
    animation: ws-shimmer 1.5s infinite;
    border-radius: var(--ws-radius-btn);
}

@keyframes ws-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---- Price Warning ---- */
.ws-price-warning {
    text-align: center;
    padding: var(--ws-space-2) var(--ws-space-3);
    font-size: 13px;
    color: var(--ws-text-secondary);
    background: var(--ws-bg-surface);
    border-top: 1px solid var(--ws-gold-dark);
}

/* ---- Footer ---- */
.ws-footer {
    background: var(--ws-bg-header);
    border-top: 2px solid var(--ws-gold-dark);
    margin-top: var(--ws-space-6);
    padding: 0;
}

/* Brand section */
.ws-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px 20px;
    background: linear-gradient(180deg, rgba(218,176,77,0.08) 0%, transparent 100%);
}

.ws-footer-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--ws-gold);
    object-fit: cover;
    margin-bottom: 12px;
}

.ws-footer-logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--ws-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ws-bg-surface);
    margin-bottom: 12px;
    color: var(--ws-gold);
    font-size: 24px;
}

.ws-footer-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--ws-gold);
    letter-spacing: 0.5px;
}

/* Divider */
.ws-footer-divider {
    height: 1px;
    margin: 0 24px;
    background: linear-gradient(90deg, transparent, var(--ws-gold-dark), transparent);
}

/* Info section */
.ws-footer-info {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ws-footer-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ws-text-secondary);
    font-size: 15px;
}

.ws-footer-detail i {
    color: var(--ws-gold);
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.ws-footer-link {
    color: var(--ws-text-primary);
    text-decoration: none;
    font-weight: 600;
}

/* Social section */
.ws-footer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: rgba(26,26,46,0.5);
}

.ws-footer-social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform var(--ws-transition), background var(--ws-transition);
    background: var(--ws-bg-surface);
    border: 1px solid rgba(218,176,77,0.15);
    min-width: 68px;
}

.ws-footer-social-icon i {
    font-size: 22px;
}

.ws-footer-social-icon span {
    font-size: 11px;
    font-weight: 600;
}

.ws-footer-social-icon:active { transform: scale(0.95); }

.ws-footer-social-whatsapp { color: #25D366; }
.ws-footer-social-whatsapp:active { background: rgba(37,211,102,0.1); }
.ws-footer-social-telegram { color: #0088cc; }
.ws-footer-social-instagram { color: #E4405F; }
.ws-footer-social-facebook { color: #1877F2; }

/* Prices section */
.ws-footer-prices {
    padding: 16px;
    background: var(--ws-bg-surface);
    border-top: 1px solid rgba(218,176,77,0.15);
    border-bottom: 1px solid rgba(218,176,77,0.15);
}

.ws-footer-prices-title {
    text-align: center;
    font-size: 13px;
    color: var(--ws-gold);
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ws-footer-prices-title i {
    font-size: 12px;
}

.ws-footer-prices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.ws-footer-price-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 4px;
    border-radius: 10px;
    background: var(--ws-bg-header);
    border: 1px solid rgba(218,176,77,0.1);
}

.ws-footer-price-featured {
    border-color: var(--ws-gold-dark);
    background: rgba(218,176,77,0.06);
}

.ws-footer-price-karat {
    font-size: 11px;
    color: var(--ws-text-secondary);
    font-weight: 600;
}

.ws-footer-price-value {
    font-size: 17px;
    font-weight: 700;
    color: var(--ws-gold-light);
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
}

.ws-footer-price-featured .ws-footer-price-value {
    font-size: 19px;
    color: var(--ws-gold);
}

.ws-footer-price-unit {
    font-size: 10px;
    color: var(--ws-text-secondary);
    opacity: 0.7;
}

.ws-footer-prices-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px;
    color: var(--ws-gold);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.ws-footer-prices-link:hover { color: var(--ws-gold-light); }

/* Bottom bar */
.ws-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(15,15,26,0.6);
}

.ws-footer-copyright {
    font-size: 13px;
    color: var(--ws-text-secondary);
    opacity: 0.6;
}

.ws-footer-share {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ws-gold);
    background: none;
    border: 1px solid var(--ws-gold-dark);
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--ws-transition);
    min-height: 44px;
}

.ws-footer-share:active {
    background: rgba(218,176,77,0.1);
}

.ws-footer-share i {
    font-size: 12px;
}

/* ============================================
   BuildSetWizard — "جمّع طقمك"
   ============================================ */

/* CTA Banner */
.ws-wizard-cta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--ws-space-3);
    padding: var(--ws-space-3);
    margin: var(--ws-space-2);
    background: linear-gradient(135deg, rgba(218, 176, 77, 0.15), rgba(218, 176, 77, 0.05));
    border: 1px solid var(--ws-gold-dark);
    border-radius: var(--ws-radius);
    text-align: right;
}

.ws-wizard-cta-content {
    display: flex;
    align-items: center;
    gap: var(--ws-space-3);
    text-align: right;
}

.ws-wizard-cta-content > i {
    font-size: 22px;
    color: var(--ws-gold);
    flex-shrink: 0;
}

.ws-wizard-cta-content strong {
    display: block;
    color: var(--ws-gold-light);
    font-size: 14px;
    margin-bottom: 1px;
}

.ws-wizard-cta-content span {
    color: var(--ws-text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

.ws-wizard-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ws-space-1);
    padding: var(--ws-space-2) var(--ws-space-3);
    background: var(--ws-gold);
    color: var(--ws-bg-primary);
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    min-height: 44px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--ws-transition);
}

.ws-wizard-cta-btn:hover {
    background: var(--ws-gold-light);
}

.ws-wizard-cta-btn:focus-visible {
    outline: 2px solid var(--ws-gold);
    outline-offset: 2px;
}

/* Overlay */
.ws-wizard-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

.ws-wizard-overlay[hidden] {
    display: none;
}

/* Wizard Modal (mobile: full-screen) */
.ws-wizard {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--ws-bg-primary);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ws-wizard[hidden] {
    display: none;
}

/* Header */
.ws-wizard-header {
    display: flex;
    align-items: center;
    gap: var(--ws-space-2);
    padding: var(--ws-space-3) var(--ws-space-4);
    border-bottom: 1px solid rgba(218, 176, 77, 0.2);
    min-height: 56px;
}

.ws-wizard-back {
    background: none;
    border: none;
    color: var(--ws-gold);
    font-size: 18px;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.ws-wizard-back:focus-visible {
    outline: 2px solid var(--ws-gold);
    outline-offset: 2px;
}

.ws-wizard-title {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--ws-space-2);
    color: var(--ws-gold-light);
    font-size: 18px;
    font-weight: 700;
}

.ws-wizard-title i {
    color: var(--ws-gold);
}

.ws-wizard-close {
    background: none;
    border: none;
    color: var(--ws-text-secondary);
    font-size: 18px;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.ws-wizard-close:hover {
    color: var(--ws-text-primary);
}

.ws-wizard-close:focus-visible {
    outline: 2px solid var(--ws-gold);
    outline-offset: 2px;
}

/* Progress Indicators */
.ws-wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: var(--ws-space-3) var(--ws-space-4);
}

.ws-wizard-step-indicator {
    display: flex;
    align-items: center;
    gap: var(--ws-space-1);
    opacity: 0.4;
    transition: opacity var(--ws-transition);
}

.ws-wizard-step-indicator.active {
    opacity: 1;
}

.ws-wizard-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ws-bg-surface);
    border: 2px solid var(--ws-gold-dark);
    color: var(--ws-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.ws-wizard-step-indicator.active .ws-wizard-step-num {
    background: var(--ws-gold);
    border-color: var(--ws-gold);
    color: var(--ws-bg-primary);
}

.ws-wizard-step-indicator.completed .ws-wizard-step-num {
    background: var(--ws-gold-dark);
    border-color: var(--ws-gold-dark);
    color: var(--ws-bg-primary);
}

.ws-wizard-step-label {
    font-size: 12px;
    color: var(--ws-text-secondary);
    display: none;
}

.ws-wizard-step-line {
    width: 24px;
    height: 2px;
    background: var(--ws-gold-dark);
    margin: 0 var(--ws-space-2);
    opacity: 0.4;
}

/* Body */
.ws-wizard-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--ws-space-4);
    -webkit-overflow-scrolling: touch;
}

.ws-wizard-subtitle {
    color: var(--ws-text-primary);
    font-size: 15px;
    margin-bottom: var(--ws-space-4);
    line-height: 1.5;
}

/* Step 1: Types Grid */
.ws-wizard-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--ws-space-3);
}

.ws-wizard-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ws-space-2);
    padding: var(--ws-space-4);
    background: var(--ws-bg-surface);
    border: 2px solid transparent;
    border-radius: var(--ws-radius);
    color: var(--ws-text-primary);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    min-height: 80px;
    transition: all var(--ws-transition);
}

.ws-wizard-type-btn i {
    font-size: 24px;
    color: var(--ws-gold);
}

.ws-wizard-type-btn small {
    font-size: 11px;
    color: var(--ws-text-secondary);
}

.ws-wizard-type-btn:hover {
    border-color: var(--ws-gold-dark);
}

.ws-wizard-type-btn:focus-visible {
    outline: 2px solid var(--ws-gold);
    outline-offset: 2px;
}

.ws-wizard-type-active {
    border-color: var(--ws-gold);
    background: rgba(218, 176, 77, 0.1);
}

.ws-wizard-type-active i {
    color: var(--ws-gold-light);
}

/* Step 2: Budget */
.ws-wizard-budget {
    display: flex;
    flex-direction: column;
    gap: var(--ws-space-3);
    margin-bottom: var(--ws-space-4);
}

.ws-wizard-budget-row {
    display: flex;
    align-items: center;
    gap: var(--ws-space-3);
}

.ws-wizard-budget-row label {
    color: var(--ws-text-secondary);
    font-size: 14px;
    min-width: 30px;
}

.ws-wizard-budget-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--ws-bg-surface);
    border: 1px solid var(--ws-gold-dark);
    border-radius: 8px;
    overflow: hidden;
}

.ws-wizard-budget-input {
    flex: 1;
    padding: var(--ws-space-3);
    background: transparent;
    border: none;
    color: var(--ws-text-primary);
    font-family: inherit;
    font-size: 16px;
    min-height: 44px;
    outline: none;
}

.ws-wizard-budget-input::placeholder {
    color: var(--ws-text-secondary);
    opacity: 0.5;
}

.ws-wizard-budget-input:focus-visible {
    outline: 2px solid var(--ws-gold);
    outline-offset: -2px;
}

.ws-wizard-budget-unit {
    padding: 0 var(--ws-space-3);
    color: var(--ws-text-secondary);
    font-size: 13px;
}

.ws-wizard-presets {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ws-space-2);
    margin-bottom: var(--ws-space-4);
}

/* Footer (buttons) */
.ws-wizard-footer {
    padding: var(--ws-space-4) 0 0;
    margin-top: auto;
}

.ws-wizard-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ws-space-2);
    width: 100%;
    padding: var(--ws-space-3) var(--ws-space-4);
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    min-height: 48px;
    transition: all var(--ws-transition);
    text-decoration: none;
}

.ws-wizard-btn:focus-visible {
    outline: 2px solid var(--ws-gold);
    outline-offset: 2px;
}

.ws-wizard-btn-primary {
    background: var(--ws-gold);
    color: var(--ws-bg-primary);
}

.ws-wizard-btn-primary:hover {
    background: var(--ws-gold-light);
}

.ws-wizard-btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ws-wizard-btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.ws-wizard-btn-whatsapp:hover {
    background: #1EBE5B;
}

.ws-wizard-btn-sm {
    width: auto;
    min-height: 40px;
    font-size: 13px;
    padding: var(--ws-space-2) var(--ws-space-3);
}

/* Step 3: Results */
.ws-wizard-results-summary {
    color: var(--ws-text-secondary);
    font-size: 14px;
    margin-bottom: var(--ws-space-3);
    text-align: center;
}

.ws-wizard-results {
    display: flex;
    flex-direction: column;
    gap: var(--ws-space-3);
}

.ws-wizard-combo-card {
    background: var(--ws-bg-surface);
    border: 1px solid rgba(218, 176, 77, 0.15);
    border-radius: var(--ws-radius);
    overflow: hidden;
}

.ws-wizard-combo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--ws-space-3) var(--ws-space-4);
    border-bottom: 1px solid rgba(218, 176, 77, 0.1);
}

.ws-wizard-combo-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ws-gold);
    color: var(--ws-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.ws-wizard-combo-total {
    color: var(--ws-gold-light);
    font-size: 16px;
    font-weight: 700;
}

.ws-wizard-combo-items {
    padding: var(--ws-space-2) 0;
}

.ws-wizard-combo-item {
    display: flex;
    align-items: center;
    gap: var(--ws-space-3);
    padding: var(--ws-space-2) var(--ws-space-4);
    min-height: 44px;
}

.ws-wizard-combo-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.ws-wizard-combo-thumb-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: rgba(218, 176, 77, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--ws-gold-dark);
    font-size: 16px;
}

.ws-wizard-combo-info {
    flex: 1;
    min-width: 0;
}

.ws-wizard-combo-name {
    display: block;
    color: var(--ws-text-primary);
    font-size: 13px;
    font-weight: 600;
}

.ws-wizard-combo-weight {
    display: block;
    color: var(--ws-text-secondary);
    font-size: 11px;
}

.ws-wizard-combo-price {
    color: var(--ws-gold);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.ws-wizard-swap-btn {
    background: none;
    border: none;
    color: var(--ws-text-secondary);
    cursor: pointer;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 12px;
    transition: color var(--ws-transition);
}

.ws-wizard-swap-btn:hover {
    color: var(--ws-gold);
}

.ws-wizard-swap-btn:focus-visible {
    outline: 2px solid var(--ws-gold);
    outline-offset: 2px;
}

/* Swap Dropdown */
.ws-wizard-swap-dropdown {
    background: var(--ws-bg-primary);
    border: 1px solid var(--ws-gold-dark);
    border-radius: 8px;
    margin: var(--ws-space-1) var(--ws-space-4);
    overflow: hidden;
}

.ws-wizard-swap-option {
    display: flex;
    align-items: center;
    gap: var(--ws-space-2);
    width: 100%;
    padding: var(--ws-space-2) var(--ws-space-3);
    background: none;
    border: none;
    border-bottom: 1px solid rgba(218, 176, 77, 0.08);
    color: var(--ws-text-primary);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    min-height: 52px;
    transition: background var(--ws-transition);
}

.ws-wizard-swap-thumb {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.ws-wizard-swap-thumb-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: rgba(218, 176, 77, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--ws-gold-dark);
    font-size: 14px;
}

.ws-wizard-swap-info {
    flex: 1;
    text-align: right;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ws-wizard-swap-price {
    color: var(--ws-gold);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.ws-wizard-swap-option:last-child {
    border-bottom: none;
}

.ws-wizard-swap-option:hover {
    background: rgba(218, 176, 77, 0.08);
}

.ws-wizard-swap-option:focus-visible {
    outline: 2px solid var(--ws-gold);
    outline-offset: -2px;
}

.ws-wizard-combo-footer {
    padding: var(--ws-space-2) var(--ws-space-4) var(--ws-space-3);
    display: flex;
    justify-content: flex-end;
}

/* No Results */
.ws-wizard-no-results {
    text-align: center;
    padding: var(--ws-space-6) var(--ws-space-4);
    color: var(--ws-text-secondary);
}

.ws-wizard-no-results i {
    font-size: 40px;
    color: var(--ws-gold-dark);
    margin-bottom: var(--ws-space-3);
}

.ws-wizard-no-results p {
    color: var(--ws-text-primary);
    font-size: 15px;
    margin-bottom: var(--ws-space-2);
}

.ws-wizard-no-results-hint {
    color: var(--ws-text-secondary);
    font-size: 13px;
}

/* ---- Desktop: wizard as modal ---- */
@media (min-width: 768px) {
    .ws-wizard {
        inset: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 600px;
        max-height: 85vh;
        border-radius: var(--ws-radius-lg, 16px);
        border: 1px solid var(--ws-gold-dark);
    }

    .ws-wizard-cta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .ws-wizard-cta-btn {
        white-space: nowrap;
        width: auto;
    }

    .ws-wizard-step-label {
        display: inline;
    }

    .ws-wizard-types {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   Wishlist — المفضلة
   ============================================ */

/* Heart button on cards */
.ws-wishlist-btn {
    position: absolute;
    top: var(--ws-space-2);
    left: var(--ws-space-2);
    z-index: 5;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all var(--ws-transition);
}

.ws-wishlist-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.ws-wishlist-btn-active {
    color: #F44336;
}

.ws-wishlist-btn:focus-visible {
    outline: 2px solid var(--ws-gold);
    outline-offset: 2px;
}

/* Toggle button (header area) */
.ws-wishlist-toggle {
    position: fixed;
    bottom: 92px;
    left: var(--ws-space-6);
    z-index: 40;
    background: var(--ws-bg-surface);
    border: 1px solid var(--ws-gold-dark);
    color: var(--ws-text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all var(--ws-transition);
}

.ws-wishlist-toggle:hover {
    border-color: var(--ws-gold);
}

.ws-wishlist-toggle:focus-visible {
    outline: 2px solid var(--ws-gold);
    outline-offset: 2px;
}

.ws-wishlist-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #F44336;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-wishlist-count[hidden] {
    display: none;
}

/* Drawer overlay */
.ws-wishlist-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
}

.ws-wishlist-overlay[hidden] {
    display: none;
}

/* Drawer */
.ws-wishlist-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    z-index: 999;
    background: var(--ws-bg-primary);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--ws-gold-dark);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.ws-wishlist-drawer:not([hidden]) {
    transform: translateX(0);
}

.ws-wishlist-drawer[hidden] {
    display: flex;
    pointer-events: none;
}

.ws-wishlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--ws-space-3) var(--ws-space-4);
    border-bottom: 1px solid rgba(218, 176, 77, 0.2);
    min-height: 56px;
}

.ws-wishlist-title {
    display: flex;
    align-items: center;
    gap: var(--ws-space-2);
    color: var(--ws-gold-light);
    font-size: 16px;
    font-weight: 700;
}

.ws-wishlist-title i {
    color: #F44336;
}

.ws-wishlist-header-count {
    color: var(--ws-text-secondary);
    font-size: 13px;
    font-weight: 400;
}

.ws-wishlist-close {
    background: none;
    border: none;
    color: var(--ws-text-secondary);
    font-size: 18px;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.ws-wishlist-close:hover {
    color: var(--ws-text-primary);
}

.ws-wishlist-close:focus-visible {
    outline: 2px solid var(--ws-gold);
    outline-offset: 2px;
}

.ws-wishlist-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ws-wishlist-items {
    padding: var(--ws-space-2) 0;
}

.ws-wishlist-item {
    display: flex;
    align-items: center;
    padding: var(--ws-space-2) var(--ws-space-4);
    border-bottom: 1px solid rgba(218, 176, 77, 0.06);
}

.ws-wishlist-item-link {
    display: flex;
    align-items: center;
    gap: var(--ws-space-3);
    flex: 1;
    min-width: 0;
    text-decoration: none;
    min-height: 44px;
}

.ws-wishlist-item-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.ws-wishlist-item-thumb-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: rgba(218, 176, 77, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--ws-gold-dark);
}

.ws-wishlist-item-info {
    flex: 1;
    min-width: 0;
}

.ws-wishlist-item-name {
    display: block;
    color: var(--ws-text-primary);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ws-wishlist-item-price {
    display: block;
    color: var(--ws-gold);
    font-size: 12px;
    margin-top: 2px;
}

.ws-wishlist-item-remove {
    background: none;
    border: none;
    color: var(--ws-text-secondary);
    cursor: pointer;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 12px;
    flex-shrink: 0;
}

.ws-wishlist-item-remove:hover {
    color: var(--ws-error);
}

.ws-wishlist-item-remove:focus-visible {
    outline: 2px solid var(--ws-gold);
    outline-offset: 2px;
}

.ws-wishlist-empty {
    text-align: center;
    padding: var(--ws-space-6) var(--ws-space-4);
    color: var(--ws-text-secondary);
}

.ws-wishlist-empty p {
    color: var(--ws-text-primary);
    font-size: 14px;
    margin-bottom: var(--ws-space-2);
}

.ws-wishlist-footer {
    padding: var(--ws-space-3) var(--ws-space-4);
    border-top: 1px solid rgba(218, 176, 77, 0.15);
}

/* ============================================
   Recently Viewed — "شاهدت مؤخراً"
   ============================================ */

.ws-recently-title {
    color: var(--ws-text-primary);
    font-size: 16px;
    font-weight: 600;
    padding: var(--ws-space-3) var(--ws-space-4) var(--ws-space-2);
    display: flex;
    align-items: center;
    gap: var(--ws-space-2);
}

.ws-recently-title i {
    color: var(--ws-gold);
    font-size: 14px;
}

.ws-recently-scroll {
    display: flex;
    gap: var(--ws-space-3);
    overflow-x: auto;
    padding: 0 var(--ws-space-4) var(--ws-space-3);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ws-recently-scroll::-webkit-scrollbar {
    display: none;
}

.ws-recently-card {
    flex-shrink: 0;
    width: 120px;
    text-decoration: none;
    background: var(--ws-bg-surface);
    border-radius: var(--ws-radius);
    overflow: hidden;
    border: 1px solid rgba(218, 176, 77, 0.1);
    transition: border-color var(--ws-transition);
}

.ws-recently-card:hover {
    border-color: var(--ws-gold-dark);
}

.ws-recently-card:focus-visible {
    outline: 2px solid var(--ws-gold);
    outline-offset: 2px;
}

.ws-recently-thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.ws-recently-thumb-placeholder {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(218, 176, 77, 0.05);
    color: var(--ws-gold-dark);
    font-size: 24px;
}

.ws-recently-info {
    padding: var(--ws-space-2);
}

.ws-recently-name {
    display: block;
    color: var(--ws-text-primary);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ws-recently-price {
    display: block;
    color: var(--ws-gold);
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
}

/* ============================================
   Theme Toggle — Light/Dark
   ============================================ */

.ws-theme-toggle {
    position: fixed;
    bottom: 144px;
    left: var(--ws-space-6);
    z-index: 40;
    background: var(--ws-bg-surface);
    border: 1px solid var(--ws-gold-dark);
    color: var(--ws-text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all var(--ws-transition);
}

.ws-theme-toggle:hover {
    border-color: var(--ws-gold);
}

.ws-theme-toggle:focus-visible {
    outline: 2px solid var(--ws-gold);
    outline-offset: 2px;
}

/* ============================================
   Light Mode — Comprehensive Overrides
   ============================================ */

/* Cards */
.ws-light .ws-card {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e0d0;
}
.ws-light .ws-card:active,
.ws-light .ws-card:hover {
    border-color: var(--ws-gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Card image borders */
.ws-light .ws-card-img {
    border-bottom-color: #e8e0d0;
}
.ws-light .ws-card-placeholder {
    border-bottom-color: #e8e0d0;
    background: #f5f0e8;
    color: #B8941F;
}

/* Price: ensure readability on light bg */
.ws-light .ws-price,
.ws-light .ws-pricebar-value,
.ws-light .ws-footer-price-value {
    color: #7A6B1A;
}
.ws-light .ws-footer-price-featured .ws-footer-price-value {
    color: #5C5010;
}
.ws-light .ws-wizard-combo-total {
    color: #7A6B1A;
}
.ws-light .ws-wizard-combo-price,
.ws-light .ws-recently-price,
.ws-light .ws-wishlist-item-price {
    color: #7A6B1A;
}

/* PriceBar */
.ws-light .ws-pricebar {
    background: #f5f0e8;
    border-bottom-color: #d4c9a8;
}
.ws-light .ws-pricebar-label {
    color: #5a5540;
}

/* Hero */
.ws-light .ws-hero {
    background: linear-gradient(180deg, #f5f0e8 0%, #FAFAF5 100%);
}
.ws-light .ws-hero-name {
    color: #7A6B1A;
}

/* Filter sheet */
.ws-light .ws-filter-overlay-visible {
    background: rgba(0, 0, 0, 0.3);
}
.ws-light .ws-filter-sheet {
    background: #FFFFFF;
    border-color: #e8e0d0;
}
.ws-light .ws-filter-sheet-header {
    border-bottom-color: #e8e0d0;
}
.ws-light .ws-filter-sheet-footer {
    border-top-color: #e8e0d0;
}
.ws-light .ws-filter-chip {
    background: #f5f0e8;
    border-color: #d4c9a8;
    color: #5a5540;
}
.ws-light .ws-filter-chip-active {
    background: #7A6B1A;
    border-color: #7A6B1A;
    color: #fff;
}
.ws-light .ws-filter-budget-input {
    color: #1a1a2e;
}
.ws-light .ws-filter-sort-quick {
    background: #f5f0e8;
    border-color: #d4c9a8;
    color: #5a5540;
}
.ws-light .ws-filter-select {
    background: #fff;
    border-color: #d4c9a8;
    color: #3a3520;
}
.ws-light .ws-filter-select:focus {
    border-color: #b8941f;
    box-shadow: 0 0 0 2px rgba(184, 148, 31, 0.15);
}
.ws-light .ws-filter-select option {
    background: #fff;
    color: #3a3520;
}

/* Footer */
.ws-light .ws-footer {
    background: #f5f0e8;
    border-top-color: #d4c9a8;
}
.ws-light .ws-footer-brand {
    background: linear-gradient(180deg, rgba(184, 148, 31, 0.06) 0%, transparent 100%);
}
.ws-light .ws-footer-name {
    color: #7A6B1A;
}
.ws-light .ws-footer-divider {
    background: linear-gradient(90deg, transparent, #d4c9a8, transparent);
}
.ws-light .ws-footer-social {
    background: #ede7d8;
}
.ws-light .ws-footer-social-icon {
    background: #FFFFFF;
    border-color: #d4c9a8;
}
.ws-light .ws-footer-prices {
    background: #FFFFFF;
    border-color: #e8e0d0;
}
.ws-light .ws-footer-price-card {
    background: #f5f0e8;
    border-color: #e8e0d0;
}
.ws-light .ws-footer-price-featured {
    border-color: #B8941F;
    background: rgba(184, 148, 31, 0.06);
}
.ws-light .ws-footer-bottom {
    background: #ede7d8;
}
.ws-light .ws-footer-copyright {
    color: #5a5540;
}
.ws-light .ws-footer-share {
    border-color: #B8941F;
    color: #7A6B1A;
}
.ws-light .ws-footer-share:active {
    background: rgba(184, 148, 31, 0.1);
}

/* Wizard */
.ws-light .ws-wizard {
    background: #FAFAF5;
}
.ws-light .ws-wizard-header {
    border-bottom-color: #e8e0d0;
}
.ws-light .ws-wizard-title {
    color: #7A6B1A;
}
.ws-light .ws-wizard-type-btn {
    background: #FFFFFF;
    border-color: #e8e0d0;
}
.ws-light .ws-wizard-type-active {
    border-color: #B8941F;
    background: rgba(184, 148, 31, 0.08);
}
.ws-light .ws-wizard-budget-input-wrap {
    background: #FFFFFF;
    border-color: #d4c9a8;
}
.ws-light .ws-wizard-combo-card {
    background: #FFFFFF;
    border-color: #e8e0d0;
}
.ws-light .ws-wizard-combo-header {
    border-bottom-color: #e8e0d0;
}
.ws-light .ws-wizard-swap-dropdown {
    background: #FFFFFF;
    border-color: #d4c9a8;
}
.ws-light .ws-wizard-swap-option {
    border-bottom-color: #f0ebe0;
}
.ws-light .ws-wizard-swap-option:hover {
    background: #f5f0e8;
}
.ws-light .ws-wizard-overlay {
    background: rgba(0, 0, 0, 0.4);
}
.ws-light .ws-wizard-cta {
    background: linear-gradient(135deg, rgba(184, 148, 31, 0.1), rgba(184, 148, 31, 0.03));
    border-color: #d4c9a8;
}

/* Wishlist */
.ws-light .ws-wishlist-btn {
    background: rgba(255, 255, 255, 0.85);
    color: var(--ws-text-secondary);
}
.ws-light .ws-wishlist-btn-active {
    color: #F44336;
}
.ws-light .ws-wishlist-drawer {
    background: #FFFFFF;
    border-right-color: #e8e0d0;
}
.ws-light .ws-wishlist-header {
    border-bottom-color: #e8e0d0;
}
.ws-light .ws-wishlist-item {
    border-bottom-color: #f0ebe0;
}
.ws-light .ws-wishlist-footer {
    border-top-color: #e8e0d0;
}

/* Recently Viewed */
.ws-light .ws-recently-card {
    background: #FFFFFF;
    border-color: #e8e0d0;
}
.ws-light .ws-recently-thumb-placeholder {
    background: #f5f0e8;
}

/* Theme toggle + Wishlist toggle + FAB */
.ws-light .ws-theme-toggle,
.ws-light .ws-wishlist-toggle {
    background: #FFFFFF;
    border-color: #d4c9a8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Price warning */
.ws-light .ws-price-warning {
    background: #f5f0e8;
    border-top-color: #d4c9a8;
}

/* Skeleton */
.ws-light .ws-skeleton {
    background: linear-gradient(90deg, #f5f0e8 25%, #ede7d8 50%, #f5f0e8 75%);
    background-size: 200% 100%;
}

/* Step indicators */
.ws-light .ws-wizard-step-num {
    background: #f5f0e8;
    border-color: #d4c9a8;
}

/* Empty state */
.ws-light .ws-empty {
    color: #5a5540;
}

/* ---- Accessibility: Focus States ---- */
.ws-pagination a:focus-visible,
.ws-expandable-header:focus-visible,
.ws-fab:focus-visible,
.ws-footer-share:focus-visible,
.ws-footer-social-icon:focus-visible,
.ws-btn:focus-visible,
.ws-card:focus-visible,
.ws-wishlist-btn:focus-visible {
    outline: 2px solid var(--ws-gold);
    outline-offset: 2px;
}

/* ---- Utility ---- */

/* Small screens: tighter margins */
@media (max-width: 375px) {
    .ws-grid { gap: var(--ws-space-2); padding: var(--ws-space-2); }
    .ws-hero { padding: var(--ws-space-4) var(--ws-space-2); }
}
