/* Yashwant Masala - Complete Stylesheet */
/* Brand Colors: Red #8B0000, #C41E3A | Yellow #FFD700, #FFC107 */

:root {
    --primary-red: #8B0000;
    --primary-red-light: #C41E3A;
    --primary-yellow: #FFD700;
    --primary-yellow-dark: #FFC107;
    --dark-maroon: #2D0A0A;
    --white: #FFFFFF;
    --light-bg: #FFF8E7;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #E0E0E0;
    --success: #28a745;
    --error: #dc3545;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--dark-maroon);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar a {
    color: var(--primary-yellow);
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--white);
}

.top-bar i {
    margin-right: 5px;
}

/* ===== MAIN HEADER ===== */
header.main-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 70px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.03);
}

/* ===== NAVIGATION ===== */
.main-nav > ul {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav > ul > li > a {
    color: var(--white);
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    white-space: nowrap;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
    background: var(--primary-yellow);
    color: var(--primary-red);
}

/* ===== DROPDOWN MENU - FIXED ===== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 10px 0;
    z-index: 1000;
    margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* IMPORTANT: Force vertical list */
.dropdown-menu li {
    list-style: none;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s;
    white-space: nowrap;
    border-radius: 0;
    background: transparent;
}

.dropdown-menu li a:hover {
    background: var(--primary-red);
    color: var(--white);
}

/* Dropdown Arrow */
.dropdown > a i.fa-chevron-down {
    font-size: 11px;
    margin-left: 5px;
    transition: transform 0.3s;
}

.dropdown:hover > a i.fa-chevron-down {
    transform: rotate(180deg);
}

/* ===== HEADER ACTIONS ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s;
}

.search-btn:hover {
    color: var(--primary-yellow);
}

.cart-icon {
    position: relative;
    color: var(--white);
    font-size: 22px;
    padding: 8px;
    transition: color 0.3s;
}

.cart-icon:hover {
    color: var(--primary-yellow);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-yellow);
    color: var(--primary-red);
    font-size: 11px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn,
.user-btn {
    color: var(--white);
    padding: 10px 20px;
    border: 2px solid var(--primary-yellow);
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.login-btn:hover,
.user-btn:hover {
    background: var(--primary-yellow);
    color: var(--primary-red);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* ===== SEARCH MODAL ===== */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    position: relative;
}

.search-modal-content form {
    display: flex;
    background: var(--white);
    border-radius: 50px;
    overflow: hidden;
}

.search-modal-content input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    font-size: 18px;
    outline: none;
}

.search-modal-content button[type="submit"] {
    padding: 18px 30px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.search-modal-content button[type="submit"]:hover {
    background: var(--dark-maroon);
}

.close-search {
    position: absolute;
    top: -50px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
}

/* ===== FLASH MESSAGES ===== */
.flash-message {
    padding: 15px 0;
    position: relative;
    z-index: 998;
}

.flash-message .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flash-message p {
    margin: 0;
}

.flash-success {
    background: #d4edda;
    color: #155724;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
}

.close-flash {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.5;
    color: inherit;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(rgba(139, 0, 0, 0.9), rgba(139, 0, 0, 0.9)),
                url('../images/hero-bg.jpg') center/cover;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    font-size: 52px;
    margin-bottom: 10px;
    color: var(--primary-yellow);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
}

.hero .tagline {
    font-size: 22px;
    margin-bottom: 25px;
    font-style: italic;
    opacity: 0.95;
}

.hero p {
    font-size: 17px;
    max-width: 650px;
    margin: 0 auto 35px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 14px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-yellow);
    color: var(--primary-red);
}

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary-yellow);
}

.btn-secondary:hover {
    background: var(--primary-yellow);
    color: var(--primary-red);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

/* ===== USP BANNER ===== */
.usp-banner {
    background: var(--primary-yellow);
    padding: 18px 0;
}

.usp-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.usp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 14px;
}

.usp-item i {
    font-size: 22px;
}

/* ===== SECTIONS ===== */
.section {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-red);
    margin-bottom: 8px;
}

.section-title .marathi {
    font-size: 18px;
    color: var(--primary-red-light);
}

.section-title p {
    color: var(--text-light);
    margin-top: 10px;
    font-size: 16px;
}

/* ===== CATEGORY GRID ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    color: var(--white);
    padding: 35px 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(139, 0, 0, 0.4);
}

.category-card i {
    font-size: 45px;
    color: var(--primary-yellow);
    margin-bottom: 15px;
    display: block;
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.category-card .marathi {
    font-size: 13px;
    opacity: 0.9;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-red);
    color: var(--white);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-badge.sale {
    background: var(--primary-yellow);
    color: var(--primary-red);
}

.product-info {
    padding: 20px;
}

.product-info .category {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-info h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin: 8px 0 5px;
}

.product-info h3 a {
    color: inherit;
    text-decoration: none;
}

.product-info h3 a:hover {
    color: var(--primary-red);
}

.product-info .marathi-name {
    font-size: 14px;
    color: var(--primary-red-light);
    margin-bottom: 12px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.product-price .current {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-red);
}

.product-price .original {
    font-size: 15px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-weight {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.product-weight i {
    margin-right: 5px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
    padding: 12px 15px;
    font-size: 13px;
    text-transform: none;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.product-actions .btn-secondary:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

/* Add Button - Filled Style */
.product-actions .btn-primary {
    background: var(--primary-yellow);
    color: var(--primary-red);
    border: 2px solid var(--primary-yellow);
}

.product-actions .btn-primary:hover {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

/* View Button - Outlined Style */
.product-actions .btn-secondary {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

/* ===== FEATURES ===== */
.features {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 35px 25px;
    border-radius: 15px;
    transition: all 0.3s;
}

.feature-card:hover {
    background: #f8f9fa;
}

.feature-card i {
    font-size: 50px;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    color: var(--white);
}

.testimonial-card {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-card .stars {
    margin-bottom: 15px;
}

.testimonial-card .stars i {
    color: var(--primary-yellow);
    font-size: 18px;
}

.testimonial-card p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-card .customer strong {
    display: block;
    color: var(--primary-yellow);
}

.testimonial-card .customer span {
    font-size: 14px;
    opacity: 0.8;
}

/* ===== NEWSLETTER ===== */
.newsletter {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-maroon) 100%);
    color: var(--white);
}

.newsletter-content {
    text-align: center;
    max-width: 550px;
    margin: 0 auto;
}

.newsletter-content h2 {
    color: var(--primary-yellow);
    margin-bottom: 10px;
    font-size: 28px;
}

.newsletter-content p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
}

.newsletter-form .btn {
    white-space: nowrap;
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark-maroon);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--primary-yellow);
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-col p {
    margin-bottom: 12px;
    line-height: 1.8;
    font-size: 14px;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: var(--primary-yellow);
}

.footer-col i {
    color: var(--primary-yellow);
}

.footer-col .fssai {
    background: var(--white);
    color: var(--text-dark);
    padding: 12px 18px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    font-size: 13px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s;
}

/* Hover Effect - White Background */
.footer-col .social-links a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: var(--white) !important;
}

.footer-col .social-links a.facebook:hover,
.footer-col .social-links a:nth-child(1):hover {
    color: #1877F2 !important;
}

.footer-col .social-links a.instagram:hover,
.footer-col .social-links a:nth-child(2):hover {
    color: #E1306C !important;
}

.footer-col .social-links a.whatsapp:hover,
.footer-col .social-links a:nth-child(3):hover {
    color: #25D366 !important;
}

.footer-col .social-links a.youtube:hover,
.footer-col .social-links a:nth-child(4):hover {
    color: #FF0000 !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 5px 25px rgba(37,211,102,0.4);
    z-index: 999;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}

/* ===== TEXT UTILITIES ===== */
.text-center {
    text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-red);
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav > ul {
        flex-direction: column;
        gap: 5px;
    }
    
    .main-nav > ul > li > a {
        display: block;
        padding: 12px 20px;
        border-radius: 8px;
    }
    
    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(0,0,0,0.2);
        margin-top: 5px;
        border-radius: 8px;
        min-width: 100%;
    }
    
    .dropdown-menu li a {
        color: var(--white);
        padding: 10px 25px;
    }
    
    .dropdown-menu li a:hover {
        background: rgba(255,255,255,0.1);
        color: var(--primary-yellow);
    }
    
    .mobile-menu-btn {
        display: block;
        order: 5;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .logo-img {
        height: 60px;
        max-width: 160px;
    }
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 36px;
    }
    
    .hero .tagline {
        font-size: 18px;
    }
    
    .hero p {
        font-size: 15px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .logo-img {
        height: 55px;
        max-width: 150px;
    }
    
    .login-btn,
    .user-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .usp-grid {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 36px;
    }
    
    .hero .tagline {
        font-size: 18px;
    }
    
    .hero p {
        font-size: 15px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .logo-img {
        height: 55px;
        max-width: 150px;
    }
    
    .login-btn,
    .user-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .usp-grid {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .top-bar .container {
        justify-content: center;
        text-align: center;
    }
    
    .top-bar .top-right {
        display: none;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Mobile Header Layout - Logo and Menu Button on same line */
    .header-content {
        flex-wrap: wrap;
        position: relative;
    }
    
    .logo {
        order: 1;
    }
    
    .mobile-menu-btn {
        order: 2;
        margin-left: auto;
    }
    
    .header-actions {
        order: 3;
        width: 100%;
        justify-content: center;
        padding-top: 10px;
        margin-top: 10px;
        border-top: 1px solid rgba(255,255,255,0.15);
        gap: 15px;
    }
    
    .main-nav {
        order: 4;
        width: 100%;
    }
    
    .login-btn span,
    .user-btn span {
        display: none;
    }
    
    .logo-img {
        height: 50px;
        max-width: 130px;
    }
}

@media (max-width: 400px) {
    .logo-img {
        height: 45px;
        max-width: 120px;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .search-btn,
    .cart-icon {
        font-size: 18px;
        padding: 6px;
    }
    
    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    
    .login-btn,
    .user-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .mobile-menu-btn {
        font-size: 22px;
        padding: 6px;
    }
}