﻿:root {
    --mm-red: #e62e00;
    --mm-orange: #ff6b00;
    --mm-green: #15803d;
    --mm-green-light: #22c55e;
    --mm-dark: #141c18;
    --mm-bg: #f6f8f7;
}

body {
    background-color: var(--mm-bg);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

/* Top Announcement Bar - Logo Red Strip */
.top-strip {
    background: linear-gradient(90deg, var(--mm-red) 0%, #c81e00 100%);
    color: #fff;
    font-size: 12.5px;
    font-weight: 500;
    padding: 6px 0;
}

/* Main White Header */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.header-logo-img {
    max-height: 76px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

@media (max-width: 767px) {
    .header-logo-img {
        max-height: 58px;
    }
}

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

/* Search Box - Orange & Green Accent */
.search-box-group .form-control {
    border-radius: 25px 0 0 25px;
    border: 2px solid var(--mm-orange);
    padding-left: 18px;
    box-shadow: none;
}

    .search-box-group .form-control:focus {
        border-color: var(--mm-green);
    }

.search-box-group .btn-search {
    background: linear-gradient(135deg, var(--mm-red) 0%, var(--mm-orange) 100%);
    color: #fff;
    border-radius: 0 25px 25px 0;
    padding: 0 24px;
    border: none;
    font-weight: 700;
}

    .search-box-group .btn-search:hover {
        background: linear-gradient(135deg, #c81e00 0%, #e05a00 100%);
        color: #fff;
    }

/* Header Action Icons */
.header-icon-btn {
    position: relative;
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

    .header-icon-btn i {
        color: var(--mm-green);
    }

    .header-icon-btn:hover {
        background-color: #f0fdf4;
        color: var(--mm-red);
    }

.badge-count {
    position: absolute;
    top: 0px;
    right: 2px;
    background-color: var(--mm-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50px;
}

/* Category Navbar - Fresh Brand Green */
.category-nav {
    background: linear-gradient(90deg, #0f5c2e 0%, var(--mm-green) 100%);
    padding: 0;
}

    .category-nav .nav-link {
        color: #ffffff !important;
        font-size: 13.5px;
        font-weight: 500;
        padding: 10px 14px !important;
        white-space: nowrap;
        transition: background 0.2s;
    }

        .category-nav .nav-link:hover {
            background-color: rgba(255, 255, 255, 0.15);
            color: #fde047 !important;
        }

/* Product Card Styling */
.product-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 22px rgba(21, 128, 61, 0.12);
        border-color: var(--mm-green-light);
    }

.product-img-wrap {
    position: relative;
    width: 100%;
    height: 210px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
}

    .product-img-wrap img {
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

.product-card:hover .product-img-wrap img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, var(--mm-red), var(--mm-orange));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    min-height: 40px;
}

    .product-title:hover {
        color: var(--mm-red);
    }

.price-current {
    font-size: 18px;
    font-weight: 800;
    color: var(--mm-green);
}

.price-mrp {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
}

/* Custom Brand Buttons for Product Cards */
.btn-mm-cart {
    background: linear-gradient(135deg, var(--mm-green) 0%, #16a34a 100%);
    color: #fff !important;
    border: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

    .btn-mm-cart:hover {
        opacity: 0.92;
    }

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #0b3b1e 0%, #14532d 65%, #166534 100%);
    color: #e5e7eb;
    font-size: 14px;
    margin-top: 50px;
    border-top: 5px solid var(--mm-orange);
}

.footer-logo-box {
    display: inline-block;
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-logo-img {
    max-height: 62px;
    width: auto;
    object-fit: contain;
}

.site-footer h6 {
    color: #fde047;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.3px;
}

.site-footer a {
    color: #f3f4f6;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.2s, padding-left 0.2s;
}

    .site-footer a:hover {
        color: #ffb703;
        padding-left: 4px;
    }

/* Product Card Floating Wishlist Heart Button */
/* Product Card Floating Wishlist Heart Icon (Top-Right, No Box, Larger, Red Active) */
.product-img-wrap,
.pd-main-img-box {
    position: relative !important;
}

.btn-wishlist-heart {
    position: absolute !important;
    top: 10px !important;
    right: 12px !important;
    left: auto !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    color: #9ca3af;
    font-size: 22px !important;
    line-height: 1 !important;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease, color 0.2s ease;
}

    .btn-wishlist-heart:hover {
        transform: scale(1.18);
        color: #ef4444 !important;
    }

    .btn-wishlist-heart.active,
    .btn-wishlist-heart.active i {
        color: #ef4444 !important;
    }