/* ========================================= */
/* ⭐️ JYOTHI TAILORS MASTER STYLESHEET ⭐️ */
/* ========================================= */

/* === BASE STYLES & VARIABLES === */
:root {
    --primary-color: #3A1E58; 
    --secondary-color: #f43f7d; 
    --accent-color: #CBBF81; /* Premium Belt Color */
    --text-dark: #141726;
    --text-light: #666666;
    --bg-light: #fcfcfc;
    --white: #ffffff;
    --border-color: #E3E9EF;
    --transition: all 0.3s ease;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; 
    -webkit-tap-highlight-color: transparent;
}

body { 
    background-color: var(--bg-light); 
    color: var(--text-dark); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased; 
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

.container { 
    max-width: 1450px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* === 1. PREMIUM DESKTOP NAVBAR (YOUR DESIGN) === */
header { 
    background-color: var(--white); 
    box-shadow: 0px 4px 16px rgba(43, 52, 69, 0.05); 
    position: sticky; 
    top: 0; 
    z-index: 9999; 
    border-bottom: 1px solid var(--border-color); 
}

.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 85px; 
    position: relative; 
}

.nav-left { display: none; } /* Hide mobile hamburger */

.logo {
    display: flex;
    align-items: center;
    margin-right: auto; /* Pushes everything away to keep logo left */
}

.logo img {
    height: 65px; 
    object-fit: contain;
}

.nav-links { 
    display: flex; 
    gap: 2.8rem; 
    align-items: center; 
    position: absolute; 
    left: 50%; 
    transform: translateX(-50%); 
    margin: 0; 
}

.nav-links a { 
    font-weight: 600; 
    font-size: 0.95rem; 
    color: var(--primary-color); 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    position: relative; 
    padding-bottom: 5px; 
}

.nav-links a::after { 
    content: ''; 
    position: absolute; 
    width: 100%; 
    height: 2px; 
    bottom: 0; 
    left: 0; 
    background-color: var(--secondary-color); 
    transform: scaleX(0); 
    transform-origin: bottom right; 
    transition: transform 0.3s ease-out; 
}

.nav-links a:hover::after, 
.nav-links a.active-link::after { 
    transform: scaleX(1); 
    transform-origin: bottom left; 
}

.nav-links a:hover, .nav-links a.active-link { 
    color: var(--secondary-color); 
}

.nav-icons { 
    display: flex; 
    gap: 1.8rem; 
    font-size: 1.4rem; 
    color: var(--primary-color); 
    align-items: center; 
}

.nav-icons i { 
    cursor: pointer; 
    transition: var(--transition); 
}

.nav-icons i:hover { 
    color: var(--secondary-color); 
    transform: translateY(-2px); 
}

.cart-wrapper { 
    position: relative; 
    display: flex; 
    align-items: center; 
    cursor: pointer; 
}

.cart-badge { 
    position: absolute; 
    top: -6px; 
    right: -8px; 
    background-color: var(--secondary-color); 
    color: white; 
    font-size: 0.65rem; 
    font-weight: 700; 
    height: 18px; 
    width: 18px; 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    border: 2px solid var(--white); 
}

.close-menu-btn, .mobile-bottom-nav { display: none; }

/* --- 2. FIXED HERO BANNER --- */
.hero-banner { width: 100%; background-color: var(--white); }
.hero-banner img {
    width: 100%;
    height: auto; 
    display: block;
}

/* --- 3. INFINITE SCROLLING INFO BELT --- */
.info-belt {
    background-color: var(--accent-color);
    padding: 12px 0; 
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.belt-track {
    display: inline-flex;
    animation: scrollBelt 25s linear infinite;
}

.belt-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 50px;
}

.belt-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.belt-text { display: flex; flex-direction: column; }
.belt-text strong { font-size: 0.95rem; color: var(--primary-color); }
.belt-text span { font-size: 0.8rem; color: var(--primary-color); }

@keyframes scrollBelt {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* --- 4. DESKTOP PRODUCT GRID (4 ITEMS PER ROW) --- */
.categories { padding: 60px 20px; }

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px;
}

.category-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    padding-bottom: 20px;
    border: 1px solid var(--border-color);
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.category-img-wrapper {
    width: 100%;
    height: 380px; 
    overflow: hidden;
    background-color: #f9f9f9;
}

.category-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.category-item:hover .category-img-wrapper img {
    transform: scale(1.05);
}

.category-item h3 {
    margin-top: 20px;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* --- 5. FOOTER --- */
footer {
    background-color: var(--white);
    padding: 0.5rem 0.5rem 0.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a { color: var(--text-light); transition: var(--transition); font-size: 0.95rem; }
.footer-col ul li a:hover { color: var(--primary-color); font-weight: 500; }

.social-icons { display: flex; gap: 1.2rem; margin-top: 1rem; }
.social-icons i { font-size: 1.5rem; color: var(--primary-color); cursor: pointer; transition: var(--transition); }
.social-icons i:hover { color: var(--secondary-color); transform: scale(1.1); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
}


/* ========================================= */
/* 📱 NATIVE APP MOBILE ENGINE (Under 768px) */
/* ========================================= */
@media (max-width: 768px) {
    
    body { padding-bottom: 80px; } /* Space for App Bar */

    /* 1. "TRUE CENTER" MOBILE HEADER */
    .navbar {
        display: flex !important;
        align-items: center !important;
        padding: 10px 20px !important;
        height: 65px !important;
    }
    
    .nav-left { display: flex !important; flex: 1; justify-content: flex-start; }
    .logo { display: flex; flex: 1; justify-content: center; position: static; margin: 0; }
    .nav-icons { display: flex !important; flex: 1; justify-content: flex-end; gap: 1rem; }

    .logo img { height: 50px !important; } 
    .desktop-only { display: none !important; }

    /* 2. Hamburger Mechanics */
    .mobile-menu-toggle {
        background: none;
        border: none;
        font-size: 1.6rem;
        color: var(--primary-color);
        cursor: pointer;
    }

    .nav-links {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important; 
        width: 75vw !important; 
        height: 100vh !important;
        background: #ffffff !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding: 80px 30px !important;
        box-shadow: 5px 0 15px rgba(0,0,0,0.3) !important;
        transition: left 0.3s ease !important;
        z-index: 100000 !important;
        gap: 25px !important;
        transform: none !important; /* Removes desktop centering */
    }
    .nav-links.active { left: 0 !important; }

    .close-menu-btn {
        display: block !important;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 1.8rem;
        color: var(--primary-color);
    }

    /* 3. Mobile Banner */
    .hero-banner img {
        height: auto !important; 
        object-fit: contain !important; 
    }

    /* 4. ⭐️ THE 2-COLUMN VERTICAL GRID (NO SWIPE) ⭐️ */
    .categories { padding: 30px 15px !important; }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
        text-align: center; 
    }

    .category-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* Force 2 columns */
        gap: 15px !important; 
    }

    .category-item {
        border-radius: 10px;
        padding-bottom: 12px;
    }

    .category-img-wrapper {
        height: 200px !important; /* Perfect phone height */
    }

    .category-item h3 {
        font-size: 0.9rem !important; 
        margin-top: 10px;
    }

    /* 5. Sticky Bottom Navigation */
    .mobile-bottom-nav {
        display: flex !important;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
        padding: 10px 0 15px 0;
        z-index: 99999;
    }

    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #64748b;
        font-size: 0.65rem;
        gap: 4px;
        font-weight: 500;
    }

    .mobile-bottom-nav .nav-item i { font-size: 1.2rem; }
    .mobile-bottom-nav .nav-item.active { color: var(--primary-color); font-weight: 700; }
}