/* --- Basic Resets & Body --- */
body,
h3,
p {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Using a standard sans-serif font stack */
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
}

/* --- 1. "AJIO Cares" Banner --- */
.ajio-cares-banner {
    /* Dark blue/grey from the image */
    background-color: #2c3e50;
    color: #ffffff;
    text-align: center;
    padding: 25px 15px;
    text-transform: uppercase;
}

.ajio-cares-banner h3 {
    /* Gold/khaki color from the image */
    color: #bfa870;
    /* Using a standard serif as a fallback for the display font */
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-size: 3.6rem;
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 4px;
}

.ajio-cares-banner p {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.ajio-cares-banner p:first-of-type {
    margin-bottom: 5px;
}

/* --- 2. "Features" Section --- */
.features-section {
    /* Using Flexbox to create the 3-column layout */
    display: flex;
    justify-content: space-around;
    /* Evenly spaces the items */
    align-items: flex-start;
    padding: 35px 15px;
    text-align: center;

    /* Faint bottom line from the image */
    border-bottom: 1px solid #eeeeee;
}

.feature-item {
    /* Each item is also a flex container, stacked vertically */
    display: flex;
    flex-direction: column;
    align-items: center;

    /* Each item takes up roughly 1/3 of the width */
    width: 30%;
    max-width: 150px;
    /* Prevents them from getting too wide */
}

.feature-item i {
    font-size: 2.5rem;
    /* Icon size */
    color: #333333;
    /* Dark grey icon color */
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.4;
}

/* --- Responsive Adjustments --- */
@media (max-width: 600px) {

    /* On smaller screens, stack the feature items vertically */
    .features-section {
        flex-direction: column;
        align-items: center;
        padding: 25px 0;
    }

    .feature-item {
        width: 80%;
        /* Give them more width */
        margin-bottom: 30px;
    }

    .feature-item:last-child {
        margin-bottom: 0;
    }

    /* Adjust font sizes for mobile */
    .ajio-cares-banner h3 {
        font-size: 1.4rem;
    }

    .ajio-cares-banner p {
        font-size: 0.75rem;
    }
}

/* --- Info Pages (About, Policies, FAQs) Styles --- */
.info-page-wrapper {
    background-color: #ffffff;
    color: #333333;
    padding: 180px 20px 60px;
    /* Increased top padding to clear fixed navbar */
    min-height: 80vh;
    font-family: Arial, Helvetica, sans-serif;
}

.info-page-content {
    max-width: 900px;
    margin: 0 auto;
}

.info-page-content h1 {
    color: #2c3e50;
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-size: 3rem;
    line-height: 1.2;
    border-bottom: 1px solid #bfa870;
    padding-bottom: 20px;
}

.info-page-content h2,
.info-page-content h3,
.info-page-content h4 {
    color: #2c3e50;
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.info-page-content h2 {
    font-size: 2rem;
}

.info-page-content h3 {
    font-size: 1.5rem;
}

.info-page-content p {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333333;
}

.info-page-content ul,
.info-page-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.info-page-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 10px;
    color: #333333;
}

/* FAQ Specific adjustments */
.info-page-content .faq-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(191, 168, 112, 0.2);
}

.info-page-content .faq-question {
    color: #2c3e50;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    .info-page-content h1 {
        font-size: 2rem;
    }

    .info-page-content p,
    .info-page-content li {
        font-size: 1rem;
    }
}

/* --- Hero Banner Responsive Overrides --- */
.hero__slide {
    height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: auto !important;
    background-color: transparent !important;
    /* Fix black background */
}

.hero__slide-link {
    position: relative !important;
    display: block !important;
    height: auto !important;
}

.hero__bg {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    position: relative !important;
}

/* Ensure swiper wrapper and slides adapt */
.swiper-wrapper,
.swiper-slide {
    height: auto !important;
    background-color: transparent !important;
}

/* --- Mobile Search Visibility & Styling Fix --- */
@media (max-width: 460px) {

    /* Push content down to prevent navbar overlap */
    body {
        padding-top: 170px !important;
    }

    /* Make search visible and style it better */
    .nav__search-wrapper {
        display: flex !important;
        width: 94% !important;
        margin: 10px auto 15px auto !important;
        background-color: #f1f3f5 !important;
        border: 1px solid #e9ecef !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        border-radius: 50px !important;
        height: 44px !important;
    }

    .nav__input {
        font-size: 16px !important;
        /* Prevent iOS zoom */
        padding-left: 15px !important;
        background-color: transparent !important;
        height: 100% !important;
    }

    .nav__search-btn {
        padding: 0 15px !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Fix spacing between categories and search on mobile */
    .nav__secondary {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        padding-bottom: 10px !important;
    }

    .nav__category-hidden {
        width: 100% !important;
        justify-content: space-evenly !important;
        margin-bottom: 5px !important;
    }
}

/* --- Smart Navbar Scroll Behavior --- */
/* When .nav--scrolled-down is present on body, hide the secondary nav (search & categories) */
body.nav--scrolled-down .nav__secondary {
    max-height: 0;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

/* Ensure it animates back in */
.nav__secondary {
    transition: all 0.3s ease-in-out;
    max-height: 500px;
    /* Arbitrary large height to allow content */
    opacity: 1;
}

/* Adjust search wrapper specific transition if needed */
body.nav--scrolled-down .nav__search-wrapper {
    margin: 0 !important;
    height: 0 !important;
    border: none !important;
}

/* --- Top Collections Responsive Grid Refined --- */
.category__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
    justify-content: center;
    /* Center grid content */
}

/* 3 Columns for mid-sized screens/tablets landscape */
@media (max-width: 1250px) {
    .category__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 2 Columns for tablets */
@media (max-width: 950px) {
    .category__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 1 Column for mobile */
@media (max-width: 650px) {
    .category__grid {
        grid-template-columns: 1fr;
        justify-items: center;
        /* Center items in their row */
    }

    /* Ensure card doesn't get too wide or stay left */
    .category__grid .category__card {
        width: 100%;
        max-width: 400px;
        /* legible max width for cards */
        margin: 0 auto;
    }
}
