﻿/* =================== GLOBAL STYLES =================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --hero-h: clamp(1000px, 85vh, 1000px);
    --section-space: clamp(60px, 8vh, 120px);
    --header-height: 80px;
}


html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


section {
    padding: var(--section-space) 1rem;
}

h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #222;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}


/* If header is fixed, prevent content from hiding under it */
body {
    /*padding-top: var(--header-height);*/
    margin: 0;
}


/* ===== HERO SECTION ===== */
.hero-section {
    width: 100%;
    height: calc(100vh - var(--header-height));
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdf0cf;
    margin-top: var(--header-height);
    position: relative;
}

/* ===== SWIPER CONTAINER ===== */
.hero-carousel {
    width: 100%;
    height: 100%;
}

.swiper-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ===== HERO IMAGE ===== */
.hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
}

/* ===== LARGE DESKTOPS (≥1400px) ===== */
@media (min-width: 1400px) {
    :root {
        --header-height: 90px;
    }

    .hero-section {
        height: auto;
        margin-top: var(--header-height);
    }
    .hero-img {
        object-fit: contain;
        object-position: center;
    }
}

/* ===== DESKTOPS (1200px - 1399px) ===== */
@media (min-width: 1200px) and (max-width: 1399px) {
    :root {
        --header-height: 80px;
    }

    .hero-section {
        height: auto;
        margin-top: var(--header-height);
    }
    .hero-img {
        object-fit: contain;
        object-position: center;
    }
}

/* ===== LAPTOPS (992px - 1199px) ===== */
@media (min-width: 992px) and (max-width: 1199px) {
    :root {
        --header-height: 75px;
    }

    .hero-section {
        height: auto;
        margin-top: var(--header-height);
    }
    .hero-img {
        object-fit: contain;
        object-position: center;
    }
}

/* ===== TABLETS (768px - 991px) ===== */
@media (max-width: 991px) {
    :root {
        --header-height: 70px;
    }

    .hero-section {
        height: auto;
        margin-top: var(--header-height);
    }

    .hero-img {
        object-fit: contain;
        object-position: center;
    }
}

/* ===== LARGE MOBILES (576px - 767px) ===== */
@media (max-width: 767px) {
    :root {
        --header-height: 65px;
    }

    .hero-section {
        height: auto;
        margin-top: var(--header-height);
    }

    .hero-img {
        object-fit: contain;
        object-position: center;
    }
}

/* ===== SMALL MOBILES (≤575px) ===== */
@media (max-width: 575px) {
    :root {
        --header-height: 60px;
    }

    .hero-section {
        height: auto;
        margin-top: var(--header-height);
    }

    .hero-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }
}

/* ===== VERY SMALL DEVICES (≤400px) ===== */
@media (max-width: 400px) {
    :root {
        --header-height: 55px;
    }

    .hero-section {
        /*height: calc(100vh - var(--header-height));*/
        height: auto;
        margin-top: var(--header-height);
    }

    .hero-img {
        object-fit: contain;
        object-position: center;
    }
}

/* ===== EXTRA SMALL DEVICES (≤360px) ===== */
@media (max-width: 360px) {
    :root {
        --header-height: 50px;
    }

    .hero-section {
        height: auto;
        margin-top: var(--header-height);
    }

    .hero-img {
        object-fit: contain;
        object-position: center;
    }
}

/* ===== LANDSCAPE MODE (Mobile/Tablet) ===== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        height: calc(100vh - var(--header-height));
    }

    .hero-img {
        object-fit: cover;
        object-position: center;
    }
}

/* ===== SHORT SCREENS ===== */
@media (max-height: 500px) {
    .hero-section {
        height: calc(100vh - var(--header-height));
    }

    .hero-img {
        object-fit: cover;
        object-position: center;
    }
}


/* =================================================================== MENU CATEGORIES =============================================================== */

.menu-categories {
    padding: 20px 20px var(--section-space) 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

    .menu-categories .section-title {
        font-size: clamp(30px, 3vw, 28px);
        font-weight: 700;
        margin-bottom: 40px;
        color: #ff6a00;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

/* Base: 1 column (mobile) */
.categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    justify-items: center;
}

/* Medium: 2 columns */
@media (min-width: 640px) {
    .categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large & XL: show all in a row */
@media (min-width: 1024px) {
    .categories {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* Category Cards */
.categories a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    background: #fff;
    border-radius: 16px;
    border: 1px solid darkgoldenrod;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 300px;
    aspect-ratio: 3 / 4; /* keeps card proportions */
}

    .categories a:hover {
        transform: translateY(-10px);
        background: #fff2ce;
    }

/* Images */
.categories img {
    /*width: clamp(200px, 12vw, 120px);*/
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

/*.categories a:hover img {
    transform: scale(1.1);
}*/

/* Labels */
.categories p {
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 600;
    margin: 0;
    color: #444;
}

.categories a:hover p {
    color: goldenrod;
}


/* ================================================================== HOT SELLING ======================================================================== */
/* =================== HOT SELLING SECTION =================== */
.hot-selling-section {
    background: none;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--section-space) 20px;
    border-radius: 10px;
}

    .hot-selling-section h2 {
        margin-bottom: 2rem;
        font-size: clamp(1.5rem, 4vw, 2rem);
        font-weight: 700;
        color: #333;
    }

/* Base: 1 column (mobile) */
.hot-selling-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Medium: 2 columns */
@media (min-width: 640px) {
    .hot-selling-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large & XL: all items in a row */
@media (min-width: 1024px) {
    .hot-selling-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* =================== HOT ITEM =================== */
.hot-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    background-color: #fff;
    padding: 20px 10px;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: zoomPulse 3s ease-in-out infinite;

}

@keyframes zoomPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.hot-item img {
    width: 100%;
    height: 200px;
    margin-top:80px;
    object-fit: cover;
    border-radius: 12px;
}

/* =================== OVERLAYS =================== */
.hot-item .overlay-top {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff;
    color: #333;
    padding: 0.4rem 0.7rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .hot-item .overlay-top .arrow {
        font-size: 1.2rem;
        transition: transform 0.3s ease;
        color: #ffb400;
    }

.hot-item:hover .overlay-top .arrow {
    transform: translateX(4px);
}

.hot-item .overlay-bottom {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #ffb400;
    color: #fff;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
}


/* =================== MENU BANNER =================== */
.outer-banner-div {
    max-width: 1200px; /* keeps it aligned with your site width */
    margin: 3rem auto; /* centers the banner */
    padding: 0 1rem; /* side spacing for small screens */
}

.menu-banner {
    border-radius: 20px;
    overflow: hidden; /* hides image overflow */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .menu-banner a {
        display: block;
        width: 100%;
    }

    .menu-banner img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 20px;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    /* Hover Effect */
    .menu-banner:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    }

        .menu-banner:hover img {
            transform: scale(1.05);
        }

/* =================== RESPONSIVENESS =================== */
@media (max-width: 768px) {
    .outer-banner-div {
        margin: 2rem auto;
    }

    .menu-banner img {
        border-radius: 14px;
    }
    .categories a:hover {
        transform: translateY(-10px);
        background: #fff2ce;
    }
}

@media (max-width: 480px) {
    .outer-banner-div {
        margin: 1.5rem auto;
    }

    .menu-banner img {
        border-radius: 10px;
    }
    .categories a:hover {
        transform: translateY(-10px);
        background: #fff2ce;
    }
}
