/* Base Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --gray-color: #95a5a6;
}

body {
    color: rgb(12, 11, 11);
    background-color: rgb(164, 200, 247);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 20px;
}

h1 {
    color: var(--light-color);
    font-size: 40px;
    text-align: center;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

h2{
    color: var(--dark-color);
    font-size: 30px;
    text-align: center;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

h3 {
    color: var(--dark-color);
    font-size: 25px;
    text-align: center;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

p {
    color: rgb(0, 0, 0);
    font-size: 20px;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 20px;
}

h4 {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 22px;
    color: #333;
    margin: 10px 0;
    text-align: center;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.container-fluid {
    width: 100%;
    padding: 0 15px;
}

/* Images Styles */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
}

/* For the header layout */
.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* If you need to adjust the header padding */
.main-header {
    padding: 0.5rem 0; /* Reduced padding to make header more compact */
}

/* Button Styles */
.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

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

/* Header Styles */
.main-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
}

.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.main-nav a.active {
    color: var(--secondary-color);
    font-weight: bold;
}

.cart-link {
    font-weight: bold;
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

    .main-header {
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding: 15px 0;
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .logo-container {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .site-logo {
        height: 60px;
        width: auto;
    }
    
    .logo {
        font-size: 1.2rem;
        margin: 0;
        color: #333;
    }
    
    .main-nav ul {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 20px;
    }
    
    .main-nav a {
        text-decoration: none;
        color: #333;
        font-weight: 500;
        padding: 5px 0;
        position: relative;
    }
    
    .main-nav a:hover {
        color: #0066cc;
    }
    
    /* Dropdown Styles */
        .dropdown-container {
            position: relative;
        }
        
        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: var(--white);
            box-shadow: var(--shadow);
            border-radius: 5px;
            padding: 15px;
            min-width: 200px;
            display: none;
            flex-direction: column;
            gap: 10px;
            z-index: 100;
        }
        
        .dropdown-container:hover .dropdown-menu {
            display: flex;
        }
        
        .dropdown-menu a {
            padding: 8px 12px;
            border-radius: 3px;
        }
        
        .dropdown-menu a:hover {
            background: rgba(76, 108, 216, 0.1);
        }

    .menu-toggle {
        display: none;
        background: var(--dark-color);
        border: 5px solid var(--dark-color);
        font-size: 1.5rem;
        cursor: pointer;
    }
    
    @media (max-width: 768px) {
        .menu-toggle {
            display: block;
        }
        
        .main-nav ul {
            display: none;
            flex-direction: column;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background-color: #fff;
            padding: 20px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .main-nav.active ul {
            display: flex;
        }
        
        .dropdown-menu {
            position: static;
            box-shadow: none;
            display: none;
            padding-left: 15px;
        }

        .dropdown-container:hover .dropdown-menu,
        .dropdown-container:focus-within .dropdown-menu {
            display: block;
        }
    }

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://cdn.pixabay.com/photo/2016/04/06/21/14/icons-1312801_640.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 5rem 0;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: rgb(245, 235, 235);
    text-align: center;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgb(181, 248, 248);
    text-align: center;
}

/* Product Grid */
.featured-products {
        padding: 60px 0;
        background-color: #f9f9f9;
    }
    
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .section-title {
        text-align: center;
        margin-bottom: 40px;
        font-size: 2rem;
        color: #333;
        position: relative;
    }
    
    .section-title::after {
        content: '';
        display: block;
        width: 80px;
        height: 3px;
        background: #0066cc;
        margin: 15px auto 0;
    }
    
    .products-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .product-card {
        background: white;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
    }
    
    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }
    
    .product-badge {
        position: absolute;
        top: 15px;
        left: 15px;
        background: #0066cc;
        color: white;
        padding: 5px 10px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: bold;
        z-index: 1;
    }
    
    .product-image {
        height: 220px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f5f5f5;
    }
    
    .product-image img {
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
        transition: transform 0.5s ease;
    }
    
    .product-card:hover .product-image img {
        transform: scale(1.05);
    }
    
    .product-details {
        padding: 20px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
    
    .product-header {
        margin-bottom: 10px;
    }
    
    .product-header h3 {
        margin: 0 0 5px;
        font-size: 1.2rem;
        color: #333;
    }
    
    .product-rating {
        display: flex;
        align-items: center;
        font-size: 0.9rem;
    }
    
    .stars {
        color: #ffc107;
        font-size: 1.5rem;
        margin-left: 5px;
        margin-right: 5px;
    }
    
    .review-count {
        color: #777;
        margin-left: 5px;
    }
    
    .product-description {
        color: #666;
        font-size: 0.95rem;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    
    .product-features {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .feature {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: #f0f8ff;
        padding: 8px;
        border-radius: 5px;
        font-size: 0.8rem;
    }
    
    .feature .icon {
        font-size: 1.2rem;
        margin-bottom: 3px;
    }
    
    .product-footer {
        margin-top: auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .price {
        font-weight: bold;
        font-size: 1.2rem;
        color: #0066cc;
    }
    
    .old-price {
        text-decoration: line-through;
        color: #999;
        font-size: 0.9rem;
        margin-right: 5px;
    }
    
    .add-to-cart {
        background: #0066cc;
        color: white;
        border: none;
        padding: 8px 15px;
        border-radius: 5px;
        cursor: pointer;
        display: flex;
        align-items: center;
        transition: background 0.3s ease;
    }
    
    .add-to-cart:hover {
        background: #0055aa;
    }
    
    .cart-icon {
        margin-right: 5px;
    }
    
    @media (max-width: 768px) {
        .products-grid {
            grid-template-columns: 1fr;
        }
    }

/* Shopping Cart */
.cart-container {
    padding: 2rem;
    background-color: #f9f9f9;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.cart-header h2 {
    font-size: 2rem;
    color: var(--dark-color);
}

.div-class {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: white;
    border-radius: 5px;
}

.div-class h2 {
    font-size: 2rem;
    color: var(--dark-color);
}

.div-class h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
}

.div-class p {
    font-size: 1.2rem;
    color: var(--gray-color);
}

/* Stats Section */
        .stats-section {
            padding: 80px 0;
            background: linear-gradient(rgba(183, 204, 250, 0.459), rgba(3, 2, 94, 0.8)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
            color: white;
            text-align: center;
        }
        
        .stats-section h2 {
            font-size: 2.5rem;
            margin-bottom: 20px;
            font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
            color: lightblue;
        }

        .stats-section p {
            font-size: 1.2rem;
            margin-bottom: 40px;
            color: lightblue;
            color: rgba(255, 255, 255, 0.8);
        }
        .stats-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
            gap: 30px;
        }
        
        .stat-item {
            flex: 1;
            min-width: 200px;
            padding: 30px;
        }
        
        .stat-number {
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 10px;
            color: aqua;
        }
        
        .stat-text {
            font-size: 1.2rem;
            opacity: 0.9;
        }

/* Footer Styles */
        .main-footer {
            background-color: #02273d;
            color: var(--white);
            padding: 60px 0 20px;
        }
        
        .footer-container {
            display: flex;
            flex-wrap: wrap;
            gap: 50px;
            margin-bottom: 40px;
        }
        
        .footer-column {
            flex: 1;
            min-width: 250px;
        }
        
        .footer-column h2 {
            font-size: 1.5rem;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }
        
        .footer-column h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 2px;
            background: #2980b9;
        }
        
        .footer-column ul {
            list-style: none;
        }
        
        .footer-column li {
            margin-bottom: 10px;
        }
        
        .footer-column a:hover {
            color: var(--primary-color); 
            padding-left: 5px;
        }
        
        .footer-logo-container {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .footer-logo {
            height: 50px;
            width: auto;
        }
        
        .footer-logo-text {
            font-size: 1.5rem;
            font-weight: 700;
        }
        
        .newsletter-form {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .newsletter-form input {
            padding: 12px 15px;
            border: none;
            border-radius: 4px;
            font-size: 1rem;
        }
        
        .social-links-footer {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .social-links-footer a {
            color: var(--white);
            text-decoration: none;
            font-size: 1.5rem;
            transition: color 0.3s;
        }

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

        .social-links-footer a {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }
    
        .footer-bottom {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 0.9rem;
            opacity: 0.8;
        }

/* Form Styles */
.box {
    margin: 20px;
    padding: 20px;
    border: 1px solid #eee;
}

.form-group {
    margin-bottom: 15px;
}

/* Responsive Grid */
@media (min-width: 768px) {
    .footer-columns {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        margin-bottom: 0;
    }
}

/* Animations */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes slideInDown {
            from {
                opacity: 0;
                transform: translateY(-50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .animate-on-scroll {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }
        
        .animate-on-scroll.visible {
            opacity: 1;
            transform: translateY(0);
        }

/* Mobile Menu */
@media (max-width: 767px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .main-nav ul.show {
        display: flex;
    }
    
    .main-nav a {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Add this to your CSS if using the JavaScript */
.shipping-section li.active {
    background-color: #ebf8ff;
    border-color: #90cdf4;
    box-shadow: 0 0 0 2px #bee3f8;
}

.shipping-section li.active strong {
    color: #2b6cb0;
}
