/* Visibility Classes */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 991px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
}

/* Global Styles */
:root {
    --primary-color: #ff6600; /* Orange accent color */
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --light-text: #ffffff;
    --gray-text: #cccccc;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Cairo', sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

html[dir="rtl"] body {
    font-family: 'Cairo', 'Roboto', sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--light-text);
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* Auth Buttons */
.auth-buttons-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 10px;
}

.auth-button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    text-align: center;
}

.login-btn {
    color: var(--light-text);
    border: 1px solid var(--primary-color);
}

.login-btn:hover, .login-btn.active {
    background-color: rgba(255, 102, 0, 0.15);
}

.signup-btn {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.signup-btn:hover, .signup-btn.active {
    background-color: #e65c00;
}

html[dir="rtl"] .auth-buttons-container {
    margin-right: 10px;
    margin-left: 0;
}

/* Mobile Nav Auth Buttons */
@media (max-width: 991px) {
    .auth-buttons-container {
        justify-content: center;
        width: 100%;
        margin: 15px 0 5px;
    }
    
    .auth-button {
        padding: 10px 20px;
        min-width: 100px;
    }
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 22px;
    right: 10px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 20px;
    /* Always maintain LTR direction for the container to keep cart left and language right */
    flex-direction: row !important;
    /* Critical for overriding RTL document's direction */
    direction: ltr !important;
}

/* RTL adjustments for language switcher - keep it on the right side */
html[dir="rtl"] .language-switcher {
    right: 10px;
    left: auto;
}

/* Cart Icon Styles */
.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    cursor: pointer;
    transition: opacity 0.2s ease;
    z-index: 1100; /* Ensure it's above other elements */
}

.cart-icon-wrapper:hover {
    opacity: 0.8;
}

.fa-shopping-cart {
    font-size: 20px;
    color: var(--accent-color);
}

.cart-count-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    padding: 2px;
}

/* Ensure cart positioning remains the same in RTL */
html[dir="rtl"] .cart-count-indicator {
    right: -8px; /* Keep right position even in RTL */
    left: auto;
}

/* Fix notification click-through issue */
.notification {
    pointer-events: none; /* This ensures it doesn't block clicks */
}

/* Cart quantity button styling */
.quantity-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background-color: #333333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
}

.quantity-btn:hover {
    background-color: var(--accent-color);
}

/* Style the input between the buttons */
.quantity-input {
    width: 40px;
    height: 28px;
    text-align: center;
    margin: 0 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .language-switcher {
        display: none;
    }
}

/* Removed RTL override to keep language switcher on right side */


.mobile-language-switcher {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.flag-language-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 10px;
    border-radius: 10px;
}

.flag-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.flag-option:hover {
    background-color: var(--primary-color);
}

.flag-option.active {
    background-color: var(--primary-color);
}

.flag-option span {
    color: var(--light-text);
    font-weight: 500;
}

.flag-icon {
    width: 24px;
    object-fit: cover;
    border-radius: 3px;
}

/* Utility classes for responsive visibility */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* Removed duplicate language-switcher class */

/* Language dropdown styling */
.lang-dropdown-container {
    position: relative;
    z-index: 1100; /* Ensure it's above other elements */
    cursor: pointer;
    width: 120px; /* Reduced width */
    user-select: none;
}

.lang-selected {
    display: flex;
    align-items: center;
    gap: 6px; /* Reduced gap */
    background-color: #190e06; /* Dark brown background */
    color: white;
    padding: 6px 10px; /* Smaller padding */
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 14px; /* Smaller font */
}

.lang-selected .flag-icon {
    width: 16px; /* Smaller flag */
    border-radius: 2px;
    object-fit: cover;
}

.lang-selected i {
    margin-left: auto;
    font-size: 10px; /* Smaller icon */
    transition: transform 0.3s ease;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1005;
}

/* Remove hover behavior */
.lang-dropdown.show {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px; /* Smaller gap */
    padding: 8px 12px; /* Smaller padding */
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #333;
    font-size: 14px; /* Smaller font */
}

.lang-option:hover {
    background-color: #f0f0f0;
}

.lang-option.active {
    background-color: #e3f2fd;
}

.lang-option .flag-icon {
    width: 16px; /* Smaller flag */
    border-radius: 2px;
    object-fit: cover;
}

/* Mobile language switcher */
.mobile-language-switcher {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: auto;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: none;
    background-color: #1c1c1c;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Specific styling for English button */
#en-btn {
    background-color: #1c1c1c;
}

/* Specific styling for Arabic button */
#ar-btn {
    background-color: #1c1c1c;
}

/* Active state */
#en-btn.active {
    background-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 153, 51, 0.3);
    border: none;
}

#ar-btn.active {
    background-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 153, 51, 0.3);
    border: none;
}

html[dir="rtl"] .lang-selected i {
    margin-left: 0;
    margin-right: auto;
}

.lang-btn.active-lang {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Category Menu */
.category-menu {
    background-color: var(--card-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
}

.category-menu ul {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.category-menu li a {
    color: var(--gray-text);
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
}

.category-menu li a:hover, 
.category-menu li a.active {
    color: var(--primary-color);
}

.category-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -2px;
    left: 0;
    transition: var(--transition);
}

.category-menu li a:hover::after,
.category-menu li a.active::after {
    width: 100%;
}

html[dir="rtl"] .category-menu li a::after {
    left: auto;
    right: 0;
}

/* Header */
header {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px 0;
    position: static;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Empty media query - we moved the rules to 993px breakpoint */
@media (min-width: 769px) {
    /* Header flex layout moved to 993px breakpoint */
}

/* Apply flex layout only for screens wider than 992px */
@media (min-width: 993px) {
    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}


.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.logo h1 {
    font-size: 24px;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

nav ul li a {
    position: relative;
    padding: 8px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

html[dir="rtl"] nav ul li a::after {
    left: auto;
    right: 0;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--light-text);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    padding: 60px 0;
    background: linear-gradient(to right, var(--dark-bg), #000000);
}

html[dir="rtl"] .hero {
    background: linear-gradient(to left, var(--dark-bg), #000000);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    color: var(--gray-text);
    margin-bottom: 30px;
    font-size: 18px;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-transform: uppercase;
}

.cta-button:hover {
    background-color: #ff8533; /* Lighter orange */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-height: 500px;
    filter: drop-shadow(0 10px 20px rgba(255, 102, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Features Section */
.features {
    background-color: var(--card-bg);
    padding: 30px 0;
}

.features .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 20px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 32px;
}

.feature-icon i {
    background-color: rgba(255, 102, 0, 0.1);
    padding: 15px;
    border-radius: 50%;
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 600;
}

/* Products Grid */
.featured, .accessories {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--light-text);
}

.section-desc {
    text-align: center;
    color: var(--gray-text);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.product-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(30,30,30,0.7) 0%, rgba(18,18,18,0.7) 100%);
    padding: 15px;
    position: relative; /* For positioning the product tag */
    overflow: hidden;
}

.product-image img {
    max-height: 180px;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    padding: 20px;
}

/* Product tag styles */
.product-tag {
    position: absolute;
    top: 15px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
    display: inline-block;
}

/* Stack tags vertically on the left */
.bestseller, .new, .sale {
    left: 15px;
}

.bestseller {
    background-color: var(--primary-color);
    color: var(--light-text);
    top: 15px;
}

.new {
    background-color: #2ecc71;
    color: var(--light-text);
    top: 45px; /* Position below bestseller */
}

.sale {
    background-color: #e74c3c;
    color: var(--light-text);
    top: 45px; /* Position below bestseller */
}

/* If both bestseller and new/sale tags exist, position new/sale further down */
.product-image .bestseller ~ .new,
.product-image .bestseller ~ .sale {
    top: 45px;
}

/* Product description */
.product-desc {
    color: var(--gray-text);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-details h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-price {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.old-price {
    font-size: 16px;
    color: var(--gray-text);
    text-decoration: line-through;
}

/* Product buttons container */
.product-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.view-button {
    flex: 1;
    display: inline-block;
    text-align: center;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 5px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    font-size: 14px;
}

.view-button:hover {
    background-color: rgba(255, 102, 0, 0.1);
}

.buy-button {
    flex: 1;
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    padding: 8px 5px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    font-size: 14px;
    cursor: pointer;
}

.buy-button:hover {
    background-color: #ff8533; /* Lighter orange */
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .feature-item {
        min-width: calc(50% - 20px);
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    /* Moved from 768px media query */
    nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    nav ul li {
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Nav styles moved to 992px breakpoint */
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Mobile menu styles */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--dark-bg);
        z-index: 1001;
        padding: 30px 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    html[dir="rtl"] .nav-menu {
        right: auto;
        left: -100%;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    html[dir="rtl"] .nav-menu.active {
        left: 0;
        right: auto;
    }
    
    /* Mobile menu simplified - no close button */
    
    nav ul li {
        width: 100%;
        /* border-bottom removed */
    }
    
    .nav-menu ul {
        width: 100%;
        max-width: 400px;
        margin: 50px auto;
    }
    
    nav ul li a {
        display: block;
        padding: 15px 10px;
        font-size: 18px;
        text-align: center;
    }
    
    nav ul li a::after {
        display: none;
    }
    
    nav ul li a:hover,
    nav ul li a.active {
        color: var(--primary-color);
        background-color: rgba(255, 102, 0, 0.1);
    }
    
    .feature-item {
        min-width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
}

/* Premium Experience Section */
.premium-experience {
    padding: 80px 0;
    background: linear-gradient(to right, #1e1e1e, var(--dark-bg));
}

html[dir="rtl"] .premium-experience {
    background: linear-gradient(to left, #1e1e1e, var(--dark-bg));
}

.premium-experience .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.experience-content {
    flex: 1;
}

.experience-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.experience-content p {
    margin-bottom: 30px;
    color: var(--gray-text);
    font-size: 18px;
}

.experience-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.experience-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Fast Delivery Section */
.fast-delivery {
    padding: 60px 0;
    background-color: var(--card-bg);
    position: relative;
    overflow: hidden;
}

.fast-delivery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/delivery-bg.png') no-repeat center;
    opacity: 0.05;
    z-index: 0;
}

.delivery-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.delivery-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.delivery-content p {
    margin-bottom: 30px;
    color: var(--gray-text);
    font-size: 18px;
}

.payment-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.payment-options span {
    color: var(--gray-text);
    font-size: 16px;
}

.payment-options img {
    height: 40px;
}

/* Footer Payment Options */
footer .payment-options {
    margin: 25px 0;
    display: block;
    text-align: center;
}

footer .payment-options h3 {
    margin-bottom: 15px;
    color: var(--light-text);
}

footer .payment-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    /* Prevent direction flipping in RTL mode */
    direction: ltr;
}

footer .payment-options img {
    height: 50px;
    padding: 5px;
    border-radius: 5px;
    transition: var(--transition);
}

footer .payment-options img:hover {
    transform: translateY(-3px);
}

/* Testimonials Section */
.testimonials {
    padding: 70px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.customer-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid var(--primary-color);
}

.customer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customer-rating {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 15px;
}

.testimonial-card p {
    color: var(--gray-text);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-card h4 {
    color: var(--light-text);
    font-size: 18px;
    font-weight: 600;
}

/* Services Section */
.services {
    padding: 60px 0;
    background-color: var(--card-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--dark-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-icon {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 40px;
}

.service-card h3 {
    font-size: 18px;
    color: var(--light-text);
}

/* Footer */
footer {
    background-color: #0a0a0a;
    padding-top: 60px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo img {
    width: 50px;
    margin-bottom: 15px;
}

.footer-logo h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.footer-logo p {
    color: var(--gray-text);
    line-height: 1.6;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

@media (max-width: 576px) {
    .footer-links {
        justify-content: space-between;
    }
    
    .footer-col {
        min-width: 140px;
        margin-bottom: 20px;
    }
}

.footer-col {
    flex: 1;
    min-width: 160px;
}

.footer-col h3 {
    color: var(--light-text);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

html[dir="rtl"] .footer-col h3::after {
    left: auto;
    right: 0;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--gray-text);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

html[dir="rtl"] .footer-col ul li a:hover {
    padding-left: 0;
    padding-right: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-text);
}

.contact-info li i {
    color: var(--primary-color);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 576px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px 10px;
    }
}

.footer-bottom p {
    color: var(--gray-text);
}

.payment-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.payment-icons img {
    height: 50px;
    object-fit: contain;
}

.social-icons {
    display: flex;
    margin-top: 15px;
    gap: 15px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-text);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-3px);
}

/* Mobile navigation when active */
@media (max-width: 768px) {
    nav ul.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .premium-experience .container,
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    html[dir="rtl"] .footer-col h3::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .products-grid,
    .testimonial-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h2 {
        font-size: 24px;
    }
}
