/* ============================================
   Your Events - Main Stylesheet
   نظام التصميم الأساسي للموقع
   ============================================ */

/* ============ CSS Variables ============ */
:root {
    /* Primary Colors */
    --primary-color: #1f144a;
    --accent-color: #ef4870;
    --secondary-color: #2dbcae;
    --gold-color: #f0c71d;
    --purple-light: #7269b0;
    
    /* Background Colors */
    --bg-light: #ffffff;
    --bg-secondary: #f8f9fa;
    
    /* Text Colors */
    --text-color: #222222;
    --text-muted: #666666;
    --border-color: #e9ecef;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1f144a 0%, #2d1a5e 50%, #3d2a7e 100%);
    --gradient-accent: linear-gradient(135deg, #ef4870 0%, #f56b8a 50%, #ff7ba3 100%);
    --gradient-secondary: linear-gradient(135deg, #2dbcae 0%, #3cc7b8 50%, #4dd2c2 100%);
    --gradient-gold: linear-gradient(135deg, #f0c71d 0%, #f5d347 50%, #fae071 100%);
    --gradient-rainbow: linear-gradient(135deg, #ef4870 0%, #f0c71d 25%, #2dbcae 50%, #7269b0 75%, #1f144a 100%);
    
    /* Shadows */
    --shadow-primary: 0 10px 30px rgba(31, 20, 74, 0.25);
    --shadow-accent: 0 10px 30px rgba(239, 72, 112, 0.25);
    --shadow-glow: 0 0 20px rgba(239, 72, 112, 0.2);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ Base Styles ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', 'Inter', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Subtle background pattern - تقليل opacity للأداء */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(239, 72, 112, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(45, 188, 174, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.arabic-text {
    font-family: 'Tajawal', sans-serif;
}

.english-text {
    font-family: 'Inter', sans-serif;
}

/* ============ Navbar Styles ============ */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d1a5e 50%, var(--purple-light) 100%) !important;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(31, 20, 74, 0.3);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: linear-gradient(135deg, rgba(31, 20, 74, 0.98) 0%, rgba(45, 26, 94, 0.98) 50%, rgba(114, 105, 176, 0.98) 100%) !important;
    box-shadow: 0 6px 25px rgba(31, 20, 74, 0.4);
    padding: 8px 0;
}

.navbar-brand img {
    height: 50px;
    transition: var(--transition-smooth);
    filter: brightness(1.1) drop-shadow(0 3px 6px rgba(239, 72, 112, 0.2));
}

.navbar-brand:hover img {
    transform: scale(1.05);
    filter: brightness(1.2) drop-shadow(0 5px 10px rgba(239, 72, 112, 0.3));
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    border-radius: 20px;
    transition: var(--transition-smooth);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.navbar-nav .nav-link i {
    font-size: 0.9rem;
}

.navbar-nav .nav-link:hover {
    background: var(--gradient-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 72, 112, 0.3);
}

.navbar-nav .nav-link.active {
    background: var(--gradient-accent);
    box-shadow: var(--shadow-accent);
}

/* ============ Buttons ============ */
.btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: var(--gradient-accent);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(239, 72, 112, 0.4);
}

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

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(45, 188, 174, 0.4);
}

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

.btn-gold:hover {
    transform: translateY(-2px);
}

/* ============ Cards ============ */
.card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 20px;
    transition: var(--transition-smooth);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(239, 72, 112, 0.15);
}

/* ============ Footer ============ */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d1a5e 50%, var(--purple-light) 100%);
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 80px;
}

/* ============ Hero Sections ============ */
.hero-contact {
    background: var(--gradient-secondary);
    color: #fff;
}
.hero-contact .display-4 {
    color: #fff !important;
}
.hero-contact .lead {
    color: rgba(255, 255, 255, 0.92) !important;
}

.footer-logo {
    height: 50px;
    width: auto;
    transition: var(--transition-smooth);
}

.footer a.text-white:hover,
.footer .footer-link:hover {
    color: var(--gold-color) !important;
    transform: translateX(-3px);
    text-decoration: underline !important;
}

/* Social Media Hover Colors */
.hover-social-facebook:hover {
    color: #1877F2 !important;
    transform: scale(1.15);
}

.hover-social-twitter:hover {
    color: #1DA1F2 !important;
    transform: scale(1.15);
}

/* ============ Phone Image Wrapper Tweaks ============ */
/* تحريك بسيط لأسفل مع تصغير طفيف */
.phone-image-wrapper {
    display: inline-block;
    transform: translateY(8px) scale(0.95);
    transform-origin: center bottom;
    transition: var(--transition-smooth);
}

.phone-image-wrapper img,
.phone-image-wrapper .phone-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* استجابة للشاشات الأصغر: زيادة التحريك وتقليل الحجم قليلًا */
@media (max-width: 992px) {
    .phone-image-wrapper {
        transform: translateY(12px) scale(0.92);
    }
}

@media (max-width: 576px) {
    .phone-image-wrapper {
        transform: translateY(14px) scale(0.90);
    }
}

.hover-social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.15);
}

.hover-social-linkedin:hover {
    color: #0A66C2 !important;
    transform: scale(1.15);
}

.hover-social-youtube:hover {
    color: #FF0000 !important;
    transform: scale(1.15);
}

.hover-social-tiktok:hover {
    color: #000000 !important;
    transform: scale(1.15);
}

/* ============ Mobile Bottom Navigation ============ */
.klb-mobile-bottom {
    display: none;
}

@media (max-width: 991px) {
    .klb-mobile-bottom {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, rgba(31, 20, 74, 0.98) 0%, rgba(45, 26, 94, 0.98) 100%);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: 0 -3px 15px rgba(31, 20, 74, 0.25);
        z-index: 1040;
        border-top: 2px solid rgba(45, 188, 174, 0.3);
        padding: 8px 0;
    }
    
    .mobile-nav-items {
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        text-decoration: none;
        color: white;
        transition: var(--transition-smooth);
        border-radius: 12px;
        min-width: 70px;
        position: relative;
    }
    
    .mobile-nav-item:hover,
    .mobile-nav-item.active {
        background: linear-gradient(135deg, var(--secondary-color), #3cc7b8);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(45, 188, 174, 0.3);
    }
    
    .mobile-nav-item i {
        font-size: 1.3rem;
        margin-bottom: 4px;
    }
    
    .mobile-nav-item span {
        font-size: 0.7rem;
        font-weight: 500;
    }
    
    .mobile-nav-item .badge {
        position: absolute;
        top: 2px;
        right: 8px;
        background: var(--accent-color);
        border-radius: 50%;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.65rem;
        font-weight: 700;
    }
    
    main {
        padding-bottom: 70px !important;
    }
}

/* ============ Drawer (Mobile Menu) ============ */
@media (max-width: 991px) {
    .site-drawer {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 9999;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    }
    
    .site-drawer.show {
        right: 0;
    }
    
    .drawer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .drawer-overlay.show {
        opacity: 1;
        visibility: visible;
    }
    
    .drawer-header {
        padding: 20px;
        border-bottom: 2px solid rgba(31, 20, 74, 0.1);
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: linear-gradient(135deg, var(--primary-color) 0%, #2d1a5e 100%);
    }
    
    .drawer-close {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        padding: 5px 10px;
        cursor: pointer;
        border-radius: 8px;
        transition: var(--transition-smooth);
    }
    
    .drawer-close:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: rotate(90deg);
    }
    
    .drawer-content {
        padding: 20px;
    }
    
    .drawer-content .nav-link {
        padding: 15px 20px;
        border-radius: 12px;
        margin: 5px 0;
        background: rgba(31, 20, 74, 0.05);
        border: 1px solid rgba(31, 20, 74, 0.1);
        color: var(--text-color) !important;
        display: flex;
        align-items: center;
        gap: 10px;
        transition: var(--transition-smooth);
    }
    
    .drawer-content .nav-link:hover,
    .drawer-content .nav-link.active {
        background: linear-gradient(135deg, var(--secondary-color), #3cc7b8) !important;
        color: white !important;
        transform: translateX(-5px);
        box-shadow: 0 4px 12px rgba(45, 188, 174, 0.25);
        border-color: transparent;
    }
    
    .categories-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .category-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 15px 10px;
        min-height: 90px;
        background: rgba(31, 20, 74, 0.05);
        border: 1px solid rgba(31, 20, 74, 0.1);
        border-radius: 12px;
        text-decoration: none;
        color: var(--text-color);
        transition: var(--transition-smooth);
        text-align: center;
    }
    
    .category-card:hover {
        background: linear-gradient(135deg, var(--secondary-color), #3cc7b8);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(45, 188, 174, 0.25);
        border-color: transparent;
    }
    
    .category-card i {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }
    
    .category-card:hover i {
        color: white !important;
    }
}

/* ============ Search Autocomplete ============ */
.search-nav-item {
    margin: 0;
}

.search-form {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    width: 220px;
}

.search-input {
    width: 100%;
    padding: 7px 40px 7px 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 8px rgba(239, 72, 112, 0.2);
    width: 250px;
}

.search-button {
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-accent);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.search-button:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 12px rgba(239, 72, 112, 0.3);
}

.search-autocomplete {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(31, 20, 74, 0.2);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.search-autocomplete.show {
    display: block;
}

.autocomplete-item {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
    text-decoration: none;
    color: var(--text-color);
}

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

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

.autocomplete-image {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 8px;
}

/* ============ Cart Dropdown ============ */
.cart-nav-item {
    margin: 0;
}

.cart-link {
    position: relative;
    padding: 8px 12px !important;
    border-radius: 20px;
}

.cart-icon-wrapper {
    position: relative;
    font-size: 1.1rem;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(239, 72, 112, 0.3);
}

.cart-dropdown {
    width: 380px;
    max-width: 90vw;
    padding: 0;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(31, 20, 74, 0.2);
    background: white;
    margin-top: 15px;
    max-height: 80vh;
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.cart-dropdown.show {
    display: flex !important;
}

/* ============ User Profile ============ */
.user-profile-link {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 14px !important;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.user-name {
    font-weight: 500;
    color: white;
    font-size: 0.9rem;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enhanced-dropdown {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
}

.enhanced-dropdown .dropdown-item {
    padding: 12px 20px;
    border-radius: 10px;
    margin: 5px;
    transition: var(--transition-smooth);
}

.enhanced-dropdown .dropdown-item:hover {
    background: var(--gradient-accent);
    color: white;
    transform: translateX(5px);
}

/* ============ Section Titles ============ */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--secondary-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

/* ============ Text Contrast Improvements ============ */
/* تحسين التباين للنصوص على الخلفيات */
.hero-title,
.hero-section h1,
.hero-section .display-1,
.hero-section .display-2 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 
                 0 4px 20px rgba(31, 20, 74, 0.2);
    color: white !important;
}

.hero-subtitle,
.hero-section p,
.hero-section .lead {
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.95) !important;
}

.hero-overlay h1,
.hero-overlay h2,
.hero-overlay h3 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    color: white !important;
}

.hero-overlay p {
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.95) !important;
}

.cta-overlay h2,
.cta-overlay h3 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    color: white !important;
}

.cta-overlay p {
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Categories Section Text */
.category-card h4,
.category-card h5 {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* تحسين قراءة النصوص البيضاء على خلفية فاتحة */
.text-white-contrast {
    color: white !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* Buttons with better contrast */
.btn-primary,
.btn-secondary,
.btn-gold {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

/* Loading Spinner Styles */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.search-autocomplete.loading::before,
.cart-dropdown.loading::before {
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    margin: 20px auto;
    border: 3px solid rgba(31, 20, 74, 0.2);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Loading state for buttons */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ============ Responsive Styles ============ */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-brand img {
        height: 40px;
    }
    
    .footer-logo {
        height: 35px;
        max-width: 45%;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .search-nav-item {
        display: none;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
}

/* ============ Animations - محسّنة للأداء ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* استخدام will-change فقط عند الحاجة */
.card:hover {
    will-change: transform;
}

.btn:hover {
    will-change: transform;
}

/* ============ Utility Classes ============ */
.hide-desktop {
    display: none !important;
}

@media (max-width: 991px) {
    .hide-desktop {
        display: block !important;
    }
    
    .hide-mobile {
        display: none !important;
    }
}

/* RTL Improvements */
[dir="rtl"] .search-button {
    left: auto;
    right: 3px;
}

[dir="rtl"] .cart-badge {
    right: auto;
    left: -6px;
}

[dir="rtl"] .autocomplete-item:hover {
    padding-right: 15px;
    padding-left: 20px;
}

/* ============ Additional Navbar Styles ============ */
.navbar .container {
    max-width: 1320px;
}

.navbar-collapse {
    overflow: visible !important;
}

.navbar .dropdown {
    position: relative;
}

.navbar .dropdown-menu {
    z-index: 9999 !important;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(31, 20, 74, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 15px 0;
    margin-top: 10px;
    min-width: 200px;
}

.navbar .dropdown-menu.show {
    display: block !important;
    position: absolute !important;
    z-index: 9999 !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.navbar .dropdown-item {
    padding: 12px 20px;
    font-size: 1rem;
    color: var(--text-color);
    border-radius: 8px;
    margin: 2px 10px;
    transition: all 0.3s ease;
}

.navbar .dropdown-item:hover {
    background: linear-gradient(135deg, var(--secondary-color), #3cc7b8);
    color: white;
    transform: translateX(-5px);
}

/* Navbar animations */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(239, 72, 112, 0.1) 50%, rgba(45, 188, 174, 0.1) 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(100%); opacity: 0; }
    50% { transform: translateX(-100%); opacity: 1; }
}

.navbar-nav.navbar-right-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 30px;
}

/* Cart Dropdown Details */
.cart-dropdown-header {
    padding: 15px 20px;
    background: var(--gradient-primary);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-dropdown-header h6 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.cart-dropdown-items {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.cart-dropdown-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.cart-dropdown-item:hover {
    background: #f8f9fa;
    border-radius: 8px;
}

.cart-dropdown-item .item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.cart-dropdown-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-dropdown-item .item-details {
    flex: 1;
}

.cart-dropdown-item .item-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--text-color);
}

.cart-dropdown-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.cart-dropdown-empty {
    padding: 60px 20px;
    text-align: center;
}

.cart-dropdown-empty i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 15px;
}

/* Mobile Search in Drawer */
.mobile-search-wrapper {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(31, 20, 74, 0.1);
}

.mobile-search-form .input-group {
    box-shadow: 0 5px 20px rgba(31, 20, 74, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

.mobile-search-form .form-control {
    border: 2px solid rgba(31, 20, 74, 0.2);
    border-left: none;
    padding: 12px 15px;
    font-size: 14px;
}

.mobile-search-form .btn {
    background: var(--gradient-accent);
    border: none;
    padding: 0 20px;
}

.drawer-section {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid rgba(31, 20, 74, 0.1);
    border-bottom: 1px solid rgba(31, 20, 74, 0.1);
}

.drawer-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

/* ============ Additional Responsive Fixes ============ */
@media (max-width: 991px) {
    .navbar .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
    }
    
    .navbar-toggler {
        border: none;
        padding: 4px 8px;
        background: transparent !important;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2845, 188, 174, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    .cart-dropdown {
        width: 320px;
    }
    
    .cart-dropdown-items {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-lg-3 {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer-logo-wrapper {
        justify-content: center !important;
    }
    
    .footer .d-flex.gap-3 {
        justify-content: center;
    }
    
    .footer .text-md-end {
        text-align: center !important;
    }
}
/* ===== Modal header: center title and keep close button on right ===== */
.modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* center contents; title will be centered */
}

.modal-title {
  flex: 1 1 auto;
  text-align: center; /* center title text */
  margin: 0;
}

.modal-header .btn-close {
  position: absolute; /* keep close button at top-right */
  right: 1rem;
  top: 1rem;
  margin: 0;
}

/* Ensure backdrop doesn't block header interactions unexpectedly */
.modal-backdrop.show { opacity: 0.5; }
