﻿/* =========================
       HERO
    ==========================*/
.hero-modern {
    background: linear-gradient(135deg,#111,#1f1f1f,#2d2d2d);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

    .hero-modern::before {
        content: "";
        position: absolute;
        top: -100px;
        right: -100px;
        width: 300px;
        height: 300px;
        background: rgba(255,255,255,0.05);
        border-radius: 50%;
    }

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
}

.hero-subtitle {
    color: #dcdcdc;
    font-size: 1.1rem;
}

.hero-btn {
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    transition: 0.3s;
}

    .hero-btn:hover {
        transform: translateY(-3px);
    }

.hero-img {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
    transition: 0.4s;
}

    .hero-img:hover {
        transform: scale(1.03);
    }

/* =========================
       SEARCH BAR
    ==========================*/
.search-card {
    border-radius: 16px;
    border: none;
}

.search-input {
    border-radius: 12px 0 0 12px !important;
    height: 55px;
    border: 1px solid #ddd;
}

.search-btn {
    border-radius: 0 12px 12px 0 !important;
    font-weight: 600;
}

/* =========================
       CATEGORY CARDS
    ==========================*/
.category-card {
    border: none;
    border-radius: 16px;
    transition: 0.3s;
    cursor: pointer;
    background: #fff;
}

    .category-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    }

.category-icon {
    font-size: 2rem;
}

/* =========================
       PRODUCT CARDS
    ==========================*/
.product-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
    height: 100%;
}

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 25px rgba(0,0,0,0.12);
    }

.product-img {
    height: 220px;
    object-fit: cover;
    transition: 0.3s;
}

    .product-img:hover {
        transform: scale(1.05);
    }

.product-title {
    font-size: 15px;
    font-weight: 600;
    min-height: 45px;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.add-cart-btn {
    border-radius: 10px;
    font-weight: 600;
}

/* =========================
       BADGES
    ==========================*/
.promo-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    background: #ff3b30;
    color: white;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* =========================
       SECTION TITLES
    ==========================*/
.section-title {
    font-weight: 800;
    font-size: 1.7rem;
    margin-bottom: 20px;
}

/* =========================
       DELIVERY BANNER
    ==========================*/
.delivery-banner {
    background: linear-gradient(90deg,#ff6a00,#ff3b30);
    border-radius: 16px;
    font-size: 1.3rem;
    font-weight: 700;
}

/* =========================
       TRUST BADGES
    ==========================*/
.trust-box {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    transition: 0.3s;
}

    .trust-box:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }
/* HERO */
#heroCarousel {
    max-height: 300px;
    max-width: 800px;
    margin: 0 auto 40px;
    overflow: hidden;
    border-radius: 16px;
}

    #heroCarousel .carousel-inner {
        height: 300px;
    }

    #heroCarousel .carousel-item {
        height: 300px;
    }

.hero-card {
    height: 300px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.hero-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    padding: 10px;
}

@media (max-width:768px) {

    #heroCarousel,
    #heroCarousel .carousel-inner,
    #heroCarousel .carousel-item,
    .hero-card {
        height: 220px !important;
    }
}



.promo-hero-offer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    background: linear-gradient(135deg, #ff512f, #dd2476);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .4px;
    border-radius: 35px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
    /* Animation */
    animation: promoOfferAnimation 2s ease-in-out infinite;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .promo-hero-offer:hover {
        color: #fff;
        text-decoration: none;
        transform: scale(1.08);
        box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
    }

.promo-fire {
    font-size: 1.35rem;
    /* Fire also moves slightly */
    animation: fireBounce 1.2s ease-in-out infinite;
}

.promo-arrow {
    font-size: 1.2rem;
}


/* Main floating animation */
@keyframes promoOfferAnimation {

    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-7px) scale(1.04);
    }
}


/* Fire animation */
@keyframes fireBounce {

    0%, 100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.18) rotate(-5deg);
    }
}

@media (max-width: 576px) {

    .promo-hero-offer {
        font-size: .9rem;
        padding: 9px 17px;
        gap: 7px;
    }

    .promo-fire {
        font-size: 1.1rem;
    }

    .promo-arrow {
        font-size: 1rem;
    }
}