/* 
    ORIGINAL PREMIUM STYLE SHEET: Suropriyo E-Commerce
    Restored from home_old.php for absolute visual fidelity.
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

:root {
    --white: #ffffff;
    --dark: #1a1a1a;
    --primary: #f7b731;
    --brand-accent: #f7b731;
    --text-main: #282c3f;
    --nav-font-size: 14px;
    --gray: #6b7280;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 25px 50px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    --radius-sm: 12px;
    --container-max: 1440px;
    --container-padding: clamp(16px, 4vw, 40px);
    --primary-dark: #B8940B;
    --primary-light: #FDF3A2;
    --light: #f8f9fa;
    --teal-light: #FBBF24;
    --brand-teal: #FFEA00;
    --shadow-soft: 0 8px 32px rgba(234, 236, 74, 0.12);
    --charcoal: #1A1F35;
    --gap: clamp(16px, 3vw, 32px);
    --teal-dark: #EA580C;
    --brand-orange: #FB923C;
    --orange-light: #E0E7FF;
    --gradient-primary: linear-gradient(135deg, #e9c213 0%, #FFEA00 100%);
    --gradient-cta: linear-gradient(135deg, var(--brand-teal), var(--teal-dark));
    --slate: #334155;
    --stone: #F1F5F9;
    --glass: linear-gradient(135deg, #ffe5b9 0%, #fff8f0 50%, #fff4eb 100%);
    --radius: 20px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: #fafbfc;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}
.top-bar {
    background: var(--primary);
    color: white;
    padding: 10px 0;
    font-size: 13px;
}

.top-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.top-bar-left a {
    color: white;
    text-decoration: none;
    margin-right: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.top-bar-left a:hover {
    opacity: 0.9;
    transform: translateX(3px);
}

.top-bar-right {
    display: flex;
    gap: 25px;
    align-items: center;
    font-size: 12px;
}

.top-bar-right a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.top-bar-right a:hover {
    opacity: 0.9;
}

/* ==========================================================================
   MYNTRA-STYLE HEADER & NAVIGATION
   ========================================================================== */

.main-header {
    background: #fff;
    box-shadow: 0 4px 12px 0 rgba(0,0,0,.05);
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* SweetAlert2 Toast Offset */
.toast-container-below-nav {
    margin-top: 80px !important;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 40px;
    gap: 0;
}

/* Logo */
.logo-section {
    margin-right: 40px;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.logo-icon {
    background: #f7b731; /* Myntra-ish Pink/Red */
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    margin-right: 12px;
}

.logo-text {
    font-weight: 800;
    font-size: 18px;
    color: #282c3f;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Desktop Navigation */
.main-nav {
    flex-shrink: 0;
    height: 124%;
}

.nav-links {
    list-style: none;
    display: flex;
    height: 100%;
    margin: 0;
    padding: 0;
}

.nav-link-item {
    text-decoration: none !important;
    color: #282c3f;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0 18px;
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 4px solid transparent;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.nav-links > li:hover .nav-link-item {
    border-bottom-color: #f7b731;
}

/* Search Bar */
.search-container {
    flex-grow: 1;
    max-width: 500px;
    margin-left: auto;
    margin-right: 40px;
    position: relative;
}

.search-input {
    width: 100%;
    height: 40px;
    background: #f5f5f6;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 10px 10px 10px 48px;
    font-size: 14px;
    color: #282c3f;
    transition: all 0.2s ease;
}

.search-input:focus {
    background: #fff;
    border-color: #eaeaec;
    box-shadow: none;
    outline: none;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #696e79;
    font-size: 18px;
}

/* Action Icons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #282c3f;
    transition: all 0.2s ease;
    min-width: 45px;
    position: relative;
    padding-top: 5px;
}

.action-item .icon-wrapper {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3px;
}

.action-item i {
    font-size: 20px;
    color: #282c3f;
}

.action-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
    color: #282c3f;
}

.action-item:hover .action-label,
.action-item:hover i {
    color: #f7b731;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #f7b731;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
}

/* RESPONSIVE FIXES */
@media (max-width: 1200px) {
    .header-container {
        padding: 0 20px;
    }
    .logo-section {
        margin-right: 20px;
    }
    .nav-link-item {
        padding: 0 12px;
    }
    .search-container {
        margin-right: 20px;
        max-width: 350px;
    }
}

@media (max-width: 991px) {
    .main-header {
        height: auto;
        padding: 10px 0;
    }
    .header-container {
        flex-wrap: wrap;
        padding: 0 15px;
        gap: 10px;
    }
    .logo-section {
        margin: 0;
        order: 1;
    }
    .search-container {
        order: 3;
        flex-basis: 100%;
        margin: 0;
        max-width: none;
    }
    .header-actions {
        margin-left: auto;
        order: 2;
        gap: 15px;
    }
    .action-label {
        display: none;
    }
    .action-item {
        min-width: auto;
        padding: 0;
    }
    .mobile-toggle {
        order: 0;
    }
    .mobile-toggle i {
        font-size: 26px;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 0 10px;
        gap: 8px;
    }
    .logo-icon {
        width: 30px;
        height: 30px;
        font-size: 16px;
        margin-right: 0;
    }
    .logo-text {
        display: none;
    }
    .search-input {
        height: 36px;
        font-size: 13px;
    }
    .header-actions {
        gap: 12px;
    }
    .action-item i {
        font-size: 18px;
    }
}
.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--teal-light);
    font-size: 10px;
    font-weight: 900;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 3px 8px rgba(255, 63, 108, 0.3);
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 20px 20px 0 rgba(0,0,0,.1);
    display: none;
    z-index: 999;
    padding: 30px 0;
    border-top: 1px solid #eaeaec;
}

.nav-links > li:hover .mega-menu {
    display: block;
}

.menu-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 40px;
}

.menu-column {
    min-width: 180px;
}

.menu-title {
    color: var(--brand-accent);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
    text-decoration: none !important;
    text-transform: uppercase;
}

.sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sub-menu li {
    margin-bottom: 8px;
}

.sub-menu a {
    text-decoration: none !important;
    color: #535766;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s;
}

.sub-menu a:hover {
    color: #000;
    font-weight: 700;
}

@media (max-width: 991px) {
    .top-bar-left {
        display: none;
    }
    .top-bar-container {
        justify-content: center;
        padding: 0 15px;
    }
    .header-container {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 20px;
        gap: 10px;
    }
    .logo-section {
        margin-right: 0;
    }
    .logo-text {
        font-size: 20px;
    }
    .main-nav {
        display: none;
    }
    .search-container {
        flex-basis: 100%;
        margin: 5px 0 0;
        order: 3;
    }
    .header-actions {
        margin-left: auto;
        gap: 15px;
    }
    .action-item span {
        display: none;
    }
    .action-item {
        min-width: auto;
    }
    .action-item i {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 10px 15px;
    }
    .logo-text {
        display: none;
    }
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
        margin-right: 0;
    }
    .header-actions {
        gap: 12px;
    }
}

/* HERO BANNER - ROTATING FOCUS EFFECT */
.hero-banner-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 10px auto;
    padding: 0 30px;
}

.hero-banner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    height: 420px;
    align-items: stretch;
}

.banner-main,
.banner-side {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    display: block;
    text-decoration: none;
    color: white;
    background: #f1f3f6;
}

.banner-main img,
.banner-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: opacity 0.5s ease;
}

.banner-content-wrapper {
    position: absolute;
    bottom: 35px;
    left: 25px;
    right: 25px;
    color: white;
    z-index: 2;
    text-align: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.banner-main .banner-title { font-size: clamp(24px, 4vw, 36px); font-weight: 800; margin-bottom: 8px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.banner-side .banner-title { font-size: clamp(16px, 2vw, 22px); font-weight: 700; margin-bottom: 4px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.banner-subtitle { font-size: 14px; opacity: 0.9; font-weight: 500; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }

/* Nav Buttons */
.banner-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal);
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.banner-nav-btn:hover { background: var(--primary); color: white; transform: translateY(-50%) scale(1.1); }
.banner-nav-btn.prev { left: 10px; }
.banner-nav-btn.next { right: 10px; }

/* Animation State */
.content-swapping { opacity: 0; transform: translateY(15px); }
.img-swapping { opacity: 0.4; }

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
    z-index: 1;
}

.featured-section {
    padding: 10px 40px;
    background: #fff;
    text-align: center;
}

.section-title {
    font-size: 24px;
    margin-bottom: 30px;
    position: relative;
    font-weight: 700;
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.category-slider {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    gap: 20px;
    width: 100%;
}

.category-card {
    min-width: 260px;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.category-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.category-info {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    padding: 10px;
    margin: 0 10px;
    border-radius: 8px;
}

.category-info h3 {
    margin: 0;
    font-size: 16px;
    letter-spacing: 1px;
    font-weight: 700;
}

.category-info span {
    font-size: 12px;
    color: #555;
}

.slide-btn {
    background: #000;
    color: #fff;
    border: none;
    font-size: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    opacity: 0.8;
    border-radius: 50%;
}

.slide-btn.left { left: -10px; }
.slide-btn.right { right: -10px; }
.slide-btn:hover { opacity: 1; }

.topcats-container {
    max-width: var(--container-max);
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.topcats-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px var(--container-padding);
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.topcats-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topcats-heading {
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 700;
    color: var(--charcoal);
    margin: 0;
    background: linear-gradient(135deg, #F59E0B, var(--teal-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.topcats-subtext {
    font-size: 14px;
    color: var(--slate);
    font-weight: 500;
}

.topcats-controls {
    display: flex; gap: 8px;
}

.topcats-arrow {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--glass);
    color: var(--teal-dark);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: var(--shadow-soft);
}

.topcats-arrow:hover {
    background: var(--gradient-cta);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.topcats-track {
    display: flex;
    gap: var(--gap);
    padding: 32px var(--container-padding);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.topcats-track::-webkit-scrollbar { display: none; }

.topcats-item {
    flex: 0 0 140px;
    height: 140px;
    border-radius: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    scroll-snap-align: start;
    min-width: 140px;
    transition: var(--transition);
    border: 3px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, var(--brand-teal), #ffffff);
    background-origin: border-box;
    background-clip: content-box, border-box;
    box-shadow: var(--shadow-soft);
}

.topcats-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-hover);
    border-color: var(--brand-teal);
}

.topcats-thumb {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(72, 180, 160, 0.2);
    transition: var(--transition);
}

.topcats-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--charcoal);
    text-align: center;
    line-height: 1.3;
    padding: 0 8px;
}

.dual-container-section {
    max-width: 1440px;
    margin: 60px auto;
    padding: 0 32px;
}

.section-wrapper {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.left-container {
    flex: 1;
    max-width: 600px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.slider-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--charcoal);
    margin: 0;
}

.slider-controls {
    display: flex;
    gap: 8px;
}

.slider-btn {
    width: 48px;
    height: 48px;
    border: none;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-outer {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid rgba(72, 180, 160, 0.1);
}

.slider-inner {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
    gap: 20px;
    padding: 20px;
}

.product-slide {
    flex: 0 0 260px;
    background: white;
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.product-slide h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--charcoal);
    margin: 0 0 12px 0;
}

.product-slide .price {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-orange);
}

.right-container {
    flex-shrink: 0;
    width: 500px;
}

.banner-box {
    position: relative;
    height: 400px;
    margin-top: 70px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: white;
    padding: 40px 32px 32px;
}

.banner-text h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.banner-text p {
    font-size: 16px;
    margin: 0 0 24px 0;
    line-height: 1.5;
    color: #ffffff;
}

.shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-primary);
    color: black;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.category-nav {
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 12px 0;
    margin: 0;
}

.nav-links li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--primary);
}

/* Mega Menu Styles */
.has-dropdown {
    position: static; 
}

.category-nav .header-container {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 25px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-bottom: 3px solid var(--primary);
}

.has-dropdown:hover .mega-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.menu-column .menu-title {
    font-weight: 600;
    color: var(--dark);
    display: block;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
}

.sub-menu {
    list-style: none;
    padding: 0;
}

.sub-menu li {
    margin-bottom: 8px;
}

.sub-menu li a {
    color: #666 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    transition: 0.2s !important;
}

.sub-menu li a:hover {
    color: var(--primary) !important;
    padding-left: 5px;
}

.main-footer {
    background: var(--charcoal);
    color: #B8BCC9;
    margin-top: 20px;
    padding-top: 40px;
}

.footer-top {
    padding-bottom: 40px;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
}

.payment-icons {
    display: flex;
    gap: 15px;
    color: #fff;
}


.footer-heading {
    font-size: 12px;
    font-weight: 700;
    color: white;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 12px; }
.footer-links a, .mail-section p, .office-section p { color: #B8BCC9; text-decoration: none; font-size: 12px; line-height: 1.5; margin-bottom: 8px; }
.footer-links a:hover { color: var(--brand-teal); }

.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-icon { width: 36px; height: 36px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #B8BCC9; font-size: 14px; transition: all 0.3s; }
.social-icon:hover { background: var(--brand-teal); color: white; transform: translateY(-2px); }

.footer-bottom-section { padding: 32px 0 0; background: rgba(58, 63, 71, 0.5); border-top: 1px solid #3A3F47; }
.footer-buttons { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.footer-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: rgba(255, 255, 255, 0.08); color: #B8BCC9; text-decoration: none; border-radius: 25px; font-size: 14px; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.1); transition: all 0.3s ease; }
.footer-btn:hover { background: var(--brand-teal); color: white; transform: translateY(-2px); }

.footer-bottom { padding: 32px 0; background: var(--charcoal); }
.footer-bottom .footer-container { display: flex; justify-content: space-between; align-items: center; }
.payment-icons { display: flex; gap: 12px; }
.payment-icons img { height: 28px; width: auto; border-radius: 4px; }

@media (max-width: 1200px) {
    .hero-banner { grid-template-columns: 2fr 1fr; }
    .banner-side:nth-child(3) { display: none; }
}

@media (max-width: 768px) {
    .main-footer {
        margin-top: 40px;
    }
    .footer-top {
        padding-bottom: 30px;
    }
    .footer-container { 
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
    .footer-bottom .footer-container {
        gap: 20px;
    }
    .payment-icons {
        justify-content: center;
    }
    .hero-banner { grid-template-columns: 1fr; height: auto; }
    .vertical-divide { display: none; }
    .section-wrapper { flex-direction: column; }
    .right-container { width: 100%; }
}

/* =============================================
   PRODUCT GRID / CATEGORY PAGE - Missing Rules
   ============================================= */

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.product-count {
    font-size: 14px;
    color: #6b7280;
}

.sort-dropdown {
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    background: #f8f9fa;
    cursor: pointer;
    outline: none;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.product-card-flipkart {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

.product-card-flipkart:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
    transform: translateY(-3px);
}

.product-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.product-image-container {
    position: relative;
    background: #f7f8fa;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    overflow: hidden;
}

.product-image {
    max-height: 180px;
    width: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s ease;
}

.product-card-flipkart:hover .product-image {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff6161;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.product-details {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #388e3c;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.rating-stars i { font-size: 10px; }

.reviews-count {
    font-size: 12px;
    color: #878787;
}

.product-specs {
    margin-bottom: 8px;
}

.spec-item {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 2px;
}

.price-section {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #212121;
}

.original-price {
    font-size: 13px;
    color: #878787;
    text-decoration: line-through;
}

.price-symbol { font-size: 14px; }
.price-value  { font-size: 18px; font-weight: 700; }

.stock-delivery {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    font-size: 12px;
}

.in-stock  { color: #388e3c; font-weight: 600; }
.out-stock { color: #d32f2f; font-weight: 600; }
.delivery-info { color: #878787; }

.card-actions {
    padding: 12px 14px;
    
}

.btn-add-cart {
    width: 100%;
    padding: 10px;
    background: var(--primary, #f7b731);
    color: #212121;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-add-cart:hover {
    background: var(--primary-dark, #B8940B);
    transform: translateY(-1px);
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.no-products i { font-size: 48px; color: #d1d5db; margin-bottom: 16px; display: block; }
.no-products h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.no-products p  { color: #6b7280; margin-bottom: 20px; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #fff;
    color: #212121;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
    cursor: pointer;
}
.page-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Skeleton loader */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s infinite;
    border-radius: 8px;
}
@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Lazy-loaded image fade-in */
img { opacity: 1; transition: opacity 0.3s ease; }
img.loaded { opacity: 1; }

/* Cart page extras */
.cart-item-row { transition: background 0.2s ease; }
.cart-item-row:hover { background: #fafafa; }
.sticky-bottom-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
}
.btn-qty { background: #f5f5f5; border: 1px solid #e0e0e0; padding: 2px 10px; font-weight: 700; }

@media (max-width: 768px) {
    .products-container { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .filter-bar { flex-direction: column; gap: 10px; align-items: flex-start; }
}

@media (max-width: 480px) {
    .products-container { grid-template-columns: 1fr; }
}

/* --- Add to Bag Button Global Pattern --- */
.btn-cart-custom {
    background: #1a1a1a !important;
    color: #fca311 !important;
    border: none !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-cart-custom:hover {
    background: #fca311 !important;
    color: #1a1a1a !important;
}

.btn-cart-custom i {
    color: inherit !important;
}

/* --- Global Responsive Hiding for Wishlist Text Buttons --- */
@media (max-width: 991px) {
    .add-to-cart-overlay {
        display: none !important;
    }
}
