/* Jarir-Inspired Modern Styles (Desktop & Mobile) */
:root {
    --primary-blue: #1a3a5c; /* Jarir Dark Blue */
    --secondary-blue: #2d58a7; /* Lighter Blue for interactions */
    --accent-orange: #ff9e00; /* Jarir Orange */
    --accent-red: #d4070e; /* Sale/Price Red */
    --bg-light: #f4f6f8;
    --white: #ffffff;
    --text-dark: #333333;
    --text-gray: #666666;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* Smooth Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
}

/* تحسينات عامة للموبايل */
@media (max-width: 991px) {
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    body {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* منع التمرير الأفقي */
    * {
        max-width: 100%;
    }
    
    /* تحسين الصور */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* --- Header Styles --- */
.header-top {
    background-color: var(--primary-blue);
    color: #fff;
    font-size: 12px;
    padding: 4px 0;
}

.header-top a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.header-top a:hover { opacity: 1; }

.header-main {
    background: var(--white);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 100;
}

.header-main .row {
    min-height: 100px; /* تكبير 25% */
}

.logo-img {
    height: 100px; /* تكبير 25% (من 80px إلى 100px) */
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,0.12));
    background: #ffffff;
    padding: 10px 15px;
    border-radius: 12px;
    mix-blend-mode: normal;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.logo-img:hover {
    transform: scale(1.03) translateY(-2px);
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.15));
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

@media (max-width: 991px) {
    .logo-img {
        height: 80px; /* تقليل الارتفاع للموبايل */
        padding: 8px 12px;
        max-width: 100%;
    }
}

/* Logo Container - Enhanced styling */
.logo-container {
    background: #ffffff;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    min-height: 100px; /* تكبير 25% */
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* Service Buttons */
.service-buttons-stack {
    margin-right: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    border-radius: 12px;
    padding: 8px;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 200px;
}

.service-buttons-row {
    width: 100%;
    max-width: 180px; /* نفس عرض الأيقونات */
    height: 35px !important;
    flex-shrink: 0;
    flex-grow: 0;
    margin: 0 auto; /* توسيط */
    position: relative;
    z-index: 1;
    display: flex;
    gap: 6px;
}

.service-buttons-row .service-btn {
    min-width: auto;
    flex: 1;
    padding: 6px 10px;
    font-size: 11px;
    position: relative;
    z-index: 1;
    height: 100%;
    background: transparent !important; /* إزالة أي background افتراضي */
}

.service-btn {
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

/* Service Buttons Colors - Must be at the end to override everything */
.service-btn.service-btn-book,
a.service-btn.service-btn-book,
.service-buttons-row .service-btn.service-btn-book,
.service-buttons-row a.service-btn.service-btn-book {
    background-color: #dc3545 !important; /* أحمر */
    background: #dc3545 !important;
    background-image: none !important;
    color: #fff !important;
    border: none !important;
}

.service-btn.service-btn-book:hover,
a.service-btn.service-btn-book:hover,
.service-buttons-row .service-btn.service-btn-book:hover,
.service-buttons-row a.service-btn.service-btn-book:hover {
    background-color: #c82333 !important;
    background: #c82333 !important;
    background-image: none !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.service-btn.service-btn-print,
a.service-btn.service-btn-print,
.service-buttons-row .service-btn.service-btn-print,
.service-buttons-row a.service-btn.service-btn-print {
    background-color: #28a745 !important; /* أخضر */
    background: #28a745 !important;
    background-image: none !important;
    color: #fff !important;
    border: none !important;
}

.service-btn.service-btn-print:hover,
a.service-btn.service-btn-print:hover,
.service-buttons-row .service-btn.service-btn-print:hover,
.service-buttons-row a.service-btn.service-btn-print:hover {
    background-color: #20c997 !important;
    background: #20c997 !important;
    background-image: none !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.service-btn i {
    font-size: 20px;
}

/* Ad Banner Rectangle (Wide & Tall) */
.ad-banner-square {
    display: block;
    width: 150px; /* تصغير العرض */
    height: 100%; /* نفس ارتفاع الحاوية */
    min-height: 80px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    position: relative;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1), inset 0 0 0 2px rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    flex-shrink: 0;
    align-self: stretch;
    border: 2px solid rgba(255,255,255,0.4);
    box-sizing: border-box;
}

.ad-banner-square:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.ad-banner-content-square {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    height: 100%;
    color: #fff;
}

.ad-banner-image-square {
    width: 35px; /* تكبير قليلاً */
    height: 35px; /* تكبير قليلاً */
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.3));
    animation: float 3s ease-in-out infinite;
    flex-shrink: 0;
    margin-left: 3px; /* مسافة من النص */
}

.ad-text-wrapper-square {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.ad-badge-square {
    background: rgba(255,255,255,0.3);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    align-self: flex-start;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.ad-text-square {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
    gap: 5px;
}

.ad-text-square strong {
    font-size: 11px; /* تصغير */
    font-weight: 800;
}

.ad-text-square small {
    font-size: 8px; /* تصغير */
    opacity: 0.95;
}

/* Ad Banner Single - Full Width (Large) */
.ad-banner-single-large {
    display: block;
    width: 100%;
    height: 100% !important; /* يملأ الحاوية بالكامل */
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15), inset 0 0 0 2px rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #ffb347 100%);
    margin-right: 0;
    margin-bottom: 0;
    border: 2px solid rgba(255,255,255,0.4);
    box-sizing: border-box;
}

/* Ad Banner Single - Full Width (Original - للاستخدام في أماكن أخرى) */
.ad-banner-single {
    display: block;
    width: 100%;
    height: 70px; /* جزء من الارتفاع الكلي (70px + 45px للأزرار = 115px) */
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15), inset 0 0 0 2px rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #ffb347 100%);
    margin-right: 0;
    margin-bottom: 0;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.4);
    box-sizing: border-box;
}

.ad-banner-single-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.ad-banner-single:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.ad-banner-single-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.ad-banner-single-large:hover::before {
    left: 100%;
}

.ad-banner-single::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.ad-banner-single:hover::before {
    left: 100%;
}

.ad-banner-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #ffb347 100%);
    position: relative;
    overflow: hidden;
}

.ad-banner-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.ad-banner-link:hover::before {
    left: 100%;
}

/* محتوى المساحة الإعلانية الكبيرة */
.ad-banner-content-large {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 18px;
    height: 100%;
    color: #fff;
    position: relative;
    width: 100%;
}

.ad-banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    height: 100%;
    color: #fff;
    position: relative;
}

/* صورة السلة المليانة */
.ad-banner-cart-image {
    width: 50px; /* تكبير */
    height: 50px; /* تكبير */
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
    animation: float 3s ease-in-out infinite;
    display: block;
    margin-left: 5px; /* مسافة من النص */
}

.ad-banner-image {
    width: 45px;
    height: 45px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* نص المساحة الإعلانية الكبيرة */
.ad-text-wrapper-large {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0; /* منع تغطية الصورة على النص */
}

.ad-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

/* شارة المساحة الإعلانية الكبيرة */
.ad-badge-large {
    background: rgba(255,255,255,0.4);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: bold;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    align-self: flex-start;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.ad-badge {
    background: rgba(255,255,255,0.35);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: bold;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    align-self: flex-start;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* نص المساحة الإعلانية الكبيرة */
.ad-text-large {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
    gap: 5px;
}

.ad-text-slide-large {
    font-size: 15px; /* تصغير */
    font-weight: 800;
    animation: slideInRight 1s ease-out;
    line-height: 1.2;
}

.ad-text-slide-delay-large {
    font-size: 10px; /* تصغير */
    opacity: 0.95;
    animation: slideInRight 1.2s ease-out;
    line-height: 1.2;
}

.ad-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    gap: 4px;
}

.ad-text-slide {
    font-size: 14px;
    font-weight: 800;
    animation: slideInRight 1s ease-out;
    line-height: 1.3;
}

.ad-text-slide-delay {
    font-size: 10px;
    opacity: 0.95;
    animation: slideInRight 1.2s ease-out;
    line-height: 1.3;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Carousel Controls */
.ad-carousel-control {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.3s;
}

.ad-carousel-control:hover {
    opacity: 1;
    background: rgba(255,255,255,0.5);
}

.ad-carousel-control .carousel-control-prev-icon,
.ad-carousel-control .carousel-control-next-icon {
    width: 12px;
    height: 12px;
}

@media (max-width: 1200px) {
    .ad-banner-single {
        height: 120px;
        margin-right: 15px;
        border: 2px solid rgba(255,255,255,0.4);
        box-sizing: border-box;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15), inset 0 0 0 2px rgba(255,255,255,0.3);
    }
    .ad-banner-content {
        padding: 15px 25px;
        gap: 20px;
    }
    .ad-banner-image {
        width: 75px;
        height: 75px;
    }
    .ad-text-slide {
        font-size: 16px; /* تصغير من 20px */
    }
    .ad-text-slide-delay {
        font-size: 11px; /* تصغير من 13px */
    }
    .ad-badge {
        font-size: 9px; /* تصغير */
        padding: 3px 8px;
    }
    .ad-banner-square {
        border: 2px solid rgba(255,255,255,0.4);
        box-sizing: border-box;
        box-shadow: 0 3px 15px rgba(0,0,0,0.1), inset 0 0 0 2px rgba(255,255,255,0.3);
    }
}

/* Booking/Printing Button */
.booking-btn {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #ffb347 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 158, 0, 0.3);
    text-decoration: none;
    white-space: nowrap;
}

.booking-btn:hover {
    background: linear-gradient(135deg, #ffb347 0%, var(--accent-orange) 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 158, 0, 0.4);
}

.booking-btn i {
    font-size: 18px;
}

@media (max-width: 991px) {
    .booking-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
    .booking-btn span {
        display: none;
    }
}

/* Search Bar - Jarir Style */
.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    border: 2px solid var(--border-color);
    border-radius: 4px; /* Slight radius like Jarir */
    padding: 10px 40px 10px 15px;
    height: 45px;
    font-size: 14px;
    background-color: #f9f9f9;
    transition: all 0.3s;
}

.search-input:focus {
    background-color: #fff;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(45, 88, 167, 0.1);
}

.search-btn {
    position: absolute;
    left: 5px;
    top: 5px;
    height: 35px;
    width: 35px;
    border: none;
    background: transparent;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User Actions Area */
.user-actions-area {
    padding: 8px 10px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 180px; /* عرض مناسب للأيقونات */
    height: 60px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto; /* توسيط */
}

/* Header Icons */
.header-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-dark);
    width: 50px; /* تكبير */
    height: 50px; /* تكبير */
    position: relative;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.header-icon-link:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.header-icon-link i {
    font-size: 26px; /* تكبير */
    margin: 0;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.header-icon-link:hover i { 
    color: var(--secondary-blue);
    transform: scale(1.1);
}

/* إزالة النصوص من الأيقونات - أيقونات فقط */
.header-icon-link span:not(.cart-badge) {
    display: none;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--accent-red);
    color: #fff;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.4);
    z-index: 10;
    padding: 0 4px;
}

.wishlist-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--accent-red);
    color: #fff;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.4);
    z-index: 10;
    padding: 0 3px;
}

.wishlist-badge-mobile {
    position: absolute;
    top: 2px;
    right: 50%;
    transform: translateX(50%);
    background: var(--accent-red);
    color: #fff;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.4);
    z-index: 10;
    padding: 0 2px;
}

/* Navigation Bar (Desktop) */
.navbar-desktop {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 99;
}

.navbar-desktop .nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-desktop .nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 12px 15px !important;
    font-size: 15px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-blue) !important;
    border-bottom-color: var(--secondary-blue);
    background-color: #f8f9fa;
}

.nav-link.dropdown-toggle::after {
    margin-right: 5px;
    margin-left: 0;
}

/* Nav Search Container - Jarir Style */
.nav-search-container {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 15px;
    z-index: 1000;
}

.nav-search-input {
    width: 350px;
    height: 42px;
    padding: 10px 45px 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
    background-color: #f5f5f5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    font-family: 'Tajawal', 'Cairo', sans-serif;
}

.nav-search-input:focus {
    width: 450px;
    background-color: #fff;
    border-color: var(--secondary-blue);
    box-shadow: 0 4px 12px rgba(45, 88, 167, 0.15);
    transform: translateY(-1px);
}

.nav-search-input::placeholder {
    color: #999;
    font-size: 13px;
}

.nav-search-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: var(--secondary-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(45, 88, 167, 0.2);
}

.nav-search-btn:hover {
    background: var(--primary-blue);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(45, 88, 167, 0.3);
}

.nav-search-input:focus + .nav-search-btn {
    background: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(45, 88, 167, 0.3);
}

/* Search Suggestions Dropdown - Jarir Style */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    max-height: 500px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
    border: 1px solid var(--border-color);
    animation: slideDown 0.3s ease-out;
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-suggestions-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 13px;
    background: #f8f9fa;
}

.search-suggestions-category {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    background: #f8f9fa;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.search-suggestion-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: var(--text-dark);
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background: #f8f9fa;
    padding-right: 20px;
}

.search-suggestion-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.search-suggestion-item-content {
    flex: 1;
    min-width: 0;
}

.search-suggestion-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggestion-item-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-red);
}

.search-suggestion-item-category {
    font-size: 11px;
    color: var(--text-gray);
    margin-top: 2px;
}

.search-suggestions-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background: #f8f9fa;
}

.search-suggestions-footer a {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.search-suggestions-footer a:hover {
    text-decoration: underline;
}

/* Popular Searches */
.popular-searches {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.popular-searches-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.popular-searches-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.popular-searches-tag {
    padding: 6px 12px;
    background: #f0f3f8;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.popular-searches-tag:hover {
    background: var(--secondary-blue);
    color: #fff;
    border-color: var(--secondary-blue);
    transform: translateY(-2px);
}

.search-suggestion-item mark {
    background: var(--accent-orange);
    color: #fff;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* Quick View Modal - Jarir Style */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.quick-view-modal.active {
    opacity: 1;
    pointer-events: all;
}

.quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.quick-view-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    z-index: 1;
}

.quick-view-modal.active .quick-view-content {
    transform: scale(1);
}

.quick-view-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.quick-view-close:hover {
    background: var(--accent-red);
    color: #fff;
    transform: rotate(90deg);
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10001;
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 4px solid;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-color: #28a745;
    color: #28a745;
}

.notification-warning {
    border-color: #ffc107;
    color: #856404;
}

.notification-info {
    border-color: var(--secondary-blue);
    color: var(--secondary-blue);
}

.notification i {
    font-size: 20px;
}

/* Mega Menu */
.mega-dropdown {
    position: static !important;
}

.mega-dropdown .dropdown-menu {
    width: 100%;
    max-width: 1200px;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    border: none;
    border-radius: var(--radius);
    margin-top: 0;
    padding: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    font-family: 'Tajawal', 'Cairo', sans-serif;
}

.mega-menu {
    padding: 0 !important;
}

.mega-menu .container-fluid {
    padding: 25px !important;
    max-width: 1200px;
    margin: 0 auto;
}

.mega-menu h6 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

.mega-menu .list-unstyled {
    margin: 0;
    padding: 0;
}

.mega-menu .list-unstyled li {
    margin-bottom: 5px;
}

.mega-menu .dropdown-item {
    padding: 10px 15px;
    transition: all 0.2s;
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    white-space: nowrap;
    font-family: 'Tajawal', 'Cairo', sans-serif;
}

.mega-menu .dropdown-item:hover {
    background-color: #f0f3f8;
    color: var(--secondary-blue);
    padding-right: 20px;
    transform: translateX(-3px);
}

/* --- Hero Section - Jarir Style --- */
.hero-carousel {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.hero-carousel .carousel-item {
    height: 350px; /* Mobile height */
}

@media (min-width: 768px) {
    .hero-carousel .carousel-item {
        height: 500px; /* Desktop height */
    }
    .hero-container {
        padding-top: 20px;
    }
}

.hero-slide {
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    padding: 40px 0;
    overflow: hidden;
    z-index: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.95) 0%, rgba(45, 88, 167, 0.9) 100%);
    z-index: 1;
}

.hero-slide-1::before {
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.95) 0%, rgba(45, 88, 167, 0.9) 100%);
}

.hero-slide-2::before {
    background: linear-gradient(135deg, rgba(212, 7, 14, 0.95) 0%, rgba(255, 107, 107, 0.9) 100%);
}

.hero-slide-3::before {
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.95) 0%, rgba(45, 88, 167, 0.9) 100%);
}

.hero-slide-4::before {
    background: linear-gradient(135deg, rgba(255, 158, 0, 0.95) 0%, rgba(255, 179, 71, 0.9) 100%);
}

.hero-slide > .container {
    position: relative;
    z-index: 2;
    color: #fff;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease-out;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease-out;
}

.btn-hero-primary {
    background: #fff;
    color: var(--primary-blue);
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none;
    display: inline-block;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: var(--primary-blue);
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px);
}

.hero-image-wrapper {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-image {
    max-height: 300px;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.3));
    animation: slideInRight 1s ease-out;
}

@media (min-width: 768px) {
    .hero-image {
        max-height: 400px;
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Carousel Controls - Enhanced */
.hero-carousel {
    position: relative;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 100;
    position: absolute;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-carousel .carousel-control-prev {
    right: 20px;
    left: auto;
}

.hero-carousel .carousel-control-next {
    left: 20px;
    right: auto;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 24px;
    height: 24px;
    background-size: 100% 100%;
    filter: brightness(0) invert(1);
    opacity: 1;
}

.hero-carousel .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.hero-carousel .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Ensure carousel controls are clickable */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.hero-carousel .carousel-indicators {
    bottom: 20px;
}

.hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.hero-carousel .carousel-indicators button.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

/* --- Section Titles --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -11px;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-blue);
}

.section-link {
    font-size: 14px;
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 600;
}

/* --- Product Cards (Unified) --- */
.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 15px;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-blue);
}

.product-img-wrap {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
}

.product-quick-actions {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.product-card:hover .product-quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.quick-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.quick-action-btn:hover {
    background: var(--secondary-blue);
    color: #fff;
    border-color: var(--secondary-blue);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(45, 88, 167, 0.3);
}

.quick-action-btn i {
    font-size: 14px;
}

.product-img-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 4px;
    color: #fff;
}

.badge-new { background-color: var(--accent-orange); }
.badge-sale { background-color: var(--accent-red); }

.product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-cat {
    font-size: 11px;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    height: 40px; /* 2 lines fixed height */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-rating {
    font-size: 12px;
    color: #ffc107;
    margin-bottom: 8px;
}

.product-price-box {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.price {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-red);
    line-height: 1;
}

.price small {
    font-size: 12px;
    font-weight: normal;
    color: var(--text-gray);
}

.old-price {
    font-size: 12px;
    color: var(--text-gray);
    text-decoration: line-through;
    margin-left: 5px;
}

.discount-badge {
    background: var(--accent-red);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.add-to-cart-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #f0f3f8;
    color: var(--primary-blue);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.add-to-cart-btn:hover {
    background-color: var(--primary-blue);
    color: #fff;
    transform: scale(1.1);
}

.product-card:hover .add-to-cart-btn {
    background-color: var(--accent-orange);
    color: #fff;
}

/* --- Categories (Desktop Grid / Mobile Scroll) --- */
.categories-section {
    padding: 20px 0;
}

.cat-item {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    min-height: 150px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.cat-icon-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.cat-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 0;
}

.cat-item:hover .cat-icon-wrapper::before {
    opacity: 0.1;
    width: 80px;
    height: 80px;
}

.cat-subtitle {
    font-size: 11px;
    color: var(--text-gray);
    margin-top: 4px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.cat-item:hover .cat-subtitle {
    opacity: 1;
    color: var(--secondary-blue);
}

.cat-item-sale {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-color: var(--accent-red);
}

.cat-item-sale:hover {
    background: linear-gradient(135deg, #ffe5e5 0%, #fff5f5 100%);
    border-color: var(--accent-red);
    box-shadow: 0 8px 24px rgba(212, 7, 14, 0.2);
}

.cat-item-new {
    background: linear-gradient(135deg, #f0f8ff 0%, #fff 100%);
    border-color: var(--accent-orange);
}

.cat-item-new:hover {
    background: linear-gradient(135deg, #e0f0ff 0%, #f0f8ff 100%);
    border-color: var(--accent-orange);
    box-shadow: 0 8px 24px rgba(255, 158, 0, 0.2);
}

.cat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.cat-item:hover {
    border-color: var(--secondary-blue);
    box-shadow: 0 6px 20px rgba(45, 88, 167, 0.2);
    transform: translateY(-5px);
}

.cat-item:hover::before {
    opacity: 0.05;
}

.cat-item:hover .cat-icon {
    color: var(--secondary-blue);
    transform: scale(1.1);
}

.cat-item:hover .cat-title {
    color: var(--secondary-blue);
    font-weight: 700;
}

.cat-icon {
    font-size: 42px;
    margin-bottom: 0;
    color: var(--primary-blue);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    display: block;
}

.cat-title {
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    margin-bottom: 2px;
}

/* Mobile Horizontal Scroll Override */
@media (max-width: 767px) {
    .scroll-mobile {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 5px;
        scrollbar-width: none; /* Firefox */
    }
    .scroll-mobile::-webkit-scrollbar {
        display: none; /* Chrome */
    }
    .scroll-mobile .col-6 {
        flex: 0 0 140px; /* Fixed width cards */
        max-width: 140px;
    }
    
    .product-img-wrap {
        height: 140px;
    }
}

/* --- Footer --- */
.footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2a4a6b 100%);
    color: #fff;
    padding-top: 60px;
    padding-bottom: 30px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange) 0%, var(--secondary-blue) 50%, var(--accent-orange) 100%);
}

.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-orange);
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.footer-links a::before {
    content: '→';
    margin-left: 8px;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-right: 5px;
    transform: translateX(-3px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer input.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 8px;
}

.footer input.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer input.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-orange);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 158, 0, 0.2);
}

.footer .btn-primary {
    background: var(--accent-orange);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.footer .btn-primary:hover {
    background: #ffb347;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 158, 0, 0.4);
}

.footer-logo {
    height: 70px;
    filter: brightness(0) invert(1);
    background: transparent;
}

.footer-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.contact-item i {
    color: var(--accent-orange);
    font-size: 16px;
}

.footer .social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: var(--accent-orange);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 158, 0, 0.4);
    border-color: var(--accent-orange);
    color: #fff;
}

.footer-newsletter-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.btn-newsletter {
    background: var(--accent-orange);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-newsletter:hover {
    background: #ffb347;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 158, 0, 0.4);
}

.app-download-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
}

.app-download-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: #fff;
}

.app-download-btn i {
    font-size: 24px;
}

.app-download-btn div {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.app-download-btn small {
    font-size: 10px;
    opacity: 0.8;
}

.app-download-btn strong {
    font-size: 13px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-badge i {
    color: var(--accent-orange);
    font-size: 16px;
}

.footer .payment-methods img {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer .payment-methods img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Bottom Nav (Mobile) - Jarir Style Enhanced */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.12), 0 -2px 8px rgba(0,0,0,0.08);
    z-index: 999;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    padding: 10px 4px 8px;
    border-top: 3px solid var(--primary-blue);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-wrap: nowrap;
    gap: 2px;
    overflow: visible;
    border-radius: 20px 20px 0 0;
}

.nav-item-mobile {
    text-align: center;
    text-decoration: none;
    color: var(--text-gray);
    font-size: 10px;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 65px;
    background: transparent;
    flex-shrink: 1;
    overflow: visible;
    margin: 0 2px;
}

.nav-item-mobile i {
    display: block;
    font-size: 24px;
    margin-bottom: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
    flex-shrink: 0;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.nav-item-mobile span:not(.badge) {
    font-weight: 600;
    line-height: 1.2;
    font-size: 10px;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.nav-item-mobile:hover {
    background: linear-gradient(135deg, rgba(45, 88, 167, 0.15) 0%, rgba(26, 58, 92, 0.08) 100%);
    color: var(--secondary-blue);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(45, 88, 167, 0.2);
}

.nav-item-mobile:hover i {
    transform: scale(1.2) translateY(-3px);
    color: var(--secondary-blue);
    filter: drop-shadow(0 6px 12px rgba(45, 88, 167, 0.4));
}

.nav-item-mobile:hover span:not(.badge) {
    color: var(--secondary-blue);
    font-weight: 700;
}

.nav-item-mobile.active {
    color: var(--primary-blue);
    font-weight: bold;
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.25) 0%, rgba(26, 58, 92, 0.15) 100%);
    box-shadow: 0 4px 16px rgba(26, 58, 92, 0.25), inset 0 1px 0 rgba(255,255,255,0.3);
    transform: translateY(-3px);
    border: 1px solid rgba(26, 58, 92, 0.2);
}

.nav-item-mobile.active i {
    color: var(--primary-blue);
    transform: scale(1.25);
    filter: drop-shadow(0 6px 12px rgba(26, 58, 92, 0.5));
}

.nav-item-mobile.active span:not(.badge) {
    color: var(--primary-blue);
    font-weight: 700;
}

.nav-item-mobile.active::before {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 6px rgba(26, 58, 92, 0.4);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(50%) translateY(0);
    }
}

/* Service Nav Items Special Style */
/* تلوين أزرار الخدمات في شريط المهام */
.service-nav-item {
    background: transparent;
}

.service-nav-book {
    background: linear-gradient(135deg, rgba(45, 88, 167, 0.15) 0%, rgba(26, 58, 92, 0.1) 100%);
    color: var(--secondary-blue);
}

.service-nav-book i {
    color: var(--secondary-blue);
}

.service-nav-book:hover,
.service-nav-book.active {
    background: linear-gradient(135deg, rgba(45, 88, 167, 0.25) 0%, rgba(26, 58, 92, 0.15) 100%);
    color: var(--secondary-blue);
    box-shadow: 0 2px 8px rgba(45, 88, 167, 0.3);
    transform: translateY(-2px);
}

.service-nav-book:hover i,
.service-nav-book.active i {
    color: var(--secondary-blue);
    filter: drop-shadow(0 4px 8px rgba(45, 88, 167, 0.4));
}

.service-nav-print {
    background: linear-gradient(135deg, rgba(255, 158, 0, 0.15) 0%, rgba(255, 179, 71, 0.1) 100%);
    color: var(--accent-orange);
}

.service-nav-print i {
    color: var(--accent-orange);
}

.service-nav-print:hover,
.service-nav-print.active {
    background: linear-gradient(135deg, rgba(255, 158, 0, 0.25) 0%, rgba(255, 179, 71, 0.15) 100%);
    color: var(--accent-orange);
    box-shadow: 0 2px 8px rgba(255, 158, 0, 0.3);
    transform: translateY(-2px);
}

.service-nav-print:hover i,
.service-nav-print.active i {
    color: var(--accent-orange);
    filter: drop-shadow(0 4px 8px rgba(255, 158, 0, 0.4));
}

/* تلوين أزرار أخرى */
.nav-item-mobile:has(.bi-house-door-fill) {
    color: var(--primary-blue);
}

.nav-item-mobile:has(.bi-house-door-fill):hover,
.nav-item-mobile:has(.bi-house-door-fill).active {
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.2) 0%, rgba(26, 58, 92, 0.1) 100%);
    color: var(--primary-blue);
}

.nav-item-mobile:has(.bi-grid-3x3-gap-fill) {
    color: #6c757d;
}

.nav-item-mobile:has(.bi-grid-3x3-gap-fill):hover,
.nav-item-mobile:has(.bi-grid-3x3-gap-fill).active {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.15) 0%, rgba(108, 117, 125, 0.05) 100%);
    color: #495057;
}

.nav-item-mobile:has(.bi-bag-fill) {
    color: var(--accent-red);
}

.nav-item-mobile:has(.bi-bag-fill):hover,
.nav-item-mobile:has(.bi-bag-fill).active {
    background: linear-gradient(135deg, rgba(212, 7, 14, 0.15) 0%, rgba(212, 7, 14, 0.05) 100%);
    color: var(--accent-red);
}

.nav-item-mobile:has(.bi-bag-fill) i {
    color: var(--accent-red);
}

.nav-item-mobile:has(.bi-bag-fill):hover i,
.nav-item-mobile:has(.bi-bag-fill).active i {
    color: var(--accent-red);
    filter: drop-shadow(0 4px 8px rgba(212, 7, 14, 0.4));
}
    
    /* إصلاح شارة السلة في شريط المهام */
    .cart-nav-item {
        position: relative;
    }
    
    .cart-badge-mobile {
        position: absolute;
        top: 0px;
        right: 50%;
        transform: translateX(50%);
        background: var(--accent-red);
        color: #fff;
        border-radius: 50%;
        min-width: 20px;
        height: 20px;
        font-size: 11px;
        font-weight: 700;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 5px;
        z-index: 10;
        box-shadow: 0 2px 6px rgba(212, 7, 14, 0.5);
        line-height: 1;
    }
    
    /* ضمان ظهور جميع الأزرار */
    .bottom-nav .nav-item-mobile {
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
    
    .cart-nav-item i {
        display: block;
        position: relative;
    }
    
    /* تحسين عرض الأزرار في الموبايل */
    @media (max-width: 991px) {
        .bottom-nav {
            padding: 8px 1px 6px;
        }
        
        .nav-item-mobile {
            font-size: 7px;
            padding: 5px 0;
            min-height: 54px;
        }
        
        .nav-item-mobile i {
            font-size: 18px;
        }
        
        .nav-item-mobile span:not(.badge) {
            font-size: 7px;
        }
    }

.nav-item-mobile:has(.bi-person-fill) {
    color: #28a745;
}

.nav-item-mobile:has(.bi-person-fill):hover,
.nav-item-mobile:has(.bi-person-fill).active {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(40, 167, 69, 0.05) 100%);
    color: #218838;
}

@media (min-width: 992px) {
    .bottom-nav { display: none; }
    body { padding-bottom: 0; }
}
/* Flash Sale Banner */
.bg-danger {
    background: linear-gradient(135deg, #d4070e 0%, #ff4757 100%) !important;
}

/* Fix text-primary-blue class */
.text-primary-blue {
    color: var(--primary-blue) !important;
}

/* Countdown Timer */
#countdown {
    font-family: 'Courier New', monospace;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* Section Link Arrow */
.section-link i {
    transition: transform 0.2s;
}

.section-link:hover i {
    transform: translateX(-3px);
}

/* Cart Badge Display Fix */
.cart-badge {
    display: flex !important;
}

.cart-count:empty {
    display: none !important;
}

/* Bottom Nav Item Fix */
.bottom-nav-item {
    text-align: center;
    text-decoration: none;
    color: var(--text-gray);
    font-size: 10px;
    width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    position: relative;
}

.bottom-nav-item i {
    display: block;
    font-size: 20px;
    margin-bottom: 0;
}

.bottom-nav-item.active {
    color: var(--primary-blue);
    font-weight: bold;
}

.bottom-nav-item .badge {
    position: absolute;
    top: -5px;
    right: 50%;
    transform: translateX(50%);
    font-size: 8px;
    padding: 2px 5px;
}

/* Bottom Nav Badge Fix */
.nav-item-mobile .badge {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nav-item-mobile .cart-count:empty {
    display: none !important;
}

@media (max-width: 991px) {
    body { 
        padding-bottom: 75px;
        overflow-x: hidden; /* منع التمرير الأفقي */
    }
    .header-top, .navbar-desktop { display: none; }
    .header-main {
        padding: 12px 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    /* تحسين اللوجو في الموبايل */
    .logo-container {
        height: auto;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .logo-img {
        height: 70px;
        padding: 6px 10px;
        max-width: 100%;
        width: auto;
    }
    
    /* المساحة الإعلانية العريضة في الموبايل */
    .ad-banner-single-mobile-wide {
        display: block;
        width: 100%;
        height: 85px;
        border-radius: 12px;
        overflow: hidden;
        text-decoration: none;
        position: relative;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15), inset 0 0 0 2px rgba(255,255,255,0.3);
        background: linear-gradient(135deg, var(--accent-orange) 0%, #ffb347 100%);
        border: 2px solid rgba(255,255,255,0.4);
        box-sizing: border-box;
        margin: 0;
    }
    
    .ad-banner-single-mobile-wide:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(0,0,0,0.2);
    }
    
    .ad-banner-content-wide {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 15px;
        height: 100%;
        color: #fff;
        position: relative;
        width: 100%;
    }
    
    .ad-banner-cart-image-mobile {
        width: 55px;
        height: 55px;
        object-fit: contain;
        flex-shrink: 0;
        filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
        animation: float 3s ease-in-out infinite;
        display: block;
    }
    
    .ad-text-wrapper-wide {
        display: flex;
        flex-direction: column;
        gap: 6px;
        flex: 1;
    }
    
    .ad-badge-wide {
        background: rgba(255,255,255,0.4);
        padding: 4px 10px;
        border-radius: 20px;
        font-size: 10px;
        font-weight: bold;
        white-space: nowrap;
        backdrop-filter: blur(10px);
        align-self: flex-start;
        box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    }
    
    .ad-text-wide {
        display: flex;
        flex-direction: column;
        line-height: 1.3;
        gap: 4px;
    }
    
    .ad-text-slide-wide {
        font-size: 18px;
        font-weight: 800;
        animation: slideInRight 1s ease-out;
        line-height: 1.3;
    }
    
    .ad-text-slide-delay-wide {
        font-size: 13px;
        opacity: 0.95;
        animation: slideInRight 1.2s ease-out;
        line-height: 1.3;
    }
    
    .ad-badge-wide {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    /* تحسين الهيدر في الموبايل */
    .header-main .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }
    
    .header-main .row {
        margin: 0;
        align-items: center;
    }
    
    .header-main .col-12,
    .header-main .col-6 {
        padding: 0;
    }
    
    /* منع التمرير الأفقي */
    * {
        max-width: 100%;
    }
    
    /* تحسين الصور في الموبايل */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* تحسين المحتوى في الموبايل */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* تطبيق نفس التعديلات على الموبايل للمساحات الإعلانية */
    .ad-banner-single {
        border: 2px solid rgba(255,255,255,0.4);
        box-sizing: border-box;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15), inset 0 0 0 2px rgba(255,255,255,0.3);
    }
    
    .ad-banner-square {
        border: 2px solid rgba(255,255,255,0.4);
        box-sizing: border-box;
        box-shadow: 0 3px 15px rgba(0,0,0,0.1), inset 0 0 0 2px rgba(255,255,255,0.3);
    }
    
    /* تصغير النصوص في الموبايل */
    .ad-text-slide {
        font-size: 13px !important;
    }
    
    .ad-text-slide-delay {
        font-size: 9px !important;
    }
    
    .ad-badge {
        font-size: 8px !important;
        padding: 2px 6px !important;
    }
    
    .ad-text-square strong {
        font-size: 12px !important;
    }
    
    .ad-text-square small {
        font-size: 9px !important;
    }
    
    .ad-badge-square {
        font-size: 9px !important;
        padding: 4px 10px !important;
    }
    
    .bottom-nav {
        padding: 10px 0 8px;
    }
    .nav-item-mobile {
        min-height: 55px;
        padding: 6px 4px;
    }
    .nav-item-mobile i {
        font-size: 22px;
    }
    .nav-item-mobile span:not(.badge) {
        font-size: 9px;
    }
}

/* Force Service Button Colors - Must be last to override everything */
.service-buttons-row a.service-btn.service-btn-book {
    background: #dc3545 !important;
    background-color: #dc3545 !important;
    background-image: none !important;
}

.service-buttons-row a.service-btn.service-btn-print {
    background: #28a745 !important;
    background-color: #28a745 !important;
    background-image: none !important;
}

/* Performance Optimizations */
* {
    -webkit-tap-highlight-color: transparent;
}

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Focus States for Accessibility */
*:focus-visible {
    outline: 2px solid var(--secondary-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print Styles */
@media print {
    .header-main,
    .navbar-desktop,
    .bottom-nav,
    .footer {
        display: none !important;
    }
    
    body {
        background: #fff;
    }
}
