/* ===== Global Styles with Cairo Font ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    direction: rtl;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header Styles ===== */
.header {
    background-color: #1a1a1a;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.install-header-btn {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    padding: 10px 20px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000000;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

.install-header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
}

.install-header-btn i {
    font-size: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo h1 {
    font-family: 'Cairo', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #4CAF50;
    margin: 0;
}

.nav {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-family: 'Cairo', sans-serif;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #4CAF50;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 24px;
    color: #4CAF50;
    transition: transform 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    left: -8px;
    background-color: #dc3545;
    color: #ffffff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 600;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 80px 0;
    text-align: center;
    border-bottom: 3px solid #4CAF50;
}

.hero-content h2 {
    font-family: 'Cairo', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: #4CAF50;
    margin-bottom: 15px;
}

.hero-content p {
    font-family: 'Cairo', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #cccccc;
}

/* ===== Categories Filter ===== */
.categories-filter {
    padding: 30px 0;
    background-color: #0a0a0a;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    padding: 12px 30px;
    border: 2px solid #4CAF50;
    background-color: transparent;
    color: #ffffff;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #4CAF50;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* ===== Products Section ===== */
.products {
    padding: 50px 0;
    min-height: 400px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #dc3545;
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-family: 'Cairo', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.product-description {
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #cccccc;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-price {
    font-family: 'Cairo', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #4CAF50;
}

.product-old-price {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #999999;
    text-decoration: line-through;
}

.add-to-cart-btn {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    background-color: #4CAF50;
    color: #000000;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #45a049;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* ===== Cart Sidebar ===== */
.cart-sidebar {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100vh;
    background-color: #1a1a1a;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
    transition: left 0.3s ease;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    left: 0;
}

.cart-header {
    padding: 20px;
    background-color: #0a0a0a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #4CAF50;
}

.cart-header h3 {
    font-family: 'Cairo', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #4CAF50;
}

.close-cart {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-cart:hover {
    color: #dc3545;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    background-color: #0a0a0a;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

.cart-item-price {
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #4CAF50;
    margin-bottom: 10px;
}

.cart-item-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.quantity-btn {
    font-family: 'Cairo', sans-serif;
    background-color: #4CAF50;
    color: #000000;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background-color: #45a049;
}

.quantity-display {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    min-width: 30px;
    text-align: center;
}

.remove-btn {
    font-family: 'Cairo', sans-serif;
    background-color: #dc3545;
    color: #ffffff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.remove-btn:hover {
    background-color: #c82333;
}

.cart-footer {
    padding: 20px;
    background-color: #0a0a0a;
    border-top: 2px solid #4CAF50;
}

.cart-total {
    font-family: 'Cairo', sans-serif;
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.cart-total span:last-child {
    color: #4CAF50;
}

.checkout-btn {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    width: 100%;
    padding: 15px;
    background-color: #25D366;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background-color: #20bd5a;
    transform: scale(1.02);
}

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

/* ===== Bottom Bar (Yellow Sticky Bar) ===== */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #FFD700;
    padding: 15px 20px;
    display: none;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1800;
    transition: transform 0.3s ease;
}

.bottom-bar.active {
    display: flex;
}

.bottom-bar-total {
    font-family: 'Cairo', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
}

.bottom-bar-total span {
    color: #4CAF50;
    font-size: 24px;
}

.bottom-bar-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.install-app-btn {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    padding: 12px 25px;
    background-color: #000000;
    color: #FFD700;
    border: 2px solid #000000;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.install-app-btn:hover {
    background-color: #1a1a1a;
    transform: scale(1.05);
}

.buy-now-btn {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    padding: 12px 30px;
    background-color: #4CAF50;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.buy-now-btn:hover {
    background-color: #45a049;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* ===== WhatsApp Float Button ===== */
.whatsapp-float {
    position: fixed;
    left: 30px;
    bottom: 90px;
    background-color: #25D366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    z-index: 1500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #20bd5a;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
}

/* ===== Loading Overlay ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    border: 5px solid #1a1a1a;
    border-top: 5px solid #4CAF50;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

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

/* ===== Empty State ===== */
.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #cccccc;
}

.empty-cart i {
    font-size: 60px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.empty-cart p {
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    font-weight: 500;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .header-actions {
        order: 3;
        width: 100%;
        justify-content: space-between;
    }
    
    .install-header-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .install-header-btn span {
        display: none;
    }
    
    .install-header-btn i {
        font-size: 18px;
    }
    
    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .cart-sidebar {
        width: 100%;
        left: -100%;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        left: 20px;
        bottom: 80px;
    }
    
    .bottom-bar {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    
    .bottom-bar-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .install-app-btn,
    .buy-now-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}