@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #fff;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
.container { width: 90%; max-width: 1200px; margin: auto; }
.section-padding { padding: 40px 0; }

/* Promo Banner */
.promo-banner {
    background-color: #eaf6ea; /* Light green */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    font-size: 13px;
    text-align: center;
    color: #2e7d32;
}
.promo-item { padding: 0 30px; }
.promo-banner .divider { width: 1px; height: 35px; background-color: #ccc; }

/* Header */
header {
    background: #fff;
    padding: 20px 0;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header h1 { margin: 0; font-size: 24px; color: #2a201a; font-weight: 700; }
header nav ul li { display: inline-block; margin-left: 25px; }
header nav ul li a { font-weight: 600; font-size: 15px; color: #444; }
header nav ul li a:hover, header nav ul li a.active { color: #f26b3a; }

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 450px;
    background-color: #f4f4f4;
    overflow: hidden;
}
.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.slide.active {
    opacity: 1;
    z-index: 1;
}
.slider-arrow, .slider-dots {
    z-index: 10;
}
.slide-content {
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
}
.slide-content h2 { border: none; font-size: 38px; margin-bottom: 10px; color: #222; }
.btn {
    display: inline-block;
    color: #fff;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 20px;
    border: none;
    cursor: pointer;
}
.btn-orange { background: #f26b3a; }
.btn-orange:hover { background: #d95a2d; }

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #ddd;
    width: 45px; height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.slider-arrow.prev { left: 30px; }
.slider-arrow.next { right: 30px; }
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}
.dot {
    display: inline-block; width: 10px; height: 10px;
    background: #ccc; border-radius: 50%; margin: 0 5px;
}
.dot.active { background: #555; }

/* Headings */
.section-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: baseline; 
    border-bottom: 1px solid #eee; 
    margin-bottom: 25px; 
    padding-bottom: 15px;
}
.section-header h2, .simple-heading { 
    margin: 0; 
    font-size: 20px; 
    font-weight: 700;
    color: #111;
}
.simple-heading {
    border-bottom: 1px solid #eee; 
    margin-bottom: 25px; 
    padding-bottom: 15px;
}
.see-all { color: #f26b3a; text-decoration: underline; font-size: 14px; font-weight: 600;}

/* Featured Products Carousel */
.product-carousel {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding-bottom: 20px;
}
.product-card {
    min-width: 240px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    position: relative;
    background: #fff;
    transition: box-shadow 0.3s;
}
.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.bestseller-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: #ffb300;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    z-index: 10;
}
.img-placeholder {
    height: 220px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.prod-details { padding: 15px; }
.prod-details h4 { 
    margin: 0 0 10px 0; 
    font-size: 14px; 
    color: #333; 
    font-weight: 600; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}
.price-row { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.current-price { font-weight: bold; color: #111; font-size: 16px;}
.old-price { text-decoration: line-through; color: #888; font-size: 12px; }
.discount { color: #4caf50; font-weight: 600; font-size: 12px; }

/* Explore Collections */
.collection-banner {
    position: relative;
    background: #eaeced;
    height: 350px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    margin-top: 10px;
}
.collection-img-placeholder {
    width: 40%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #cfd4d8;
}
.collection-overlay {
    background: #fae8e0;
    padding: 50px 40px;
    border-radius: 8px;
    position: absolute;
    right: 5%;
    width: 350px;
}
.collection-overlay h3 { margin-top: 0; font-size: 24px; margin-bottom: 20px;}
.next-collection { right: -20px; top: 50%; }

/* Store Features */
.store-features { 
    background: #fff8f5; 
    padding: 40px 0; 
    border-top: 1px solid #fceae5; 
    border-bottom: 1px solid #fceae5;
}
.features-container { display: flex; justify-content: space-around; text-align: center; }
.feature-item i { color: #9c684a; margin-bottom: 15px; }
.feature-item p { margin: 0; font-weight: 700; font-size: 14px; color: #2a201a; }

/* Trending Categories */
.category-list { display: flex; gap: 40px; margin-top: 20px;}
.category-item { text-align: center; cursor: pointer; }
.cat-img {
    width: 140px; height: 140px;
    background: #f4f4f4;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 1px solid #eaeaea;
    transition: transform 0.3s;
}
.category-item:hover .cat-img {
    transform: scale(1.05);
}
.category-item p { margin: 0; font-size: 14px; font-weight: 600; color: #111; }

/* Footer */
.dark-footer {
    background: #2a201a;
    color: #ccc;
    padding: 60px 0 20px 0;
    font-size: 13px;
    margin-top: 50px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    border-bottom: 1px solid #3d312a;
    padding-bottom: 40px;
}
.brand-logo {
    background: #fff;
    color: #2a201a;
    display: inline-block;
    padding: 15px;
    border-radius: 50%;
    font-weight: bold;
    width: 60px; height: 60px;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 20px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-brand p { margin: 8px 0; display: flex; align-items: flex-start; gap: 10px; }
.social-icons a { color: #fff; font-size: 16px; margin-right: 15px; }
.footer-links h4 { color: #fff; font-size: 16px; margin-top: 0; margin-bottom: 20px; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { transition: color 0.2s; }
.footer-links ul li a:hover { color: #f26b3a; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
}
.payment-methods { display: flex; align-items: center; gap: 8px; }
.payment-methods i { font-size: 20px; color: #fff; }
.footer-credits { font-size: 12px; }


/* --- SVG Animations --- */
.anim-icon { margin-bottom: 10px; }
@keyframes slide-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.wallet-card { animation: slide-card 2s ease-in-out infinite; }

@keyframes wave-ribbon {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(8deg); }
}
@keyframes pulse-star {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.ribbon-left { animation: wave-ribbon 2s ease-in-out infinite; transform-origin: 35px 50px; }
.ribbon-right { animation: wave-ribbon 2s ease-in-out infinite alternate-reverse; transform-origin: 65px 50px; }
.badge-star { animation: pulse-star 2s ease-in-out infinite; transform-origin: 50px 40px; }

@keyframes spin {
    100% { transform: rotate(360deg); }
}
.spinning-gear { animation: spin 5s linear infinite; transform-origin: 50px 50px; }

@keyframes bounce-truck {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.bouncing-truck { animation: bounce-truck 0.6s infinite; }

@keyframes dash-wind {
    0% { transform: translateX(10px); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateX(-30px); opacity: 0; }
}
.wind-line { animation: dash-wind 1.2s linear infinite; }
.wind-line2 { animation: dash-wind 1s linear infinite 0.3s; }


/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    /* Header */
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    header nav {
        margin-top: 15px;
    }
    header nav ul li {
        margin: 0 10px;
    }

    /* Hero Slider */
    .hero-slider {
        height: 350px;
    }
    .slide-content {
        padding: 20px;
        width: 80%;
    }
    .slide-content h2 {
        font-size: 24px;
    }

    /* Explore Collections */
    .collection-banner {
        flex-direction: column;
        height: auto;
    }
    .collection-img-placeholder {
        width: 100%;
        height: 250px;
    }
    .collection-img-placeholder img {
        border-radius: 8px 8px 0 0;
    }
    .collection-overlay {
        position: relative;
        width: 80%;
        right: auto;
        margin: -50px auto 30px auto;
        padding: 30px;
        text-align: center;
        box-sizing: border-box;
    }
    .next-collection {
        display: none;
    }

    /* Store Features */
    .features-container {
        flex-wrap: wrap;
    }
    .feature-item {
        width: 45%;
        margin-bottom: 30px;
    }

    /* Trending Categories */
    .category-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    .category-item {
        width: 45%;
    }
    .cat-img {
        width: 100px;
        height: 100px;
        margin: 0 auto 10px auto;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand p {
        justify-content: center;
    }
    .social-icons {
        justify-content: center;
        display: flex;
        gap: 20px;
    }
    .social-icons span {
        display: none !important;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Promo Banner */
    .promo-banner {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }
    .promo-banner .divider {
        display: none;
    }

    /* Header Nav */
    header nav ul li {
        display: block;
        margin: 10px 0;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 10px;
    }
    header nav ul li:last-child {
        border-bottom: none;
    }

    /* Features */
    .feature-item {
        width: 100%;
    }
}

html { scroll-behavior: smooth; }


/* --- New Trending Categories --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}
.category-card {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.category-card::before {
    content: '';
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0) 100%);
    z-index: 1;
    transition: opacity 0.3s;
}
.category-card:hover::before {
    opacity: 0.9;
}
.category-overlay {
    position: relative;
    z-index: 2;
    padding: 30px;
    width: 100%;
}
.category-overlay h3 {
    color: #ffffff;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .category-card {
        height: 200px;
    }
}


/* --- Mobile Hamburger Menu CSS --- */
header { position: relative; }
.menu-toggle { display: none; }
@media (max-width: 768px) {
    .header-container { flex-direction: row !important; justify-content: space-between; align-items: center; }
    .menu-toggle { display: block; font-size: 26px; color: #2a201a; cursor: pointer; }
    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 10px 15px rgba(0,0,0,0.08);
        z-index: 1000;
        margin-top: 0 !important;
        border-top: 1px solid #eaeaea;
    }
    header nav.show { display: block; }
    header nav ul { flex-direction: column; padding: 0; margin: 0; }
    header nav ul li {
        margin: 0 !important;
        display: block !important;
        border-bottom: 1px solid #f9f9f9 !important;
    }
    header nav ul li:last-child { border-bottom: none !important; }
    header nav ul li a {
        display: block;
        padding: 18px 25px;
        text-align: left;
        font-size: 16px;
    }
}


/* --- Force Features in Single Line on Mobile --- */
@media (max-width: 768px) {
    .features-container {
        flex-wrap: nowrap !important;
        justify-content: space-around !important;
        gap: 5px;
        padding: 0 10px;
    }
    .feature-item {
        width: 25% !important;
        margin-bottom: 0 !important;
        padding: 0;
    }
    .feature-item p {
        font-size: 11px !important;
        line-height: 1.2;
        margin-top: 5px;
        padding: 0 2px;
    }
    .anim-icon {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 5px !important;
    }
}


/* --- Enhanced Mobile Footer --- */
@media (max-width: 768px) {
    .dark-footer {
        padding: 40px 0 20px 0;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr !important; /* 2 columns for links */
        gap: 25px;
        text-align: left !important;
        padding-bottom: 20px;
    }
    .footer-brand {
        grid-column: span 2; /* Brand info takes full width at top */
        margin-bottom: 10px;
    }
    .footer-brand p {
        justify-content: flex-start !important;
    }
    .social-icons {
        justify-content: flex-start !important;
    }
    .social-icons span {
        display: block !important; 
    }
    .footer-links {
        margin-bottom: 10px;
    }
    .footer-links h4 {
        margin-bottom: 10px;
        font-size: 15px;
    }
    .footer-links ul li {
        margin-bottom: 8px !important;
        border-bottom: none !important; /* Fix conflict with nav */
    }
    .footer-links ul li a {
        font-size: 13px;
        padding: 0 !important; /* Fix conflict with mobile nav padding */
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
        text-align: left !important;
    }
    .payment-methods {
        flex-wrap: wrap;
        justify-content: flex-start;
        line-height: 1.5;
    }
    .payment-methods span:last-child {
        display: block;
        width: 100%;
        margin-left: 0 !important;
        margin-top: 5px;
    }
}


/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    animation: pulse-wa 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFF;
}
@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
}


/* --- Force Promo Banner in Single Row on Mobile --- */
@media (max-width: 480px) {
    .promo-banner {
        flex-direction: row !important;
        padding: 8px 5px !important;
        gap: 0px !important;
    }
    .promo-item {
        padding: 0 5px !important;
        font-size: 9px !important;
        flex: 1;
    }
    .promo-banner .divider {
        display: block !important;
        height: 25px !important;
        background-color: #ccc !important;
        margin: auto 0;
    }
}
