@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;600;700;800&display=swap');
/* ===== Offers Hero ===== */
.offers-hero {
    background: linear-gradient(135deg, #1a2f3f 0%, #0f1f2b 50%, #0a1620 100%);
    color: #f5f1e8;
    padding: 50px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}
.offers-hero::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(800px 400px at 50% 0%, rgba(212,168,83,0.15) 0%, transparent 60%);
    pointer-events: none;
}
.offers-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.oh-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'Tajawal', sans-serif; font-size: 11px;
    color: #d4a853; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 20px;
}
.oh-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #d4a853; }
.offers-hero h1 { font-size: 38px; font-weight: 800; margin: 0 0 12px; line-height: 1.2; }
.offers-hero h1 .gold { color: #d4a853; }
.offers-hero p { font-size: 15px; color: rgba(245,241,232,0.85); margin: 0 auto 24px; max-width: 580px; line-height: 1.7; }
.offers-hero-stats { display: inline-flex; align-items: center; gap: 28px; padding: 16px 32px; background: rgba(255,255,255,0.06); border-radius: 16px; backdrop-filter: blur(10px); }
.ohs-item { text-align: center; }
.ohs-item .num { font-family: 'Tajawal', sans-serif; font-size: 26px; font-weight: 800; color: #d4a853; line-height: 1; }
.ohs-item .lab { font-size: 11px; color: rgba(245,241,232,0.7); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.1em; }
.ohs-divider { width: 1px; height: 32px; background: rgba(245,241,232,0.2); }

/* ===== Filter Bar ===== */
.filter-bar {
    background: #fff;
    border: 1px solid var(--line, #eee);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.fb-search {
    position: relative;
    flex: 1;
    min-width: 240px;
    display: flex;
    align-items: center;
}

.fb-search > i.fa-search {
    position: absolute;
    right: 14px;
    color: var(--muted, #888);
    font-size: 13px;
    pointer-events: none;
}

.fb-search input {
    width: 100%;
    padding: 10px 38px 10px 38px;
    border: 1.5px solid var(--line, #eee);
    border-radius: 9px;
    font-family: inherit;
    font-size: 13px;
    background: #fafafa;
    transition: all 0.2s;
}

.fb-search input:focus {
    outline: none;
    border-color: var(--gold, #d4a853);
    background: #fff;
}

.fb-search-clear {
    position: absolute;
    left: 8px;
    width: 26px;
    height: 26px;
    background: rgba(0,0,0,.06);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted, #888);
    font-size: 10px;
    transition: all 0.2s;
}

.fb-search-clear:hover { background: var(--danger, #f44336); color: #fff; }
.fb-search-clear.hidden { display: none; }

.fb-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.fb-label {
    font-size: 11.5px;
    color: var(--muted, #888);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.fb-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: #fff;
    border: 1.5px solid var(--line, #eee);
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--navy-900, #0f1f2b);
    transition: all 0.2s;
}

.fb-chip:hover {
    background: var(--gold, #d4a853);
    color: var(--navy-900, #0f1f2b);
    border-color: var(--gold, #d4a853);
}

.fb-chip i { font-size: 11px; }
.fb-chip i.fa-chevron-down { font-size: 9px; opacity: 0.6; }

.fb-spacer { flex: 1; }

.fb-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--ink-2, #555);
}

.fb-sort select {
    padding: 7px 10px;
    border: 1.5px solid var(--line, #eee);
    border-radius: 7px;
    font-family: inherit;
    font-size: 12px;
    background: #fff;
    color: var(--navy-900, #0f1f2b);
    cursor: pointer;
}

.fb-sort select:focus { outline: none; border-color: var(--gold, #d4a853); }

/* ===== Results Info ===== */
.offers-results-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 12.5px;
    color: var(--ink-2, #555);
    flex-wrap: wrap;
}

.offers-results-info strong { color: var(--gold-dim, #a87a3d); font-family: 'Tajawal', sans-serif; }

.ori-divider { color: var(--muted-2, #aaa); }

/* ===== Offers Grid - 5 cards per row ===== */
.offers-grid-public {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

@media (max-width: 1400px) { .offers-grid-public { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px) { .offers-grid-public { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (max-width: 800px) { .offers-grid-public { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 480px) { .offers-grid-public { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

.offers-grid-public.hidden { display: none; }

/* ===== Offer Product Card - matches main shop ===== */
.offer-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.offer-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212, 168, 83, 0.18);
}

.offer-product-card.hidden { display: none !important; }

.opc-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.opc-image {
    position: relative;
    aspect-ratio: 4/5;
    background: #f5f1e8;
    overflow: hidden;
}

.opc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.offer-product-card:hover .opc-image img { transform: scale(1.05); }

/* Favorite button */
.opc-fav-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    background: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    color: var(--ink-2, #555);
    font-size: 13px;
    transition: all 0.2s;
    z-index: 2;
}

.opc-fav-btn:hover {
    background: var(--danger, #f44336);
    color: #fff;
}

/* Discount badge */
.opc-discount-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f44336 0%, #c92a2a 100%);
    color: #fff;
    padding: 5px 10px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(244, 67, 54, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    min-width: 45px;
    z-index: 2;
}

.discount-num {
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    direction: ltr;
}

.discount-label {
    font-size: 9px;
    margin-top: 2px;
    opacity: 0.95;
}

/* Offer reason strip */
.opc-reason-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    background: var(--navy-900, #0f1f2b);
    color: var(--gold, #d4a853);
    font-size: 11px;
    font-weight: 700;
}

.opc-reason-strip i {
    color: var(--gold, #d4a853);
    font-size: 11px;
}

.opc-reason-strip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Card body */
.opc-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Category name */
.opc-category {
    font-family: 'Tajawal', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--muted, #888);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Product name */
.opc-name-link {
    text-decoration: none;
    color: inherit;
}

.opc-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy-900, #0f1f2b);
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 38px;
    text-align: center;
    transition: color 0.2s;
}

.opc-name-link:hover .opc-name { color: var(--gold-dim, #a87a3d); }

/* Color dots */
.opc-color-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    min-height: 16px;
}

.opc-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.opc-color-more {
    font-family: 'Tajawal', sans-serif;
    font-size: 10px;
    color: var(--muted, #888);
    font-weight: 700;
}

/* Card footer: arrow and price */
.opc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    background: linear-gradient(135deg, #fff5f4 0%, #fff8e8 100%);
    border-radius: 8px;
    border: 1px solid rgba(244, 67, 54, 0.12);
    margin-top: 4px;
}

.opc-arrow-btn {
    width: 36px;
    height: 36px;
    background: var(--navy-900, #0f1f2b);
    color: #fff;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.25s;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(15, 31, 43, 0.2);
}

.opc-arrow-btn:hover {
    background: var(--gold, #d4a853);
    color: var(--navy-900, #0f1f2b);
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(212, 168, 83, 0.4);
}

/* Prices */
.opc-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    flex: 1;
    direction: ltr;
    line-height: 1;
}

.opc-price-original {
    font-family: 'Tajawal', sans-serif;
    font-size: 11px;
    color: #b8b0aa;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    text-decoration-color: rgba(244, 67, 54, 0.6);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.opc-price-current-wrapper {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.opc-price-current {
    font-family: 'Tajawal', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #e53935;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 2px rgba(229, 57, 53, 0.15);
    line-height: 1;
}

.opc-cur {
    font-family: 'Tajawal', sans-serif;
    font-size: 10px;
    color: #e53935;
    font-weight: 700;
    opacity: 0.85;
    letter-spacing: 0.5px;
}

/* Savings badge */
.opc-savings-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 10px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.12) 0%, rgba(46, 125, 50, 0.08) 100%);
    color: #2e7d32;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    align-self: center;
    margin: 6px auto 0;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.opc-savings-badge i {
    font-size: 10px;
    color: #43a047;
}

/* Countdown - urgent only */
.opc-countdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 4px 8px;
    background: rgba(244, 67, 54, 0.12);
    color: #c62828;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 700;
    animation: pulse-urgent 2s infinite;
}

.opc-countdown.hidden { display: none; }
.opc-countdown i { font-size: 10px; }

@keyframes pulse-urgent { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }


/* ===== No Results ===== */
.offers-no-results,
.no-offers-state {
    text-align: center;
    padding: 60px 20px;
    background: #fafafa;
    border: 2px dashed var(--line, #eee);
    border-radius: 12px;
}

.offers-no-results.hidden { display: none; }

.offers-no-results i.fa-search,
.no-offers-state i.fa-tag {
    font-size: 48px;
    color: var(--muted-2, #aaa);
    margin-bottom: 16px;
    display: block;
}

.offers-no-results h2,
.offers-no-results h3,
.no-offers-state h2 {
    font-size: 18px;
    color: var(--navy-900, #0f1f2b);
    margin: 0 0 8px;
}

.offers-no-results p,
.no-offers-state p {
    font-size: 13px;
    color: var(--muted, #888);
    margin: 0 0 20px;
}

.btn-back-shop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gold, #d4a853);
    color: var(--navy-900, #0f1f2b);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-back-shop:hover { background: var(--navy-900, #0f1f2b); color: var(--gold, #d4a853); }


/* ============================================================
   ============ Filter Panel (Side Drawer) ============
   ============================================================ */
.filter-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.filter-panel-overlay.hidden { display: none; }
.filter-panel-overlay:not(.hidden) { opacity: 1; }

.filter-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    visibility: hidden;
}

.filter-panel.open { 
    transform: translateX(0);
    visibility: visible;
}

.fp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: var(--navy-900, #0f1f2b);
    color: var(--ivory, #f5f1e8);
}

.fp-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
}

.fp-title i { color: var(--gold, #d4a853); }

.fp-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-close:hover { background: var(--danger, #f44336); }

.fp-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
}

.fp-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--line, #eee);
}

.fp-section:last-child { border-bottom: none; }

.fp-section-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-900, #0f1f2b);
    margin-bottom: 12px;
}

.fp-section-head i { color: var(--gold, #d4a853); font-size: 12px; }


/* Category Pills */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    border: 1.5px solid var(--line, #eee);
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2, #555);
    transition: all 0.2s;
}

.cat-pill:hover {
    border-color: var(--gold, #d4a853);
    color: var(--navy-900, #0f1f2b);
}

.cat-pill.active {
    background: var(--gold, #d4a853);
    color: var(--navy-900, #0f1f2b);
    border-color: var(--gold, #d4a853);
}

.cat-pill i { font-size: 10px; }


/* Color Grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    background: #fff;
    border: 1.5px solid var(--line, #eee);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.color-item:hover { border-color: var(--gold, #d4a853); }

.color-item.active {
    border-color: var(--gold, #d4a853);
    background: rgba(212, 168, 83, 0.1);
    box-shadow: 0 0 0 1px var(--gold, #d4a853);
}

.color-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.color-item span {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--ink-2, #555);
    text-align: center;
}


/* Size Grid */
.size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 6px;
}

.size-item {
    padding: 8px;
    background: #fff;
    border: 1.5px solid var(--line, #eee);
    border-radius: 7px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-900, #0f1f2b);
    text-align: center;
    transition: all 0.2s;
}

.size-item:hover { border-color: var(--gold, #d4a853); }

.size-item.active {
    background: var(--gold, #d4a853);
    border-color: var(--gold, #d4a853);
    color: var(--navy-900, #0f1f2b);
}


/* Price Range */
.price-range-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.pri-field { display: flex; flex-direction: column; gap: 5px; }
.pri-field label { font-size: 10.5px; color: var(--muted, #888); font-weight: 600; }
.pri-field input {
    padding: 8px 10px;
    border: 1.5px solid var(--line, #eee);
    border-radius: 7px;
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    background: #fff;
}

.pri-field input:focus { outline: none; border-color: var(--gold, #d4a853); }

.price-presets { display: flex; gap: 6px; flex-wrap: wrap; }

.price-preset {
    padding: 5px 10px;
    background: #f5f1e8;
    border: 1px solid var(--line, #eee);
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 10.5px;
    color: var(--ink-2, #555);
    transition: all 0.2s;
}

.price-preset:hover { background: var(--gold, #d4a853); color: var(--navy-900, #0f1f2b); }


/* Discount Pills */
.discount-pills { display: flex; gap: 6px; flex-wrap: wrap; }

.discount-pill {
    padding: 8px 14px;
    background: #fff;
    border: 1.5px solid var(--line, #eee);
    border-radius: 7px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-2, #555);
    transition: all 0.2s;
}

.discount-pill:hover { border-color: var(--danger, #f44336); color: var(--danger, #f44336); }

.discount-pill.active {
    background: var(--danger, #f44336);
    color: #fff;
    border-color: var(--danger, #f44336);
}


/* Footer */
.fp-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--line, #eee);
    display: flex;
    gap: 8px;
    background: #fafafa;
}

.fp-footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 16px;
    border: 1.5px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s;
}

.fp-footer .btn.primary {
    flex: 1;
    background: var(--gold, #d4a853);
    color: var(--navy-900, #0f1f2b);
}

.fp-footer .btn.primary:hover { background: var(--navy-900, #0f1f2b); color: var(--gold, #d4a853); }

.fp-footer .btn.ghost {
    background: #fff;
    color: var(--ink-2, #555);
    border-color: var(--line, #eee);
}

.fp-footer .btn.ghost:hover { background: var(--danger, #f44336); color: #fff; border-color: var(--danger, #f44336); }

.hidden { display: none !important; }
