/* ================================================================
   ملف الأنماط الرئيسي - EVOSABA
   ================================================================ */

/* إعادة تعيين الأنماط */
html {
    overflow-x: hidden;
    width: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    --primary-color: #E0B042;
    --primary-dark: #C89A35;
    --secondary-color: #000000;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f8f8;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

/* خطوط عربية */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

body {
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    padding-top: 155px;
    /* تعويض ارتفاع الشريط العلوي + النافبار المثبتة */
}

/* حاوية عامة */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* ================================================================
   الهيدر والنافبار
   ================================================================ */
.navbar {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: fixed;
    top: 35px;
    /* تحت الشريط العلوي */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* إخفاء قائمة الموبايل افتراضياً */
.navbar-menu-mobile {
    display: none;
}

/* تطبيق التصميم ذو السطرين للشاشات المتوسطة والكبيرة فقط */
@media (min-width: 769px) {
    .navbar {
        padding: 10px 0 0 0;
    }

    .navbar .container {
        flex-direction: column;
        gap: 0;
    }

    .navbar-brand img {
        height: 50px;
        margin-left: 10px;
    }

    /* تكبير الشعار في الشاشات الكبيرة ونقله للطرف الأيسر */
    @media (min-width: 771px) {
        .navbar-brand {
            position: absolute;
            left: 20px;
        }

        .navbar-brand img {
            height: 65px;
        }
    }

    /* السطر الأول: الشعار + الأيقونات */
    .navbar-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 5px 0 15px 0;
    }

    /* السطر الثاني: البحث + القائمة */
    .navbar-bottom {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 30px;
        width: 100%;
        padding: 12px 0;
    }

    /* إخفاء الهامبرغر وقائمة الموبايل في الشاشات الكبيرة */
    .hamburger-menu,
    .navbar-menu-mobile {
        display: none !important;
    }
}

/* للشاشات الصغيرة - التصميم الأصلي */
@media (max-width: 768px) {
    .navbar-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    /* إخفاء السطر السفلي (البحث والقائمة الديسكتوب) */
    .navbar-bottom {
        display: none !important;
    }

    /* إظهار الهامبرغر في الشاشات الصغيرة */
    .hamburger-menu {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* قائمة الموبايل المنسدلة */
    .navbar-menu-mobile {
        display: flex;
        position: fixed;
        top: 0;
        right: -320px;
        left: auto;
        height: 100vh;
        width: 300px;
        background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        gap: 0;
        z-index: 999;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        overflow-y: auto;
        list-style: none;
        margin: 0;
        padding: 80px 0 0 0;
    }

    .navbar-menu-mobile.active {
        right: 0;
    }

    .navbar-menu-mobile li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(224, 176, 66, 0.15);
        opacity: 0;
        transform: translateX(-30px);
    }

    .navbar-menu-mobile.active li {
        animation: slideInSmooth 0.6s ease-out forwards;
    }

    .navbar-menu-mobile.active li:nth-child(1) {
        animation-delay: 0.05s;
    }

    .navbar-menu-mobile.active li:nth-child(2) {
        animation-delay: 0.1s;
    }

    .navbar-menu-mobile.active li:nth-child(3) {
        animation-delay: 0.15s;
    }

    .navbar-menu-mobile.active li:nth-child(4) {
        animation-delay: 0.2s;
    }

    .navbar-menu-mobile.active li:nth-child(5) {
        animation-delay: 0.25s;
    }

    .navbar-menu-mobile.active li:nth-child(6) {
        animation-delay: 0.3s;
    }

    .navbar-menu-mobile.active li:nth-child(7) {
        animation-delay: 0.35s;
    }

    .navbar-menu-mobile.active li:nth-child(8) {
        animation-delay: 0.4s;
    }

    .navbar-menu-mobile li a {
        display: block;
        padding: 22px 30px;
        font-size: 16px;
        font-weight: 500;
        color: var(--white);
        text-decoration: none;
        position: relative;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .navbar-menu-mobile li a::before {
        content: '';
        position: absolute;
        right: -100%;
        top: 0;
        height: 100%;
        width: 100%;
        background: linear-gradient(90deg, transparent, rgba(224, 176, 66, 0.1), transparent);
        transition: right 0.5s ease;
    }

    .navbar-menu-mobile li a:hover::before {
        right: 100%;
    }

    .navbar-menu-mobile li a:hover {
        color: var(--primary-color);
        padding-right: 35px;
        background: rgba(224, 176, 66, 0.05);
    }

    @keyframes slideInSmooth {
        0% {
            opacity: 0;
            transform: translateX(-30px);
        }

        60% {
            opacity: 0.8;
            transform: translateX(5px);
        }

        100% {
            opacity: 1;
            transform: translateX(0);
        }
    }
}


.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
}

.navbar-brand img {
    height: 50px;
    margin-left: 10px;
}

/* تكبير الشعار في الشاشات الكبيرة ونقله للطرف الأيمن */
@media (min-width: 771px) {
    .navbar-brand {
        position: absolute;
        right: 70px;
        left: auto;
    }

    .navbar-brand img {
        height: 65px;
    }
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 0;
    font-size: 15px;
}

.navbar-menu a:hover {
    color: var(--primary-color);
}

/* البحث في النافبار */
.navbar-search {
    position: relative;
    flex: 0 1 500px;
    max-width: 500px;
    min-width: 250px;
}

.navbar-search input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s;
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
    background-color: var(--white);
}

.navbar-search button {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s;
    font-size: 16px;
}

.navbar-search button:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

/* نتائج البحث المباشر */
.search-results {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-height: 400px;
    overflow-y: auto;
    margin-top: 5px;
    display: none;
    z-index: 1000;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: background 0.3s;
}

.search-result-item:hover {
    background: var(--bg-light);
}

.search-result-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.search-result-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.search-result-info p {
    font-size: 12px;
    color: var(--text-light);
}

.search-result-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 14px;
}

/* أيقونات النافبار */
.navbar-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.navbar-icon {
    position: relative;
    color: var(--white);
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s;
    cursor: pointer;
}

.user-menu-container {
    position: relative;
    cursor: pointer;
}

.navbar-icon:hover {
    color: var(--primary-color);
}

.cart-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background: var(--danger-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* قائمة المستخدم المنسدلة */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* الطبقة الخلفية (Overlay) - للقائمة المحمولة */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* قائمة الهامبرغر - Hamburger Menu Icon */
.hamburger-menu {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
    transition: all 0.3s ease;
    color: var(--white);
    font-size: 24px;
}

.hamburger-menu:hover {
    transform: scale(1.1);
    color: var(--primary-color);
}

.hamburger-menu:active {
    transform: scale(0.95);
}

.hamburger-menu.active {
    color: var(--primary-color);
}

.hamburger-menu i {
    transition: all 0.3s ease;
}

/* ================================================================
   زر تحويل العملة
   ================================================================ */
.currency-toggle-mobile,
.currency-toggle-desktop {
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* تنسيق خاص لتصغير الزر في الموبايل */
.currency-toggle-mobile {
    padding: 2px 6px;
    font-size: 9px;
    border-width: 1px;
    height: 24px;
    /* تحديد ارتفاع مناسب */
}

.currency-toggle-mobile i {
    font-size: 10px;
}

.currency-toggle-mobile:hover,
.currency-toggle-desktop:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.currency-toggle-desktop i {
    font-size: 14px;
}

.currency-toggle-mobile .currency-label {
    font-size: 9px;
}

.currency-toggle-desktop .currency-label {
    font-size: 12px;
}

/* إخفاء زر العملة حسب حجم الشاشة */
.currency-toggle-mobile {
    display: flex;
}

.currency-toggle-desktop {
    display: none;
}

@media (min-width: 771px) {
    .currency-toggle-mobile {
        display: none;
    }

    .currency-toggle-desktop {
        display: flex;
    }
}

/* إضافة مسافة فوق الرئيسية في القائمة المحمولة */
.navbar-menu-mobile li:first-child {
    margin-top: 30px;
}

/* أيقونة ريال */
.riyal-icon {
    display: inline-block;
    width: auto;
    height: 1em;
    vertical-align: middle;
    margin-right: 3px;
    object-fit: contain;
}

/* تكبير كلمة ريال الحمراء في السعر الحالي */
.price-current .riyal-icon {
    height: 1.2em;
}

/* ================================================================
   الأزرار
   ================================================================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: #333;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ================================================================
   البطاقات
   ================================================================ */
.card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.card-text {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.card-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-current {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.price-old {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
}

/* ================================================================
   الشبكات (Grid)
   ================================================================ */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

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

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ================================================================
   الأقسام
   ================================================================ */
.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
}

/* ================================================================
   البانر الرئيسي
   ================================================================ */
.hero-banner {
    /* Fallback gradient if image doesn't load */
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    /* Default background image for desktop */
    background-image: url('../images/perfume-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated overlay effect */
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(201, 169, 97, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(201, 169, 97, 0.15) 0%, transparent 50%);
    pointer-events: none;
    animation: shimmer 8s infinite alternate;
    display: none;
    /* تم الإخفاء حسب الطلب */
}

@keyframes shimmer {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================================
   منتجات القسم
   ================================================================ */
.category-section {
    margin-bottom: 60px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.category-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
}

.view-more-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.view-more-btn:hover {
    color: var(--primary-dark);
}

/* ================================================================
   بطاقة المنتج
   ================================================================ */
.product-card {
    position: relative;
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
}

.product-card:hover {
    box-shadow: none;
    transform: none;
}

.product-card .card-img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #4A90D9;
    color: var(--white);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    z-index: 10;
}

.product-badge.bestseller {
    background: var(--primary-color);
}

.product-card .card-body {
    padding: 15px 5px 20px;
    text-align: center;
}

.product-card .card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-color);
    line-height: 1.3;
}

.product-card .card-title a {
    text-decoration: none;
    color: inherit;
}

.product-card .card-text {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* إخفاء التقييم بالنجوم */
.product-rating {
    display: none;
}

/* قسم السعر والتقييم معاً */
/* ترتيب عناصر السعر في الشاشات الكبيرة: قديم - رقم - أيقونة - تقييم (يمين لليسار) */
.product-card .card-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.product-card .rating-inline {
    order: 4;
    /* آخر عنصر (يسار) */
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-right: 5px;
}

.product-card .price-current:nth-of-type(2) {
    order: 3;
    /* أيقونة ريال (ثالث عنصر) */
    display: flex;
    align-items: center;
}

.product-card .price-current:nth-of-type(1) {
    order: 2;
    /* الرقم (ثاني عنصر) */
}

.product-card .price-old {
    order: 1;
    /* السعر القديم (يمين) */
    margin-left: 5px;
}

.product-card .rating-inline i {
    color: #ffd700;
    font-size: 10px;
}

/* تنسيق الأسعار للشاشات الصغيرة جداً (تحت 500 بكسل) */
/* تنسيق السعر الحالي - أحمر */
.price-current {
    color: var(--danger-color, #dc3545);
    font-weight: 700;
}

@media (max-width: 500px) {
    .product-card .card-price {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        justify-items: center;
        gap: 2px;
    }

    /* التقييم على اليسار (العمود 3 في RTL) */
    .product-card .rating-inline {
        grid-column: 3;
        grid-row: 1 / span 2;
        margin: 0;
        order: unset;
    }

    /* السعر الحالي (الرقم) - صف 1 عمود 2 */
    .product-card .price-current:nth-of-type(1) {
        grid-column: 2;
        grid-row: 1;
        order: unset;
        font-size: 20px;
        font-weight: 700;
        color: var(--danger-color);
        justify-self: center;
    }

    /* أيقونة ريال - صف 2 عمود 2 (تحت الرقم) */
    .product-card .price-current:nth-of-type(2) {
        grid-column: 2;
        grid-row: 2;
        order: unset;
        justify-self: center;
        margin-top: -5px;
    }

    /* السعر القديم على اليمين (العمود 1 في RTL) */
    .product-card .price-old {
        grid-column: 1;
        grid-row: 1 / span 2;
        margin: 0;
        order: unset;
        display: flex;
        flex-direction: column;
        align-items: center;
        line-height: 1.2;
    }

    /* إخفاء هامش المسافة القديم */
    .product-card .price-current+.price-current {
        margin: 0;
    }
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-actions .btn-primary {
    width: 100%;
    padding: 12px 20px;
    border-radius: 25px;
    background: transparent;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    border: 2px solid #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-actions .btn-primary:hover {
    background: #333;
    color: var(--white);
}

.product-actions .btn-outline {
    display: none;
}

/* ================================================================
   الفوتر
   ================================================================ */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

/* Social Media Icons */
.footer-section a i.fab {
    font-size: 24px;
    transition: all 0.3s ease;
}

.footer-section a:hover i.fab {
    transform: scale(1.2);
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

/* ================================================================
   النماذج
   ================================================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.form-control.error {
    border-color: var(--danger-color);
}

.error-message {
    color: var(--danger-color);
    font-size: 14px;
    margin-top: 5px;
}

.success-message {
    color: var(--success-color);
    font-size: 14px;
    margin-top: 5px;
}

/* ================================================================
   التنبيهات
   ================================================================ */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ================================================================
   الاستجابة (Responsive)
   ================================================================ */

/* الشاشات الكبيرة جداً (أكبر من 1200px) */
@media (min-width: 1201px) {
    .navbar-menu {
        gap: 25px;
    }

    .navbar-search {
        max-width: 450px;
    }
}

/* الشاشات الكبيرة (993px - 1200px) */
@media (min-width: 993px) and (max-width: 1200px) {
    .navbar-menu {
        gap: 18px;
    }

    .navbar-menu a {
        font-size: 14px;
    }

    .navbar-search {
        max-width: 350px;
        min-width: 200px;
    }

    .navbar-brand img:first-child {
        height: 55px !important;
    }

    .navbar-brand img:nth-child(2) {
        height: 22px !important;
    }
}

/* الشاشات المتوسطة (769px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .navbar .container {
        padding: 0 15px;
    }

    .navbar-menu {
        gap: 12px;
    }

    .navbar-menu a {
        padding: 6px 0;
        font-size: 12px;
        font-weight: 500;
    }

    .navbar-search {
        flex: 0 1 300px;
        max-width: 300px;
        min-width: 200px;
    }

    .navbar-search input {
        font-size: 12px;
        padding: 8px 38px 8px 10px;
    }

    .navbar-search button {
        width: 28px;
        height: 28px;
        font-size: 13px;
        left: 3px;
    }

    .navbar-brand img:first-child {
        height: 50px !important;
    }

    .navbar-brand img:nth-child(2) {
        height: 20px !important;
        margin-right: 8px !important;
    }

    .navbar-icons {
        gap: 15px;
    }

    .navbar-icon {
        font-size: 18px;
    }
}

/* تنسيق زر الدخول الجديد */
.login-btn {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* توسيط محتوى بطاقة المنتج */
.card-body {
    padding: 20px;
    text-align: center;
}

.product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    /* توسيط النجوم */
    gap: 5px;
    margin-bottom: 10px;
}

.card-price {
    display: flex;
    align-items: center;
    justify-content: center;
    /* توسيط السعر */
    gap: 10px;
    margin-bottom: 15px;
}

.product-actions {
    justify-content: center;
}

/* ================================================================
   الاستجابة (Responsive Grid)
   ================================================================ */

@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar-search {
        width: 100%;
        margin: 15px 0;
        max-width: none;
        order: 3;
        flex-basis: 100%;
    }

    .navbar-search input {
        padding: 12px 50px 12px 20px;
        font-size: 15px;
    }

    .navbar-search button {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    /* شاشات التابلت والموبايل الكبير: 2 منتج */
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .hero-banner {
        padding: 60px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* شاشات الموبايل المتوسطة إلى التابلت الصغير (551px - 750px) */
@media (min-width: 551px) and (max-width: 750px) {

    /* صورة العطر ZERO ONE للشاشات المتوسطة */
    .hero-banner {
        background-image: url('../images/mobile-hero-medium.png') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        min-height: 100vh;
    }

    /* إخفاء طبقة الشيمر/الخلفية الإضافية */
    .hero-banner::before {
        display: none !important;
    }
}

/* شاشات الموبايل الصغيرة (أقل من 550px): تحديث صورة البانر */
@media (max-width: 550px) {

    /* تحديث صورة الهيرو لصورة العطر ZERO ONE */
    .hero-banner {
        background-image: url('../images/mobile-hero-zero-one.png') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        min-height: 100vh;
    }

    /* إخفاء طبقة الشيمر/الخلفية الإضافية */
    .hero-banner::before {
        display: none !important;
    }
}

/* شاشات الموبايل الصغير جداً (أقل من 450px): 1 منتج */
@media (max-width: 450px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 24px;
    }

    .product-actions {
        flex-direction: column;
    }
}

/* ================================================================
   رسوم التحميل
   ================================================================ */
.loader {
    border: 3px solid var(--bg-light);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ================================================================
   أدوات مساعدة
   ================================================================ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.p-1 {
    padding: 10px;
}

.p-2 {
    padding: 20px;
}

.p-3 {
    padding: 30px;
}

/* ================================================================
   تحسينات الشاشات الكبيرة (≥729px)
   ================================================================ */
@media (min-width: 729px) {
    .hero-banner {
        background-image: url('../images/hero-background.jpg') !important;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .hero-logo-title {
        animation: fadeInDown 1s ease-out;
    }

    .hero-logo-title img {
        transition: transform 0.3s ease;
    }

    .hero-logo-title img:hover {
        transform: scale(1.05);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================================
   تحسينات النافبار للشاشات الصغيرة (أقل من 770 بكسل)
   ================================================================ */
/* إخفاء شعار الموبايل افتراضياً */
.logo-mobile {
    display: none;
}

/* إظهار شعار الديسكتوب افتراضياً */
.logo-desktop {
    display: inline-block;
}

@media (max-width: 770px) {

    /* ترتيب عناصر النافبار: هامبرغر يمين، شعار وسط، أيقونات يسار */
    .navbar-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
    }

    /* الهامبرغر على اليمين */
    .hamburger-menu {
        display: flex !important;
        order: 1;
        font-size: 20px;
        padding: 8px;
        color: var(--white);
        background: transparent;
        border: none;
        cursor: pointer;
    }

    /* الشعار في الوسط */
    .navbar-brand {
        order: 2;
        flex: 1;
        display: flex;
        justify-content: center;
        padding: 0;
    }

    /* إخفاء شعار الديسكتوب */
    .logo-desktop {
        display: none !important;
    }

    /* إظهار شعار الموبايل */
    .logo-mobile {
        display: inline-block !important;
        height: 50px !important;
        max-height: 50px !important;
    }

    /* الأيقونات على اليسار */
    .navbar-icons {
        order: 3;
        display: flex;
        gap: 8px;
        align-items: center;
    }

    /* تصغير الأيقونات */
    .navbar-icon {
        font-size: 14px !important;
    }

    .navbar-icon span {
        display: none;
        /* إخفاء النصوص */
    }

    /* تصغير badge السلة */
    .cart-badge {
        width: 14px;
        height: 14px;
        font-size: 8px;
        top: -4px;
        left: -4px;
    }

    /* تقليل padding النافبار */
    .navbar {
        padding: 5px 0;
    }

    /* تقليل padding-top للـ body في الموبايل */
    body {
        padding-top: 100px;
    }
}

/* تعديل الشبكة للشاشات المتوسطة والصغيرة (تابلت وموبايل كبير) */
@media (min-width: 350px) and (max-width: 769px) {
    .grid-4 {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    /* تصغير حجم الخط والمسافات لتناسب العرض بإثنين */
    .product-card .card-body {
        padding: 10px 5px;
    }

    .product-card .card-title {
        font-size: 13px;
        height: auto;
        min-height: 40px;
        /* لضمان تساوي الارتفاع */
    }

    .product-card .card-img {
        height: 180px;
        /* تعديل ارتفاع الصورة */
    }
}

/* ================================================================
   زر واتساب العائم
   ================================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #C9A961 0%, #B8965A 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(201, 169, 97, 0.5);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(201, 169, 97, 0.7);
    background: linear-gradient(135deg, #B8965A 0%, #C9A961 100%);
}

.whatsapp-float i {
    animation: shake 1s ease-in-out infinite;
}

@keyframes pulse-whatsapp {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(201, 169, 97, 0.5);
    }

    50% {
        box-shadow: 0 4px 30px rgba(201, 169, 97, 0.8), 0 0 0 10px rgba(201, 169, 97, 0.15);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: rotate(-10deg);
    }

    20%,
    40%,
    60%,
    80% {
        transform: rotate(10deg);
    }
}

/* للموبايل */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        left: 20px;
    }
}

/* ================================================================
   تحسينات تصميم السلة للموبايل
   ================================================================ */
@media (max-width: 768px) {

    /* تحسين تخطيط السلة */
    section .container>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* تحسين بطاقة المنتج في السلة */
    .card>div[style*="grid-template-columns: 120px"] {
        grid-template-columns: 100px 1fr !important;
        gap: 12px !important;
    }

    .card img[style*="width: 120px"] {
        width: 100px !important;
        height: 100px !important;
    }

    /* نقل السعر الإجمالي والحذف لصف جديد */
    .card>div>div:last-child {
        grid-column: 1 / -1 !important;
        text-align: right !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #e0e0e0;
    }

    /* تصغير حجم الخط للأسعار */
    .card div[style*="font-size: 20px"] {
        font-size: 16px !important;
    }

    .card div[style*="font-size: 22px"] {
        font-size: 18px !important;
    }

    /* تحسين أزرار التحكم في الكمية */
    .card div[style*="border: 1px solid"] input {
        width: 50px !important;
    }

    /* ملخص الطلب - إزالة sticky للموبايل */
    .card[style*="position: sticky"] {
        position: static !important;
    }
}

@media (max-width: 550px) {

    /* تحسينات إضافية للشاشات الأصغر */
    .card h3[style*="font-size: 18px"] {
        font-size: 16px !important;
    }

    .card>div>div[style*="display: flex; align-items: center"] {
        flex-wrap: wrap;
        gap: 8px !important;
    }
}

/* ================================================================
   تحسينات مربع البحث للموبايل
   ================================================================ */
@media (max-width: 768px) {

    /* تحسين مربع البحث في صفحة البحث */
    section form[style*="max-width: 500px"] {
        max-width: 100% !important;
        padding: 0 10px !important;
    }

    section h1[style*="font-size: 32px"] {
        font-size: 24px !important;
        padding: 0 10px;
    }

    /* تحسين حقل البحث */
    section form input[type="text"] {
        padding: 12px 15px !important;
        font-size: 14px !important;
    }

    section form button[type="submit"] {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 550px) {

    /* تحسينات إضافية لمربع البحث على الشاشات الصغيرة جداً */
    section form div[style*="display: flex"] {
        flex-direction: column !important;
        border-radius: 15px !important;
    }

    section form input[type="text"] {
        border-radius: 15px 15px 0 0 !important;
        border-bottom: 1px solid var(--primary-color) !important;
    }

    section form button[type="submit"] {
        border-radius: 0 0 15px 15px !important;
        width: 100%;
    }

    /* تصغير العنوان أكثر */
    section h1[style*="font-size"] {
        font-size: 20px !important;
        margin-bottom: 20px !important;
    }
}