/* --- 1. Offer Banner (العرض الحصري) --- */
.exclusive-offer {
    padding: 60px 0;
}

.offer-banner {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #111 100%);
    border-radius: 20px;
    padding: 60px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* خلفية الصورة المشوشة */
.banner-bg {
    position: absolute;
    inset: 0;
    /* استبدل الرابط بصورة حقيقية إن وجدت، أو اتركه شفافاً إذا أردت */
    background-image: url('https://stmary.abanoubmaurice.com/wp-content/uploads/2026/03/gym-tire-bg.jpg'); 
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: grayscale(1);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* الجانب النصي */
.text-side {
    flex: 1;
    max-width: 600px;
}

.offer-badge {
    display: inline-block;
    background: var(--primary-lime);
    color: #000;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.offer-title {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 30px;
}

.highlight {
    color: var(--primary-lime);
}

/* زر التسوق */
.shop-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--text-white);
    color: #000;
    text-decoration: none;
    padding: 8px 8px 8px 25px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    margin-bottom: 40px;
}

.icon-circle {
    width: 45px;
    height: 45px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.shop-now-btn:hover {
    background: var(--primary-lime);
    transform: scale(1.05);
}

.shop-now-btn:hover .icon-circle {
    transform: rotate(-180deg);
}

/* العداد التنازلي */
.countdown-container {
    display: flex;
    gap: 15px;
}

.time-block {
    background: var(--text-white);
    color: #000;
    padding: 15px;
    border-radius: 12px;
    min-width: 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.time-val {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
}

.time-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* الجانب البصري */
.visual-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-group {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: -20px; /* للتداخل */
}

.p-img {
    height: clamp(150px, 25vh, 280px);
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

/* ترتيب الصور المتداخلة */
.p-2 { margin-right: -40px; z-index: 3; }
.p-1 { z-index: 2; opacity: 0.9; }
.p-3 { margin-right: -30px; z-index: 2; }
.p-4 { z-index: 1; }


/* --- 2. Featured Products (المنتجات المميزة) --- */
.featured-products {
    padding: 60px 0;
}

.section-header {
    margin-bottom: 40px;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
}

.view-all-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.view-all-link:hover {
    background: var(--text-dark);
    color: #fff;
    transform: translateX(-5px); /* حركة لليسار */
}

/* الفلتر */
.category-filter {
    margin-bottom: 50px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.filter-list {
    list-style: none;
    display: flex;
    gap: 12px;
}

.filter-btn {
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid #333;
    background: var(--card-white); /* تأكد من تعريف المتغير أو استخدم #141414 */
    color: var(--text-white);
    font-family: var(--font-ar);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-lime);
    border-color: var(--primary-lime);
    color: #000;
    box-shadow: 0 4px 15px rgba(158, 255, 0, 0.3);
}

/* شبكة المنتجات */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: #141414;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #222;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.product-image-box {
    background: #F2F2F2;
    border-radius: 15px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
}

.product-img {
    max-height: 80%;
    transition: var(--transition);
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.discount-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #D62828;
    color: #fff;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
}

.discount-tag.highlight {
    background: var(--primary-lime);
    color: #000;
}

.quick-add {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.quick-add:hover {
    background: var(--primary-lime);
    transform: rotate(15deg);
}

/* معلومات المنتج */
.brand-name { color: #999; font-size: 0.9rem; }
.product-title { font-size: 1.15rem; font-weight: 800; margin: 8px 0; line-height: 1.4; }
.rating { font-size: 0.85rem; color: #FFB800; margin-bottom: 10px; }
.reviews { color: #999; margin-right: 5px; }
.price { font-family: 'Montserrat', sans-serif; font-size: 1.25rem; font-weight: 800; color: var(--text-white); }
.old-price { text-decoration: line-through; color: #999; font-size: 1rem; margin-left: 8px; }



/* العناصر البصرية للكروت */
.product-visual {
    position: relative;
    z-index: 2;
    width: 200px; /* تم زيادة العرض ليحتوي الدائرة */
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px; /* مسافة بين النص والصورة */
}

.circle-bg {
    position: absolute;
    width: 100%; /* ليملأ الحاوية بالكامل */
    height: 100%;
    border-radius: 50%;
    z-index: 1;
}

.circle-bg.lime-glow {
    background: var(--primary-lime);
    box-shadow: 0 0 50px rgba(158, 255, 0, 0.4);
}

.float-img {
    position: relative;
    z-index: 2;
    max-height: 220px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    transition: var(--transition);
    width: 100%; /* لضمان عدم خروج الصورة */
    object-fit: contain;
}

.offer-card:hover .float-img {
    transform: scale(1.1) rotate(5deg);
}

/* --- Animations (الأنيميشنز) --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* إضافة reveal-left المفقودة */
@keyframes revealLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* تطبيق الكلاسات */
.fade-up { animation: fadeInUp 0.8s ease forwards; opacity: 0; }
.fade-in { animation: fadeIn 1s ease forwards; opacity: 0; }
.text-appear { animation: fadeIn 1.2s ease forwards; }
.reveal-text { animation: fadeInUp 0.8s ease 0.2s forwards; opacity: 0; }
.reveal-left { animation: revealLeft 1s ease 0.3s forwards; opacity: 0; } /* الكلاس الجديد */
.float-anim { animation: float 4s ease-in-out infinite; }
.float-anim-delay { animation: float 4s ease-in-out 1s infinite; }

/* --- استجابة الموبايل (تصحيح القسم الداخلي) --- */
@media (max-width: 768px) {
    .offers-grid { grid-template-columns: 1fr; }
    
    /* جعل الكرت يرتب عمودياً في الموبايل */
    .offer-card {
        flex-direction: column;
        height: auto; /* ارتفاع تلقائي */
        text-align: center;
        padding: 40px 20px;
        gap: 20px;
    }

    .product-visual {
        margin-right: 0; /* إلغاء الهامش الجانبي */
        width: 150px; /* تصغير حجم الصورة في الموبايل */
        height: 150px;
        margin-top: 10px;
    }
    
    .offer-content {
        align-items: center; /* توسيط المحتوى */
    }

    .collection-link {
        margin: 0 auto; /* توسيط الزر */
    }
}