/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    /* Primary brand color, thoda dark/professional look ke liye */
    --primary-color: #000;
    /* Light background color for contrast */
    --secondary-color: #f7f7f7;
    --text-color: #333;
    --light-text: #777;
    --accent-color: #28a745; /* Green for action buttons */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* --- Header Styling Update --- */
header {
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    
    /* Fixed Header Properties */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* --- Hero Section Styling (Header ke Neeche ka Area) --- */
.hero-section {
    text-align: center;
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.85);
    border-bottom: 5px solid var(--accent-color);
    margin-bottom: 0px;
}

.hero-section h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 30px;
    padding-top:0px;
}

/* Call to Action Button */
.hero-cta {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-cta:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Cart Badge Styling (style.css mein add karein) */

.cart-icon-badge-container {
    /* Isse badge ko icon ke relative position mil jaati hai */
    position: relative; 
    display: inline-block;
}

.cart-badge {
    /* Badge ki basic styling */
    background-color: var(--accent-color); /* Green color */
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
    
    /* Position icon ke top-right corner par */
    position: absolute;
    top: -5px; /* Thoda upar */
    right: -10px; /* Thoda side mein */
    line-height: 1; /* Text ko center karne ke liye */
    min-width: 18px; /* Single digit aur double digit ke liye */
    text-align: center;
}

/* Light Background Requirement */
body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    background-image: url('https://www.transparenttextures.com/patterns/white-diamond.png');
}

/* Container for centering content */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    /* Fixed header ki height compensate ki */
    padding-top: 100px; 
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.category-section {
    padding: 60px 0;
    text-align: center;
}

.section-heading {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--primary-color);
}

/* Responsive Grid for Categories */
.category-grid {
    display: grid;
    /* Default: 3 columns for desktop */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 50px;
}

/* **MODIFIED** - Category Item styles */
.category-item {
    display: block;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    padding-bottom: 30px; 
}

.category-item:hover {
    transform: translateY(-5px);
}

/* **MODIFIED** - Circular Image Wrapper (Fix applied here) */
.category-image-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    overflow: hidden; /* **Text ko circle ke andar se bahar nikalne se roke** */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--secondary-color);
    background-color: #fff;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* **MODIFIED** - Category Name positioning (Name ko circle ke neeche rakha) */
.category-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 10px;
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    line-height: 1.2;
}

/* --- Upcoming Section Styling --- */

.upcoming-section {
    padding: 0;
    margin: 50px 0;
    text-align: center;
}

.upcoming-card {
    /* Full width, container mein nahi rahega */
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 80px 0;
    
    /* Background Image Styling */
    background-image: url('https://picsum.photos/1600/600?random=upcoming_shoes');
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
}

/* Dark Overlay for Text Readability */
.upcoming-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

/* Content ko overlay ke upar lane ke liye */
.card-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.card-content h3 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-content p {
    font-size: 1.4rem;
    color: #eee;
    margin-bottom: 25px;
}

.upcoming-tag {
    background-color: #fff;
    color: var(--primary-color);
    font-size: 1.2rem;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 700;
}

/* Animation for the 'Coming Soon!' tag */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* ------------------------------------------------------------------ */
/* RESPONSIVE MEDIA QUERIES                     */
/* ------------------------------------------------------------------ */


/* Tablet View (Max Width 992px) */
@media (max-width: 992px) {
    /* Header Adjustments */
    .header-content {
        /* Mobile par nav links chupa dete hain ya flex wrap kar dete hain */
        flex-wrap: wrap; 
        justify-content: center;
    }
    .main-nav {
        order: 3; /* Nav links ko neeche le aaye */
        width: 100%;
        margin-top: 10px;
    }

    /* Categories Adjustments */
    .category-grid {
        /* Tablet par 2 columns */
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
        gap: 25px;
    }

    /* Hero Section Adjustments */
    .hero-section h2 {
        font-size: 2.8rem;
    }

    /* Upcoming Section Adjustments */
    .upcoming-card {
        padding: 60px 0;
    }
    .card-content h3 {
        font-size: 2.5rem;
    }
}


/* Mobile View (Max Width 576px) */
@media (max-width: 576px) {
    /* Main Container Padding (Fixed header ke liye) */
    .container {
        padding-top: 80px; /* Header chota ho sakta hai, toh padding kam kiya */
    }

    /* Header Adjustments */
    .header-content {
        padding: 15px 0;
    }
    .main-nav {
        /* Mobile par navigation ko chupa sakte hain ya vertical kar sakte hain */
        display: none; /* Ya fir hamburger menu se show karein */
    }
    .header-icons a {
        margin-left: 10px;
        font-size: 1rem;
    }

    /* Categories Adjustments */
    .category-grid {
        /* Mobile par 1 column */
        grid-template-columns: 1fr;
        padding: 0 10px;
        gap: 20px;
    }
    .category-image-wrapper {
        width: 180px;
        height: 180px;
    }
    .section-heading {
        font-size: 1.5rem;
    }
    .category-name {
        font-size: 0.9rem;
    }

    /* Hero Section Adjustments */
    .hero-section h2 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }

    .hero-section {
        padding: 35px 25px;
    }

    .hero-cta {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Upcoming Section Adjustments */
    .upcoming-card {
        padding: 40px 0;
    }
    .card-content h3 {
        font-size: 1.8rem;
    }
    .card-content p {
        font-size: 1rem;
    }
}