/* FoodMart-style homepage — Devajami Vantasala brand */
.foodmart-home {
    --fm-accent: #E8A317;
    --fm-accent-hover: #C9A227;
    --fm-maroon: #6B1D1D;
    --fm-green: #1B4332;
    --fm-green-light: #EEF5E4;
    --fm-dark: #222222;
    --fm-grey: #747474;
    --fm-light: #fafafa;
    --fm-cream: #FFF9EB;
    --bs-primary: #E8A317;
    --bs-primary-rgb: 232, 163, 23;
    font-family: 'Open Sans', sans-serif;
    color: var(--fm-grey);
    background: #fff;
    letter-spacing: 0.03em;
}

.foodmart-home h1, .foodmart-home h2, .foodmart-home h3,
.foodmart-home h4, .foodmart-home h5, .foodmart-home .fm-logo-text {
    font-family: 'Nunito', sans-serif;
    color: var(--fm-dark);
}

.foodmart-home .btn-primary {
    --bs-btn-bg: var(--fm-accent);
    --bs-btn-border-color: var(--fm-accent);
    --bs-btn-hover-bg: var(--fm-accent-hover);
    --bs-btn-hover-border-color: var(--fm-accent-hover);
    color: var(--fm-dark);
    font-weight: 600;
}

/* Top bar */
.fm-topbar { background: var(--fm-light); border-bottom: 1px solid #efefef; }
.fm-topbar-links a { color: var(--fm-grey); text-decoration: none; }
.fm-topbar-links a:hover { color: var(--fm-maroon); }

/* Header */
.fm-header { box-shadow: 0 2px 12px rgba(0,0,0,0.06); z-index: 1020; }
.fm-logo-text { font-weight: 800; font-size: 1.15rem; color: var(--fm-maroon); }
.fm-search .form-control, .fm-search .form-select { border-color: #efefef; }
.fm-search .form-control:focus { box-shadow: none; border-color: var(--fm-accent); }
.fm-icon-btn {
    width: 44px; height: 44px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #efefef !important; color: var(--fm-dark) !important;
}
.fm-cart-count {
    position: absolute; top: 2px; right: 2px;
    background: var(--fm-maroon); color: #fff;
    font-size: 0.65rem; width: 18px; height: 18px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.fm-nav-list .nav-link { color: var(--fm-dark); font-weight: 600; padding: 0.5rem 1rem; }
.fm-nav-list .nav-link:hover, .fm-nav-list .nav-link.active { color: var(--fm-maroon); }
.fm-mobile-nav li { border-bottom: 1px solid #eee; }
.fm-mobile-nav a { display: block; padding: 12px 0; color: var(--fm-dark); text-decoration: none; font-weight: 600; }

/* Banner grid (FoodMart billboard) */
.banner-blocks {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
}
.block-1 { grid-area: 1 / 1 / 3 / 8; }
.block-2 { grid-area: 1 / 8 / 2 / 13; }
.block-3 { grid-area: 2 / 8 / 3 / 13; }

@media (max-width: 1140px) {
    .banner-blocks {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .block-1 { grid-area: auto; }
}

.banner-ad {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 100%;
    min-height: 280px;
}
.banner-ad.block-1 { min-height: 720px; }
.banner-ad.cream { background: var(--fm-cream); }
.banner-ad.green-bg { background: var(--fm-green-light); }
.banner-ad.maroon-bg { background: linear-gradient(135deg, #f8e8e8, #fff5e6); }
.banner-ad .swiper,
.banner-ad .swiper-wrapper,
.banner-ad .swiper-slide {
    height: 100%;
}

.banner-ad .swiper-slide {
    min-height: inherit;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}
.banner-content { padding: 2.5rem 3rem; position: relative; z-index: 2; }
.banner-content .categories {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--fm-maroon);
    margin-bottom: 0.5rem;
}
.banner-content .banner-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.banner-content p { max-width: 320px; margin-bottom: 1.5rem; }
.banner-img-wrap {
    flex: 1;
    height: 100%;
    min-height: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}
.banner-img-wrap img {
     width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    display: block;
}
.block-1 .banner-img-wrap img { max-height: none; }

.banner-ad .swiper-pagination-bullet {
    width: 12px; height: 12px;
    background: #fff; opacity: 1;
}
.banner-ad .swiper-pagination-bullet-active { background: var(--fm-accent); }

/* Small promo banners */
.promo-mini {
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.promo-mini .discount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--fm-maroon);
    line-height: 1;
}
.promo-mini h3 { font-size: 1.35rem; font-weight: 700; }
.promo-mini img {
    position: absolute;
    right: 0; bottom: 0;
    max-height: 140px;
    opacity: 0.9;
}

/* Section headers */
.fm-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.fm-section-head h2 { font-size: 1.75rem; font-weight: 800; margin: 0; }
.fm-section-head .btn-link {
    color: var(--fm-grey);
    text-decoration: none;
    font-weight: 600;
}
.fm-section-head .btn-link:hover { color: var(--fm-maroon); }
.swiper-nav-btns { display: flex; gap: 0.5rem; }

.swiper-prev, .swiper-next {
    width: 38px; height: 38px;
    border: none; border-radius: 10px;
    background: #f1f1f1; color: #222;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.swiper-prev:hover, .swiper-next:hover { background: var(--fm-accent); }

/* Category carousel */
.category-carousel .category-item {
    background: #fff;
    border: 1px solid #fbfbfb;
    box-shadow: 0 5px 22px rgba(0,0,0,0.04);
    border-radius: 16px;
    text-align: center;
    padding: 2.5rem 1.25rem;
    margin: 10px 0;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: block;
    color: inherit;
}
.category-carousel .category-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 21px 44px rgba(0,0,0,0.08);
    color: inherit;
}
.category-carousel .cat-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1rem;
}
.category-carousel .category-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--fm-dark);
}

/* Product item (FoodMart card) */
.product-item {
    position: relative;
    padding: 16px;
    background: #fff;
    border: 1px solid #fbfbfb;
    box-shadow: 0 5px 22px rgba(0,0,0,0.04);
    border-radius: 16px;
    height: 100%;
    transition: box-shadow 0.3s;
}
.product-item:hover { box-shadow: 0 21px 44px rgba(0,0,0,0.08); }
.product-item figure {
    background: #f9f9f9;
    border-radius: 12px;
    text-align: center;
    padding: 1rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-item figure img {
    max-height: 180px;
    width: auto;
    object-fit: contain;
}
.product-item .price { font-size: 1.25rem; font-weight: 700; color: var(--fm-dark); }

/* Product tabs */
.product-tabs .nav-tabs { border: none; gap: 0.5rem; }
.product-tabs .nav-link {
    border: none;
    color: var(--fm-grey);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}
.product-tabs .nav-link.active {
    color: var(--fm-dark);
    background: var(--fm-cream);
    border-bottom: 3px solid var(--fm-accent) !important;
}

/* Dual promo row */
.promo-duo .promo-card {
    border-radius: 16px;
    padding: 2.5rem;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}
.promo-duo .promo-card.chocolate { background: linear-gradient(135deg, #3d1515, #6B1D1D); color: #fff; }
.promo-duo .promo-card.muffin { background: linear-gradient(135deg, #fff9eb, #f5e6c8); }
.promo-duo h3 { font-size: 1.75rem; font-weight: 800; }
.promo-duo .upto { color: var(--fm-accent); font-weight: 700; }
.promo-duo .text-maroon { color: var(--fm-maroon) !important; }

/* Newsletter */
.fm-newsletter {
    background: var(--fm-cream);
    border-radius: 20px;
    padding: 3rem;
}
.fm-newsletter h2 { font-size: 2rem; font-weight: 800; }

/* Features row */
.fm-features .feature-box {
    text-align: center;
    padding: 1.5rem;
}
.fm-features .feature-icon {
    width: 64px; height: 64px;
    background: var(--fm-cream);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--fm-maroon);
    margin-bottom: 1rem;
}
.fm-features h6 { font-weight: 700; }

/* Footer — Devajami brand colors (green, maroon, gold, cream) */
.foodmart-home .fm-footer.site-footer {
    background: var(--green, #1B4332);
    color: var(--cream, #FFF8E7);
    margin-top: 3rem;
}
.foodmart-home .fm-footer .footer-top {
    background: var(--green, #1B4332);
}
.foodmart-home .fm-footer .footer-title {
    color: var(--gold-light, #E8C547);
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Nunito', sans-serif;
}
.foodmart-home .fm-footer .text-cream-muted {
    color: rgba(255, 248, 231, 0.75);
}
.foodmart-home .fm-footer .text-gold {
    color: var(--gold, #C9A227) !important;
}
.foodmart-home .fm-footer .footer-links a {
    color: rgba(255, 248, 231, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
}
.foodmart-home .fm-footer .footer-links a:hover {
    color: var(--gold-light, #E8C547);
}
.foodmart-home .fm-footer .footer-links li {
    margin-bottom: 0.5rem;
}
.foodmart-home .fm-footer .footer-bottom {
    background: var(--maroon-dark, #4A1212);
    color: rgba(255, 248, 231, 0.65);
    border-top: 1px solid rgba(201, 162, 39, 0.25);
}
.foodmart-home .fm-footer p,
.foodmart-home .fm-footer small {
    color: rgba(255, 248, 231, 0.85);
}
.foodmart-home .fm-footer .btn-gold {
    background: linear-gradient(135deg, var(--gold, #C9A227), var(--turmeric, #E8A317));
    border: none;
    color: var(--maroon-dark, #4A1212);
    font-weight: 600;
}
.foodmart-home .fm-footer .btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light, #E8C547), var(--gold, #C9A227));
    color: var(--maroon-dark, #4A1212);
}

.foodmart-home .whatsapp-float { z-index: 1050; }

@media (max-width: 768px) {
    .banner-content { padding: 1.5rem; }
    .banner-ad.block-1 { min-height: 700px; }
    .fm-newsletter { padding: 2rem 1.5rem; }
}
