/* ===== COVERAGE AGENCIES E-COMMERCE STYLES ===== */
:root {
    /* Havells Royal Red Color Scheme */
    --primary-red: #E4002B;
    --primary-dark: #B30021;
    --primary-light: #FF1A3D;
    --white: #FFFFFF;
    --black: #000000;
    --gray-dark: #333333;
    --gray-medium: #666666;
    --gray-light: #F5F5F5;
    --gray-border: #E0E0E0;
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
    --info: #17A2B8;
    
    /* Brand Colors */
    --havells-red: #E4002B;
    --fybros-blue: #0056B3;
    --nippo-orange: #FF6B00;
    --pedelight-purple: #663399;
    
    --border-radius: 8px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ===== ENHANCED NAVIGATION ===== */
.navbar {
    background: var(--white);
    border-bottom: 2px solid var(--primary-red);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-red);
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo:hover {
    transform: translateY(-1px);
}

.nav-logo img {
    height: 40px;
    width: auto;
    border-radius: 6px;
}

/* Search Bar */
.nav-search {
    flex: 1;
    max-width: 600px;
}

.search-form {
    display: flex;
    background: var(--gray-light);
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
}

.search-form:focus-within {
    border-color: var(--primary-red);
}

.search-form input {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    outline: none;
}

.search-form button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-red);
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--primary-dark);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-red);
    background: rgba(228, 0, 43, 0.1);
}

.cart-link {
    position: relative;
}

.cart-count {
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-hover);
    border-radius: 8px;
    z-index: 1000;
    border: 1px solid var(--gray-border);
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--gray-dark);
    border-bottom: 1px solid var(--gray-border);
    transition: var(--transition);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: var(--primary-red);
    color: var(--white);
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.login-btn, .signup-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    font-size: 0.9rem;
}

.login-btn {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.signup-btn {
    background: var(--primary-red);
    color: var(--white);
}

.login-btn:hover,
.login-btn:focus {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
}

.signup-btn:hover,
.signup-btn:focus {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 8rem 1rem 4rem;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.cta-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 6px;
    transition: var(--transition);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border: 2px solid transparent;
    text-align: center;
}

.cta-btn.primary {
    background: var(--white);
    color: var(--primary-red);
}

.cta-btn.secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.cta-btn:hover,
.cta-btn:focus {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.cta-btn.primary:hover,
.cta-btn.primary:focus {
    background: var(--gray-light);
}

.cta-btn.secondary:hover,
.cta-btn.secondary:focus {
    background: var(--white);
    color: var(--primary-red);
}

/* Brands Showcase */
.brands-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.brand-logo {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.brand-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* ===== BRANDS SECTION ===== */
.brands-section {
    padding: 4rem 1rem;
    background: var(--gray-light);
}

.brands-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--gray-dark);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.brand-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--brand-color, var(--primary-red));
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.brand-card .brand-logo {
    margin-bottom: 1rem;
}

.brand-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--brand-color, var(--primary-red));
}

.brand-card p {
    color: var(--gray-medium);
    margin-bottom: 1rem;
}

.shop-now {
    color: var(--brand-color, var(--primary-red));
    font-weight: 600;
}

/* ===== PRODUCTS GRID ===== */
.featured-products, .deals-section {
    padding: 4rem 1rem;
}

.featured-products h2, .deals-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--gray-dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-border);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-red);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
}

.wishlist-btn, .quick-view-btn {
    background: var(--white);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.wishlist-btn:hover, .quick-view-btn:hover {
    background: var(--primary-red);
    color: var(--white);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--gray-dark);
}

.product-brand {
    color: var(--gray-medium);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.original-price {
    color: var(--gray-medium);
    text-decoration: line-through;
    font-size: 0.9rem;
}

.current-price {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 1.2rem;
}

.product-rating {
    color: var(--warning);
    font-size: 0.9rem;
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
}

/* Deal Cards */
.deal-card {
    border: 2px solid var(--primary-red);
}

.deal-timer {
    background: var(--warning);
    color: var(--gray-dark);
    padding: 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
    border-radius: 4px;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 4rem 1rem;
    background: var(--gray-light);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--gray-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

.feature-card p {
    color: var(--gray-medium);
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-dark);
    color: var(--white);
    padding: 3rem 1rem 1rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section a {
    color: #CCCCCC;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.5rem;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-medium);
    text-align: center;
    color: #CCCCCC;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav-search {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
    }
    
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-hover);
        gap: 0.5rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .login-btn,
    .signup-btn {
        width: 100%;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 1rem 2rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .cta-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .brands-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    background: none;
    border: none;
    padding: 0.5rem;
    transition: var(--transition);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--gray-dark);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger:hover span {
    background: var(--primary-red);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== FLASH MESSAGES ===== */
.flash-message {
    position: fixed;
    top: 100px;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    z-index: 1001;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
    box-shadow: var(--shadow-hover);
}

.flash-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== EMPTY STATES ===== */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    grid-column: 1 / -1;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: var(--gray-medium);
}

/* ===== BUTTON STYLES ===== */
.btn-primary {
    background: var(--primary-red);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--gray-light);
    color: var(--gray-dark);
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--gray-border);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--gray-border);
    transform: translateY(-2px);
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}