:root {
    --na-primary: #1a428a;
    --na-gold: #d4af37;
    --na-text-dark: #2d3436;
    --na-text-gray: #636e72;
    --na-bg-light: #f9f9f9;
}

.na-section {
    padding: 60px 0;
    background-color: var(--na-bg-light);
    direction: rtl;
    display: block;
    clear: both;
}

.na-header-container {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.na-header-container .na-title {
    font-size: 2rem;
    color: var(--na-primary);
    font-weight: 800;
    margin-bottom: 10px;
}

.na-header-container .na-subtitle {
    color: var(--na-text-gray);
    font-size: 1rem;
}

.na-title-line {
    width: 60px;
    height: 3px;
    background: var(--na-gold);
    margin: 10px auto;
}

.na-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.na-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* عمودين للموبايل */
    gap: 20px;
}

/* الحاوية الرئيسية للبطاقة */
.na-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.na-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* صندوق الصورة */
.na-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* جعل الصورة مربعة دائماً */
    background: #f9f9f9;
    overflow: hidden;
}

.na-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* لضمان عدم تشوه الصورة */
    transition: transform 0.5s ease;
}

.na-card:hover .na-img-box img {
    transform: scale(1.08);
}

/* زر الإضافة للسلة فوق الصورة */
.na-cart-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--primary-color, #2c3e50);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 2;
}

.na-cart-btn:hover {
    background: var(--accent-color, #d4af37);
    transform: rotate(360deg);
}

/* صندوق المعلومات */
.na-info-box {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: right;
}

/* القسم (Category) */
.na-cat {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

/* اسم المنتج */
.na-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.4;
    height: 2.8em; /* يضمن توحيد الارتفاع لسطرين */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* تخطيط السعر والتفاصيل */
.na-price-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f5f5f5;
}

/* السعر */
.na-price-wrap {
    color: var(--primary-color, #2c3e50);
}

.na-price-text {
    font-size: 1.2rem;
    font-weight: 700;
}

.na-curr {
    font-size: 0.8rem;
    margin-right: 3px;
    color: #666;
}

/* رابط التفاصيل (السهم) */
.na-details-link {
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s ease;
    text-decoration: none;
}

.na-details-link:hover {
    background: #e0e0e0;
    color: var(--accent-color, #d4af37);
    padding-right: 5px; /* حركة بسيطة للسهم */
}

/* تحسينات للجوال */
@media (max-width: 480px) {
    .na-info-box {
        padding: 10px;
    }
    .na-name {
        font-size: 0.9rem;
    }
    .na-price-text {
        font-size: 1.1rem;
    }
}

/* Pagination */
.na-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.na-page-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--na-primary);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #eee;
}

.na-page-item.active, .na-page-item:hover {
    background: var(--na-primary);
    color: #fff;
}

/* Responsiveness */
@media (min-width: 992px) {
    .na-grid { grid-template-columns: repeat(4, 1fr); }
}



/* --- تمديد نفس متغيرات الألوان لضمان التناسق --- */
:root {
    --hero-primary: #1a428a; /* الأزرق الداكن من New Arrivals */
    --hero-accent: #d4af37; /* الذهبي من New Arrivals */
    --hero-text-light: #ffffff;
    --hero-text-gray: #636e72;
    --hero-bg-overlay: rgba(0, 0, 0, 0.4); /* طبقة تظليل للخلفية */
}

/* سكشن الـ Hero الأساسي */
.hero-section {
    position: relative;
    width: 100%;
    /* ارتفاع مناسب للموبايل - 70% من ارتفاع الشاشة */
    height: 70vh; 
    min-height: 400px;
    background-image: url('../img/hero-bg.png'); /* صورة مخصصة للموبايل */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl; /* لضمان اتجاه النص العربي */
}

/* طبقة تظليل داكنة لضمان مقروئية النص */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--hero-bg-overlay);
    z-index: 1;
}

/* حاوية المحتوى */
.hero-container {
    position: relative;
    z-index: 2; /* فوق طبقة التظليل */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center; /* توسيع المحتوى في الموبايل */
}

/* العنوان الرئيسي */
.hero-title {
    font-size: 2.2rem; /* كبير وواضح على الموبايل */
    color: var(--hero-text-light);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* ظل للنص */
}

/* العنوان الفرعي */
.hero-subtitle {
    font-size: 1rem;
    color: var(--hero-text-light);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* زر تسوق الآن */
.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--hero-accent); /* نفس لون الـ Badge الذهبي */
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px; /* زوايا دائرية بالكامل لمظهر عصري */
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4); /* ظل بلون الزر */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-3px); /* تأثير ارتفاع بسيط */
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

/* --- استجابة الشاشات الكبيرة (الأجهزة اللوحية والكمبيوتر) --- */
@media (min-width: 768px) {
    .hero-section {
        height: 85vh; /* ارتفاع أكبر للشاشات الكبيرة */
        background-image: url('../img/hero-bg.png'); /* صورة مخصصة للشاشات الكبيرة */
        text-align: right; /* محاذاة النص لليمين */
        justify-content: flex-start; /* بدء المحتوى من اليمين */
    }
    
    .hero-container {
        padding: 0 60px;
        text-align: right; /* محاذاة النص داخل الحاوية */
        max-width: 800px; /* تحديد عرض المحتوى */
        margin-right: 10%; /* إزاحة المحتوى قليلاً عن الحافة */
    }

    .hero-title {
        font-size: 3.5rem; /* عنوان أضخم للشاشات الكبيرة */
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}