/* ===== PROMOTION PAGE SPECIFIC ===== */
#special-offers {
    background: var(--color-cream);
    padding: 60px 0;
}

.section-header {
    margin-bottom: 48px;
}

.offers-section {
    position: relative;
    z-index: 1;
}

/* Hero مخصص للعروض */
.category-hero {
    padding: calc(var(--header-height) + 48px) 0 40px;
    background: linear-gradient(135deg, var(--color-black) 0%, #1a2a24 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.category-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.category-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.category-hero .hero-content .label {
    color: var(--color-gold-light);
    font-weight: 600;
    font-size: clamp(0.75rem, 0.85vw, 0.85rem);
    letter-spacing: 0.2em;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    padding: 6px 24px;
    border-radius: 50px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 16px;
}

.category-hero .hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 12px;
}

.category-hero .hero-content h1 .highlight {
    color: var(--color-gold);
}

.category-hero .hero-content p {
    font-size: clamp(0.95rem, 1.2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.80);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== OFFERS GRID ===== */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    transition: all 0.5s ease;
    min-height: 200px;
}

/* ===== OFFER CARD ===== */
.offer-card {
    background: white;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    text-align: center;
    border: 2px solid #f1f1f1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary, #FF6B35);
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.4s ease;
}

.offer-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary, #FF6B35);
}

.offer-card:hover::before {
    transform: scaleX(1);
}

.offer-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #FF4081;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: clamp(0.6rem, 0.8vw, 0.8rem);
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(255, 64, 129, 0.4);
    animation: pulse 2s infinite;
}

.offer-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f9f9f9;
    border-radius: 15px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
}

.offer-card:hover .offer-image img {
    transform: scale(1.1);
}

.offer-card h5 {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 800;
    color: var(--dark, #2c3e50);
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 8px;
    flex-grow: 1;
}

.offer-card h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary, #FFD166);
    border-radius: 2px;
    transition: all 0.4s ease;
}

.offer-card:hover h5::after {
    width: 80px;
    background: var(--primary, #FF6B35);
}

.offer-weight {
    font-size: clamp(0.8rem, 1vw, 0.95rem);
    color: var(--primary-dark, #E94E1B);
    font-weight: bold;
    margin-bottom: 10px;
    background: rgba(255, 209, 102, 0.15);
    padding: 6px 12px;
    border-radius: 10px;
    display: inline-block;
    flex-shrink: 0;
}

.offer-pricing {
    margin-bottom: 14px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.old-price {
    font-size: clamp(0.8rem, 1vw, 1rem);
    color: #ff0000;
    text-decoration: line-through;
    font-weight: 600;
}

.new-price {
    font-size: clamp(1.1rem, 1.6vw, 1.5rem);
    font-weight: bold;
    color: #4CAF50;
    text-shadow: 0 2px 5px rgba(76, 175, 80, 0.3);
    animation: glow 3s infinite;
    padding: 4px 10px;
    border-radius: 10px;
    background: rgba(76, 175, 80, 0.1);
}

@keyframes glow {
    0% { box-shadow: 0 0 8px rgba(76, 175, 80, 0.5); }
    50% { box-shadow: 0 0 15px rgba(76, 175, 80, 0.8); }
    100% { box-shadow: 0 0 8px rgba(76, 175, 80, 0.5); }
}

.add-to-cart,
.add-to-scale {
    background: linear-gradient(135deg, var(--primary, #FF6B35) 0%, var(--primary-dark, #E94E1B) 100%);
    color: white;
    border: none;
    width: 100%;
    padding: 8px 10px;
    font-size: clamp(0.75rem, 0.8vw, 0.85rem);
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    font-family: 'Almarai', sans-serif;
    box-shadow: 0 5px 15px rgba(233, 78, 27, 0.3);
    flex-shrink: 0;
    min-height: 34px;
}

.add-to-cart::after,
.add-to-scale::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20px;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(25deg);
    transition: all 0.6s;
}

.add-to-cart:hover,
.add-to-scale:hover {
    background: linear-gradient(135deg, var(--primary-dark, #E94E1B) 0%, var(--primary, #FF6B35) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 78, 27, 0.4);
}

.add-to-cart:hover::after,
.add-to-scale:hover::after {
    left: 120%;
}

.add-to-cart:disabled,
.add-to-scale:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== FILTERS ===== */
.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
}

.filter-tab {
    background: white;
    border: 2px solid #eee;
    border-radius: 50px;
    padding: 12px 28px;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 700;
    color: var(--dark, #2c3e50);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: center;
    z-index: 1;
    min-height: var(--touch-min);
}

.filter-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    transition: all 0.4s ease;
}

.filter-tab:hover {
    transform: translateY(-5px);
    border-color: var(--primary, #FF6B35);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.2);
}

.filter-tab.active {
    color: white;
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.filter-tab[data-category="all"]::before,
.filter-tab[data-category="all"].active::before {
    background: linear-gradient(135deg, #FF0000 0%, #DC143C 100%);
    opacity: 1;
}

.filter-tab[data-category="all"] {
    color: #FFD700;
}

.filter-tab[data-category="all"].active {
    color: #FFD700;
}

.filter-tab:not([data-category="all"]).active::before {
    background: linear-gradient(135deg, var(--primary, #FF6B35) 0%, var(--primary-dark, #E94E1B) 100%);
    opacity: 1;
}

.filter-tab:not([data-category="all"]):hover::before {
    background: linear-gradient(135deg, var(--primary, #FF6B35) 0%, var(--primary-dark, #E94E1B) 100%);
    opacity: 0.1;
}

.filter-tab:not([data-category="all"]):hover {
    color: var(--primary-dark, #E94E1B);
}

/* ===== LOAD MORE ===== */
.load-more-container {
    text-align: center;
    margin: 30px 0;
    padding: 15px;
    width: 100%;
}

.load-more-btn {
    background: var(--color-emerald);
    color: #fff;
    border: none;
    padding: 14px 30px;
    font-size: clamp(0.9rem, 1vw, 1rem);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(26, 77, 62, 0.2);
    font-family: var(--font-body);
    min-width: 180px;
    margin: 10px auto;
    min-height: var(--touch-min);
}

.load-more-btn:hover {
    background: var(--color-emerald-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(26, 77, 62, 0.3);
}

.load-more-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none !important;
}

.load-more-btn .spinner {
    display: none;
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

.load-more-btn.loading .spinner {
    display: inline-block;
}

.no-offers {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
}

.no-offers i {
    font-size: 60px;
    color: #ccc;
    margin-bottom: 20px;
    display: block;
}

.no-offers h3 {
    font-size: 20px;
    color: #333;
    margin: 10px 0;
}

.no-offers p {
    color: #666;
}

/* ===== ZOOM BUTTON ===== */
.zoom-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s, transform 0.2s;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
}

.zoom-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-hero {
        padding: calc(var(--header-height) + 32px) 0 28px;
    }
    .category-hero .hero-content h1 {
        font-size: 1.8rem;
    }
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .offer-card {
        padding: 12px;
        min-height: 280px;
    }
    .offer-badge {
        top: 6px;
        left: 6px;
        padding: 2px 8px;
        font-size: 0.6rem;
    }
    .offer-image {
        margin-bottom: 10px;
    }
    .offer-card h5 {
        font-size: 0.95rem;
        margin-bottom: 6px;
        padding-bottom: 6px;
        min-height: 40px;
    }
    .offer-weight {
        font-size: 0.75rem;
        padding: 4px 10px;
        margin-bottom: 6px;
    }
    .offer-pricing {
        margin-bottom: 10px;
        gap: 8px;
    }
    .new-price {
        font-size: 1rem;
    }
    .old-price {
        font-size: 0.7rem;
    }
    .add-to-cart,
    .add-to-scale {
        padding: 6px 8px;
        font-size: 0.7rem;
        min-height: 30px;
        border-radius: 8px;
    }

    /* ===== MOBILE FILTERS SLIDER ===== */
    #filters-container {
        padding: 10px 0 !important;
        margin-bottom: 16px !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none !important;
    }
    #filters-container::-webkit-scrollbar {
        display: none;
    }

    .filter-slide {
        flex: 0 0 100% !important;
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
        scroll-snap-align: start !important;
        padding: 0 4px;
    }

    .filter-tab {
        font-size: 0.65rem !important;
        padding: 6px 2px !important;
        min-height: 40px !important;
        gap: 2px !important;
        border-radius: 30px !important;
        border: 1.5px solid #eee !important;
        background: #fff;
        justify-content: center;
        text-align: center;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        line-height: 1.3 !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .filter-tab i {
        font-size: 0.7rem;
        margin-left: 2px;
        flex-shrink: 0;
    }

    .filter-tab.active {
        border-color: var(--primary, #FF6B35) !important;
        background: linear-gradient(135deg, var(--primary, #FF6B35) 0%, var(--primary-dark, #E94E1B) 100%) !important;
        color: #fff !important;
        transform: scale(1.02);
    }

    /* إخفاء أي أسهم أو نقاط إن وجدت */
    .slider-nav,
    .slider-dots {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .category-hero .hero-content h1 {
        font-size: 1.5rem;
    }
    .category-hero .hero-content p {
        font-size: 0.9rem;
    }
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .offer-card {
        padding: 10px;
        min-height: 260px;
    }
    .offer-card h5 {
        font-size: 0.85rem;
        min-height: 36px;
    }
    .new-price {
        font-size: 0.95rem;
    }
    .add-to-cart,
    .add-to-scale {
        padding: 5px 6px;
        font-size: 0.6rem;
        min-height: 26px;
    }
}

@media (max-width: 360px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .offer-card {
        padding: 8px;
        min-height: 240px;
    }
    .offer-card h5 {
        font-size: 0.75rem;
        min-height: 30px;
    }
    .add-to-cart,
    .add-to-scale {
        font-size: 0.55rem;
        padding: 4px 4px;
        min-height: 22px;
    }
}