/* Global Variables */
:root {
    --primary: #2c3e50;
    --secondary: #7a0f60;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #1a2530;
    --success: #2ecc71;
    --warning: #f39c12;
    --gold: #FFD700;
    --silver: #C0C0C0;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0,0,0,0.15);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.25);
    --radius: 12px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    color: var(--dark);
    overflow-x: hidden;
    min-height: 100vh;
    /* padding-top: 80px;
    padding-bottom: 80px; */
}

/* Common Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.6);
}

.btn-secondary {
    background: var(--secondary);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-secondary:hover {
    background: #2980b9;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.6);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.section {
    padding: 50px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary);
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* Header Styles */
/* header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
} */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}


.logo h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    color: var(--primary);
    font-size: 28px;
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent);
}

nav a:hover:after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 20px;
    font-size: 20px;
}

.nav-icons a {
    color: var(--primary);
    transition: var(--transition);
}

.nav-icons a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-image {
    height: 220px;
    width: 100%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    max-width: 80%;
    max-height: 80%;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--secondary);
    font-size: 14px;
    margin-bottom: 5px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.product-description {
    color: #777;
    font-size: 14px;
    margin-bottom: 15px;
    height: 40px;
    overflow: hidden;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: 700;
    font-size: 20px;
    color: var(--accent);
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
    margin-right: 10px;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.footer-nav {
    display: flex;
    gap: 25px;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    transition: var(--transition);
}

.footer-nav a i {
    font-size: 20px;
    margin-bottom: 5px;
}

.footer-nav a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    nav ul {
        gap: 20px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .cart-container, .checkout-container, .auth-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
   
    .section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary);
    display: inline-block;
    padding-bottom: 10px;
}
    nav ul {
        display: none;
    }
    
    .hero {
        height: 70vh;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        padding: 0 20px;
    }
    
    .product-detail-container {
        flex-direction: column;
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        height: auto;
    }
    
    footer {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 20px;
    }
    
    .nav-icons {
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 30px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

 .hero-content {
        max-width: 600px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        z-index: 2;
    }

    .hero-img {
        max-width: 600px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        z-index: 2;
    }

    .hero h1 {
        font-family: 'Playfair Display', serif;
        font-size: 4rem;
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: 20px;
        color: #2c3e50;
    }

    .hero p {
        font-size: 1.2rem;
        margin-bottom: 30px;
        max-width: 500px;
        color: gray;
    }

    /* Featured Products */
    .featured-products {
        padding: 50px 5%;
    }

    .hero-slider {
        width: 100%;
        overflow: hidden;
        /* margin-bottom: 40px; */
    }



    .slider-container {
        position: relative;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }
        @media (max-width: 768px) {
        .hero-slider {
            width: 100%;
            overflow-x: hidden;
            /* margin-bottom: 40px; */
            flex-wrap: no-wrap;
        }
        .slider-container {
        position: relative;
        width: 100%;
        max-width: 1200px;
        /* margin: 0 auto; */
        max-height: 150px;
        margin-top: 58px;
        }
    }
     @media (max-width: 768px) {
            .slides {
                height: 200px !important;
                width: 300vw !important;
                min-height: unset !important;
            }
            .slider-img {
                height: fit-content !important;
                min-height: unset !important;
                width: 100vw !important;
                flex: 1 0 100vw !important;
            }
        }
        
        