﻿/* =================== 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: 2 columns (mobile) */
.categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px; /* Reduced gap for mobile */
    justify-items: center;
}

/* Medium: 2 columns */
@media (min-width: 640px) {
    .categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px; /* Normal gap */
    }
}

/* 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: 12px; /* Reduced padding for mobile */
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 100%; /* Allow card to be flexible on mobile */
    aspect-ratio: 3 / 4;
}

/* Increase padding on larger screens */
@media (min-width: 640px) {
    .categories a {
        padding: 20px;
        max-width: 250px;
    }
}

.categories a:hover {
    transform: translateY(-10px);
    background: #fff2ce;
}

/* Images */
.categories img {
    width: 100%;
    height: 120px; /* Smaller height for mobile */
    object-fit: cover;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

/* Increase image size on larger screens */
@media (min-width: 640px) {
    .categories img {
        height: 180px;
        margin-bottom: 12px;
    }
}

@media (min-width: 1024px) {
    .categories img {
        height: 200px;
    }
}

/* Labels */
.categories p {
    font-size: clamp(12px, 2vw, 18px); /* Smaller starting size */
    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: 100%;
    margin: 1rem 2rem;
    padding: 0;
}

.menu-banner {
    border-radius: 20px;
    overflow: hidden; 
    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;

    }
   
    .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: 1rem 2rem;
        padding: 0;
        border-radius: 20px;
    }

    .menu-banner {
        border-radius: 0; /* Remove border radius for full width */
    }

        .menu-banner img {
            border-radius: 0; /* Remove border radius for full width */
        }

    .categories a:hover {
        transform: translateY(-10px);
        background: #fff2ce;
    }
}

@media (max-width: 480px) {
    .outer-banner-div {
        margin: 1.5rem 0.5rem;
        padding: 0;
        border-radius: 20px;
    }

    .menu-banner {
        border-radius: 0; /* Remove border radius for full width */
    }

        .menu-banner img {
            border-radius: 0; /* Remove border radius for full width */
        }

    .categories a:hover {
        transform: translateY(-10px);
        background: #fff2ce;
    }
}


/* =================== NEWSLETTER SECTION =================== */
.newsletter-section {
    background-color: #111; /* Dark background for contrast */
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    margin:1rem 2rem;
    border-radius:20px;
}

    .newsletter-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('/images/texture-bg.png') center/cover no-repeat;
        opacity: 0.05;
    }

.newsletter-container {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-logo {
    width: 90px;
    margin-bottom: 15px;
}

.newsletter-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #f8b400; /* Wrapology yellow */
    margin-bottom: 10px;
}

.newsletter-section p {
    color: #ccc;
    margin-bottom: 25px;
    font-size: 1rem;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .newsletter-form input {
        padding: 12px 18px;
        border: none;
        border-radius: 6px;
        width: 65%;
        max-width: 350px;
        font-size: 1rem;
        outline: none;
    }

.newsletter-btn {
    background: #f8b400;
    color: #111;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

    .newsletter-btn:hover {
        background: #ffcc00;
    }

.newsletter-message {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #f8b400;
    font-weight: 500;
}


/* =================== WHY CHOOSE WRAPOLOGY SECTION =================== */
.why-choose {
    background-color: #a10000; /* Wrapology dark background */
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    margin: 4rem 2rem;
    
}

    .why-choose::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('/images/texture-bg.png') center/cover no-repeat;
        opacity: 0.05;
    }

    .why-choose h2 {
        font-size: 2.2rem;
        font-weight: 700;
        color: #f8b400; /* Wrapology yellow */
        margin-bottom: 50px;
        text-transform: uppercase;
        letter-spacing: 1px;
        position: relative;
        z-index: 2;
    }

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.why-card {
    background-color: #1a1a1a;
    border-radius: 16px;
    padding: 40px 25px;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 rgba(0,0,0,0);
    border: 1px solid transparent;
}

    .why-card:hover {
        transform: translateY(-8px);
        border-color: #f8b400;
        box-shadow: 0 10px 20px rgba(248, 180, 0, 0.15);
    }

    .why-card img {
        width: 70px;
        height: 70px;
        object-fit: contain;
        margin-bottom: 20px;
        transition: transform 0.3s ease;
    }

    .why-card:hover img {
        transform: scale(1.1);
    }

    .why-card h3 {
        font-size: 1.3rem;
        font-weight: 600;
        color: #f8b400;
        margin-bottom: 12px;
    }

    .why-card p {
        color: #ccc;
        font-size: 0.95rem;
        line-height: 1.6;
    }

.why-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

    .why-card:nth-child(1) {
        animation-delay: 0.2s;
    }

    .why-card:nth-child(2) {
        animation-delay: 0.4s;
    }

    .why-card:nth-child(3) {
        animation-delay: 0.6s;
    }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================== RESPONSIVENESS =================== */
@media (max-width: 992px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .why-choose {
        padding: 60px 15px;
    }

        .why-choose h2 {
            font-size: 1.8rem;
        }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .why-card {
        padding: 30px 20px;
    }

        .why-card img {
            width: 60px;
            height: 60px;
        }

        .why-card h3 {
            font-size: 1.1rem;
        }

        .why-card p {
            font-size: 0.9rem;
        }
}