/* ==========================================
                GOOGLE FONT
========================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ==========================================
                RESET
========================================== */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: 'Poppins', sans-serif;
    background: #fff8fb;
    color: #222;
    overflow-x: hidden;
}

/* ==========================================
                ROOT
========================================== */

:root{
    --primary: #ff2e74;
    --primary-light: #ff7aa5;
    --dark: #222;
    --gray: #777;
    --white: #fff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px rgba(255,46,116,0.18);
}

/* ==========================================
                GLOBAL
========================================== */

img{
    width: 100%;
    display: block;
}

a{
    text-decoration: none;
}

section{
    padding: 100px 6%;
}

button,
input{
    font-family: inherit;
}

.empty-message{
    grid-column: 1 / -1;
    text-align: center;
    font-size: 18px;
    color: var(--gray);
}

.section-title{
    text-align: center;
    margin-bottom: 70px;
}

.mini-title{
    display: inline-block;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title h2{
    font-size: 52px;
    margin-bottom: 15px;
    font-weight: 800;
    background: linear-gradient(to right,var(--primary),var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p{
    color: var(--gray);
    font-size: 17px;
}

/* ==========================================
                HERO
========================================== */

.hero{
    min-height: 100vh;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.sub-title{
    display: inline-block;
    padding: 10px 22px;
    border-radius: 50px;
    background: rgba(255,46,116,0.1);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-left h1{
    font-size: 72px;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 800;
    color: var(--dark);
}

.hero-left p{
    font-size: 18px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 40px;
}

.hero-btns{
    display: flex;
    gap: 20px;
}

.btn-main,
.btn-outline{
    height: 58px;
    padding: 0 35px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: 0.3s;
}

.btn-main{
    background: linear-gradient(135deg,var(--primary-light),var(--primary));
    color: white;
}

.btn-outline{
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-main:hover,
.btn-outline:hover{
    transform: translateY(-4px);
}

/* ==========================================
                SLIDER
========================================== */

.slider{
    position: relative;
    width: 100%;
    height: 580px;
    border-radius: 35px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    background: white;
}

.slide{
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s ease;
}

.slide.active{
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prev,
.next{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    cursor: pointer;
    z-index: 5;
    font-size: 22px;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.prev:hover,
.next:hover{
    background: var(--primary);
    color: white;
}

.prev{
    left: 20px;
}

.next{
    right: 20px;
}

.dots{
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    gap: 10px;
}

.dot{
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    opacity: 0.55;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active{
    background: var(--primary);
    opacity: 1;
    transform: scale(1.2);
}

/* ==========================================
                CATEGORIES
========================================== */

.category-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 30px;
}

.category-card{
    position: relative;
    height: 420px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.4s;
    background: white;
}

.category-card:hover{
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.category-card img{
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.category-card:hover img{
    transform: scale(1.08);
}

.overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,rgba(0,0,0,0.82),transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.overlay h3{
    color: white;
    font-size: 30px;
    margin-bottom: 8px;
}

.overlay span{
    color: #ffd7e5;
    font-weight: 600;
}

/* ==========================================
                PRODUCTS
========================================== */

.product-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 35px;
}

.product-card{
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.4s;
}

.product-card:hover{
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-image{
    position: relative;
    height: 420px;
    overflow: hidden;
}

.product-image img{
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.product-card:hover .product-image img{
    transform: scale(1.08);
}

.badge{
    position: absolute;
    top: 18px;
    left: 18px;
    background: linear-gradient(135deg,#ff4f8b,#ff2e74);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
}

.quick-view{
    position: absolute;
    top: 18px;
    right: 18px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.quick-view:hover{
    background: var(--primary);
    color: white;
}

.product-content{
    padding: 28px;
}

.product-category{
    color: var(--gray);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.product-content h3{
    font-size: 23px;
    margin: 15px 0;
    line-height: 1.4;
    min-height: 65px;
    color: var(--dark);
}

.product-content p{
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 18px;
    min-height: 55px;
}

.product-meta{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.product-meta span{
    padding: 7px 13px;
    border-radius: 50px;
    background: #fff0f6;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

.price{
    color: var(--primary);
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 25px;
}

.product-buttons{
    display: flex;
    gap: 12px;
}

.product-buttons form{
    flex: 1;
}

.btn-view,
.btn-cart{
    width: 100%;
    height: 52px;
    border-radius: 50px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-view{
    flex: 1;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: white;
}

.btn-cart{
    background: linear-gradient(135deg,var(--primary-light),var(--primary));
    color: white;
}

.btn-view:hover,
.btn-cart:hover{
    transform: translateY(-4px);
}

/* ==========================================
                PAGINATION
========================================== */

.pagination{
    margin-top: 55px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pagination a{
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border-radius: 50px;
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.pagination a:hover,
.pagination a.active{
    background: var(--primary);
    color: white;
    transform: translateY(-4px);
}

/* ==========================================
                PROMOTION
========================================== */

.promotion{
    margin: 80px 6% 100px;
    border-radius: 40px;
    background:
    linear-gradient(rgba(0,0,0,0.58),rgba(0,0,0,0.58)),
    url('../Images/banner/banner 2.jpg');
    background-size: cover;
    background-position: center;
}

.promotion-content{
    text-align: center;
    color: white;
    padding: 120px 20px;
}

.promotion-content span{
    color: #ffd1e1;
    font-size: 15px;
    letter-spacing: 2px;
    font-weight: 700;
}

.promotion-content h2{
    font-size: 65px;
    margin: 20px 0;
}

.promotion-content p{
    font-size: 18px;
    margin-bottom: 35px;
    color: #eee;
}

.promotion-content a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 58px;
    padding: 0 38px;
    border-radius: 50px;
    background: white;
    color: var(--primary);
    font-weight: 700;
    transition: 0.3s;
}

.promotion-content a:hover{
    transform: translateY(-4px);
}

/* ==========================================
                RESPONSIVE
========================================== */

@media(max-width:1200px){
    .hero-left h1{
        font-size: 60px;
    }
}

@media(max-width:992px){
    .hero{
        grid-template-columns: 1fr;
    }

    .hero-left{
        text-align: center;
    }

    .hero-btns{
        justify-content: center;
    }

    .slider{
        height: 450px;
    }
}

@media(max-width:768px){
    section{
        padding: 70px 5%;
    }

    .section-title h2{
        font-size: 38px;
    }

    .hero-left h1{
        font-size: 42px;
    }

    .hero-left p{
        font-size: 16px;
    }

    .category-card,
    .product-image{
        height: 320px;
    }

    .slider{
        height: 350px;
    }

    .promotion-content h2{
        font-size: 42px;
    }

    .product-buttons{
        flex-direction: column;
    }
}

@media(max-width:480px){
    .hero-left h1{
        font-size: 34px;
    }

    .hero-btns{
        flex-direction: column;
    }

    .btn-main,
    .btn-outline{
        width: 100%;
    }

    .section-title h2{
        font-size: 30px;
    }

    .slider{
        height: 280px;
    }

    .promotion-content{
        padding: 80px 15px;
    }

    .promotion-content h2{
        font-size: 32px;
    }
}
