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

:root{
    --primary-pink:#FF3F6C;
    --primary-orange:#FF905A;
    --warm-yellow:#F9C15A;
    --light-yellow:#F7D36B;
    --soft-yellow:#F6E27A;
    --cream:#FFF8F0;
    --soft-pink:#FFE4E9;
    --dark-text:#282C3F;
    --light-text:#94969F;
    --white:#FFFFFF;

    --shadow:0 4px 12px rgba(0,0,0,0.08);

    --radius-sm:8px;
    --radius-md:12px;
    --radius-lg:16px;
    --radius-xl:24px;
}

/* RESET */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',sans-serif;
    background:linear-gradient(
        135deg,
        var(--warm-yellow),
        var(--light-yellow),
        var(--soft-yellow)
    );
    color:var(--dark-text);
    line-height:1.5;
    overflow-x:hidden;
    min-height:100vh;
}

img{
    width:100%;
    display:block;
}

a{
    text-decoration:none;
    color:inherit;
}

button{
    border:none;
    background:none;
    font-family:inherit;
    cursor:pointer;
}

/* CONTAINER */

.container{
    max-width:480px;
    margin:auto;
    padding:0 16px;
}

/* HEADER */

.header{
    position:sticky;
    top:0;
    z-index:1000;
}

.header-top{
    background:rgba(255,255,255,0.9);
    padding:12px 16px;
    border-bottom:1px solid rgba(0,0,0,0.05);
}

.location-bar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
}

.location-selector{
    display:flex;
    align-items:center;
    gap:8px;
}

.location-icon{
    width:16px;
    height:16px;
    color:var(--primary-pink);
}

.location-text{
    display:flex;
    flex-direction:column;
}

.location-label{
    font-size:10px;
    color:var(--light-text);
}

.location-value{
    font-size:12px;
    font-weight:700;
    display:flex;
    align-items:center;
    gap:4px;
}

.dropdown-arrow{
    width:12px;
    height:12px;
}

.header-icons{
    display:flex;
    align-items:center;
    gap:14px;
}

.icon-btn{
    width:40px;
    height:40px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
}

.icon-btn svg{
    width:20px;
    height:20px;
    color:var(--dark-text);
}

.notification-badge{
    position:absolute;
    top:8px;
    right:8px;
    width:8px;
    height:8px;
    border-radius:50%;
    background:var(--primary-pink);
}

.cart-count{
    position:absolute;
    top:4px;
    right:4px;

    min-width:18px;
    height:18px;

    padding:0 4px;

    border-radius:9px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:var(--primary-pink);
    color:white;

    font-size:10px;
    font-weight:700;
}

/* SEARCH */

.search-container{
    margin-top:16px;
}

.search-bar{
    height:54px;
    background:white;
    border-radius:28px;

    display:flex;
    align-items:center;

    padding:0 16px;

    box-shadow:var(--shadow);
}

.search-logo{
    width:32px;
    height:32px;

    border-radius:50%;

    background:linear-gradient(
        135deg,
        var(--primary-pink),
        var(--primary-orange)
    );

    display:flex;
    align-items:center;
    justify-content:center;

    margin-right:12px;
}

.search-logo svg{
    width:18px;
    height:18px;
    color:white;
}

.search-input{
    flex:1;
    border:none;
    background:transparent;

    font-size:14px;
    font-weight:500;

    outline:none;
}

.search-input::placeholder{
    color:var(--light-text);
}

.search-icon-btn{
    width:40px;
    height:40px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    background:linear-gradient(
        135deg,
        var(--primary-pink),
        var(--primary-orange)
    );

    color:white;
}

.search-icon-btn svg{
    width:18px;
    height:18px;
}

/* TAGS */

.trending-tags{
    display:flex;
    gap:8px;
    overflow-x:auto;
    padding:12px 0;
}

.tag{
    flex-shrink:0;

    padding:8px 14px;

    border-radius:20px;

    background:rgba(255,255,255,0.7);

    font-size:12px;
    font-weight:700;

    white-space:nowrap;
}

/* CATEGORY NAV */

.category-nav{
    padding:16px 0;
}

.category-tabs{
    display:flex;
    gap:8px;
}

.category-tab{
    flex:1;

    padding:12px;

    border-radius:12px;

    background:rgba(255,255,255,0.7);

    text-align:center;

    font-size:13px;
    font-weight:700;
}

.category-tab.active{
    background:linear-gradient(
        135deg,
        var(--primary-pink),
        var(--primary-orange)
    );

    color:white;
}

/* CATEGORY ICONS */

.category-icons-section{
    padding:24px 0;
}

.section-title{
    font-size:18px;
    font-weight:800;
    margin-bottom:16px;
}

.category-icons-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:12px;
}

.category-icon-card{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
}

.category-icon-image{
    width:64px;
    height:64px;

    border-radius:16px;

    overflow:hidden;

    background:var(--cream);

    box-shadow:var(--shadow);
}

.category-icon-image img{
    height:100%;
    object-fit:cover;
}

.category-icon-label{
    font-size:11px;
    font-weight:700;
    text-align:center;
}

/* FLASH SALE */

.flash-sale-section{
    margin:24px 0;
}

.flash-sale-card{
    padding:20px;

    border-radius:24px;

    background:linear-gradient(
        135deg,
        rgba(255,63,108,0.08),
        var(--soft-pink)
    );

    box-shadow:var(--shadow);
}

.flash-sale-header{
    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:16px;
}

.flash-sale-title{
    font-size:18px;
    font-weight:900;
}

.flash-sale-subtitle{
    font-size:12px;
    color:var(--light-text);
}

.timer-blocks{
    display:flex;
    justify-content:center;
    gap:8px;
}

.timer-block{
    text-align:center;
}

.timer-value{
    width:56px;
    height:56px;

    border-radius:12px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:white;

    font-size:24px;
    font-weight:900;

    color:var(--primary-pink);

    margin-bottom:4px;
}

.timer-label{
    font-size:10px;
    font-weight:700;
    color:var(--light-text);
}

.shop-now-btn{
    width:100%;

    padding:14px;

    margin-top:16px;

    border-radius:12px;

    background:linear-gradient(
        135deg,
        var(--primary-pink),
        var(--primary-orange)
    );

    color:white;

    font-size:14px;
    font-weight:800;
}

/* HERO BANNER */

.hero-banner-section{
    padding:24px 0;
}

.swiper-container{
    overflow:hidden;
    border-radius:24px;
    box-shadow:var(--shadow);
}

.banner-slide{
    position:relative;
    height:280px;
}

.banner-image{
    height:100%;
    object-fit:cover;
}

.banner-overlay{
    position:absolute;
    inset:0;

    background:linear-gradient(
        to top,
        rgba(0,0,0,0.7),
        transparent
    );
}

.banner-content{
    position:absolute;
    bottom:0;
    left:0;
    right:0;

    padding:24px;

    color:white;
}

.banner-title{
    font-size:28px;
    font-weight:900;
    line-height:1.2;
    margin-bottom:8px;
}

.banner-subtitle{
    font-size:14px;
    margin-bottom:16px;
}

.banner-btn{
    padding:12px 16px;

    border-radius:12px;

    background:white;
    color:var(--primary-pink);

    font-size:14px;
    font-weight:800;

    display:inline-flex;
    align-items:center;
    gap:8px;
}

/* PRODUCTS */

.product-section{
    padding:32px 0;
}

.product-section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:16px;
}

.product-section-title{
    font-size:20px;
    font-weight:900;
}

.view-all-link{
    font-size:14px;
    font-weight:700;
    color:var(--primary-pink);
}

.product-grid{
    display:flex;
    gap:16px;
    overflow-x:auto;
    padding-bottom:8px;
}

.product-card{
    width:160px;
    flex-shrink:0;

    background:white;

    border-radius:16px;

    overflow:hidden;

    box-shadow:var(--shadow);
}

.product-image-wrapper{
    position:relative;
    height:200px;
    overflow:hidden;
}

.product-image{
    height:100%;
    object-fit:cover;
}

.wishlist-btn{
    position:absolute;
    top:8px;
    right:8px;

    width:32px;
    height:32px;

    border-radius:50%;

    background:white;

    display:flex;
    align-items:center;
    justify-content:center;
}

.discount-badge{
    position:absolute;
    top:8px;
    left:8px;

    padding:4px 8px;

    border-radius:6px;

    background:var(--primary-pink);
    color:white;

    font-size:11px;
    font-weight:800;
}

.product-info{
    padding:12px;
}

.product-brand{
    font-size:12px;
    font-weight:800;
    margin-bottom:4px;
}

.product-name{
    font-size:12px;
    color:var(--light-text);
    margin-bottom:8px;
    line-height:1.4;
}

.product-rating{
    display:flex;
    align-items:center;
    gap:6px;

    margin-bottom:8px;
}

.rating-box{
    padding:3px 6px;

    border-radius:4px;

    background:rgba(3,166,133,0.1);

    display:flex;
    align-items:center;
    gap:4px;
}

.rating-value{
    font-size:11px;
    font-weight:800;
    color:#03a685;
}

.rating-count{
    font-size:10px;
    color:var(--light-text);
}

.product-pricing{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;

    margin-bottom:8px;
}

.current-price{
    font-size:16px;
    font-weight:900;
}

.original-price{
    font-size:12px;
    color:var(--light-text);
    text-decoration:line-through;
}

.add-to-bag-btn{
    width:100%;

    padding:10px;

    border-radius:8px;

    background:linear-gradient(
        135deg,
        var(--primary-pink),
        var(--primary-orange)
    );

    color:white;

    font-size:12px;
    font-weight:800;
}

/* BOTTOM NAV */

.bottom-nav{
    position:fixed;
    left:0;
    right:0;
    bottom:0;

    z-index:1000;
}

.bottom-nav-container{
    background:rgba(255,255,255,0.95);

    border-top:1px solid rgba(0,0,0,0.05);

    padding:12px;
}

.nav-items{
    display:flex;
    justify-content:space-around;
}

.nav-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:4px;
}

.nav-item svg{
    width:22px;
    height:22px;
    color:var(--light-text);
}

.nav-item.active svg,
.nav-item.active .nav-label{
    color:var(--primary-pink);
}

.nav-label{
    font-size:10px;
    font-weight:700;
}

/* FLOATING CART */

.floating-cart{
    position:fixed;
    right:16px;
    bottom:80px;

    z-index:999;
}

.floating-cart-btn{
    width:56px;
    height:56px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    background:linear-gradient(
        135deg,
        var(--primary-pink),
        var(--primary-orange)
    );

    color:white;

    box-shadow:var(--shadow);
}

.floating-cart-btn svg{
    width:24px;
    height:24px;
}

.floating-cart-count{
    position:absolute;
    top:-4px;
    right:-4px;

    min-width:20px;
    height:20px;

    padding:0 6px;

    border-radius:10px;

    background:var(--warm-yellow);
    color:var(--dark-text);

    font-size:11px;
    font-weight:900;

    display:flex;
    align-items:center;
    justify-content:center;
}

/* PAGE */

.page-wrapper{
    padding-top:160px;
    padding-bottom:100px;
    min-height:100vh;
}

/* RESPONSIVE */

@media(max-width:375px){

    .container{
        padding:0 12px;
    }

    .product-card{
        width:140px;
    }

    .category-icons-grid{
        grid-template-columns:repeat(4,1fr);
    }

    .timer-value{
        width:48px;
        height:48px;
        font-size:20px;
    }

}

@media(min-width:481px){

    .container{
        max-width:600px;
    }

    .product-grid{
        flex-wrap:wrap;
    }

    .product-card{
        width:calc(50% - 8px);
    }

}