/* reset */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family: Arial, sans-serif;
    background:#fff7fa;
}

/* khung chính */
.container{
    width:95%;
    margin:auto;
}

/* =========================
   HEADER giống index
========================= */
.header{
    position: relative;
    background: white;
    padding: 20px 0;
    z-index: 100;
}

.nav-menu{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    padding-right:40px;
}

.logo{
    display:none;
}

.logo a{
    text-decoration:none;
    color:black;
}

.logo h1{
    font-size:36px;
    letter-spacing:3px;
    font-weight:bold;
}

/* menu desktop */
.menu{
    display:flex;
    list-style:none;
    gap:55px;
    align-items:center;
}

.menu-item a,
.cart-info{
    text-decoration:none;
    color:black;
    font-size:22px;
    font-weight:300;
    transition:.3s;
    cursor:pointer;
}

.menu-item a:hover,
.cart-info:hover{
    opacity:0.7;
}

/* =========================
   CART
========================= */
.cart-info{
    position:relative;
    cursor:pointer;
}

/* hộp giỏ hàng */
.cart-box{
    display:none;
    position:absolute;
    top:85px;
    right:20px;
    width:320px;
    background:white;
    padding:20px;
    border-radius:12px;
    box-shadow:0 5px 20px rgba(0,0,0,0.2);
    z-index:999;
}

.cart-box.active{
    display:block;
}

.cart-box h3{
    font-size:24px;
    margin-bottom:15px;
    color:#222;
    border-bottom:1px solid #ddd;
    padding-bottom:10px;
}

#cart-items{
    list-style:none;
    max-height:250px;
    overflow-y:auto;
    margin-bottom:20px;
}

#cart-items li{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 0;
    border-bottom:1px solid #eee;
}

.delete-btn{
    background:#ff4d6d;
    color:white;
    border:none;
    padding:6px 10px;
    border-radius:6px;
    cursor:pointer;
    transition:.3s;
}

.delete-btn:hover{
    background:#e63956;
}

/* =========================
   HAMBURGER
========================= */
.hamburger{
    display:none;
    flex-direction:column;
    gap:6px;
    cursor:pointer;
    z-index:999;
}

.hamburger span{
    width:32px;
    height:3px;
    background:black;
    border-radius:3px;
    transition:.3s;
}

/* animation */
.hamburger.active span:nth-child(1){
    transform:rotate(45deg) translate(7px,6px);
}

.hamburger.active span:nth-child(2){
    opacity:0;
}

.hamburger.active span:nth-child(3){
    transform:rotate(-45deg) translate(7px,-6px);
}

/* section */
.collections{
    background:#fff7fa;
    padding:30px 0 60px;
}

/* tiêu đề */
.box-title h3{
    text-align:center;
    font-size:48px;
    font-weight:300;
    margin-bottom:50px;
    color:#333;
}

/* danh sách sản phẩm */
.product-container{
    width:100%;
    max-width:1200px;
    margin:auto;
}

/* từng sản phẩm */
.product-row{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:100px;
    margin-bottom:80px;
}

/* ảnh */
.product-img{
    width: 1000px;
    text-align:center;
}

.product-img img{
    width: 500px;
    height: 500px;
    object-fit:contain;
}

/* thông tin */
.product-info{
    width:420px;
    text-align:left;
}

/* tên màu */
.color-name{
    font-size:30px;
    margin-bottom:20px;
    color:#444;
    font-weight:bold;
}

/* box giá */
.price-box{
    background:#fff;
    border:1px solid #ddd;
    border-radius:10px;
    padding:20px;
    margin-bottom:25px;
}

.price-label{
    font-size:28px;
    margin-right:10px;
    color:#111;
}

.sale-price{
    font-size:40px;
    color:plum;
    font-weight:bold;
    margin-right:15px;
}

.old-price{
    font-size:28px;
    color:#777;
    text-decoration:line-through;
}

/* size */
.size-label{
    font-size:22px;
    margin-bottom:15px;
    color:#555;
}

.size-options{
    display:flex;
    gap:12px;
    margin-bottom:25px;
    flex-wrap:wrap;
}

.size-options span{
    width:42px;
    height:42px;
    border:2px solid #999;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    background:white;
    cursor:pointer;
    transition:.3s;
}

.size-options span:hover{
    background:black;
    color:white;
    border-color:black;
}

/* số lượng */
.quantity-section{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:30px;
}

.quantity-label{
    font-size:22px;
    color:#333;
}

.quantity-box{
    display:flex;
    border:2px solid #ddd;
    background:white;
}

.quantity-box button{
    width:55px;
    height:55px;
    border:none;
    background:white;
    font-size:28px;
    cursor:pointer;
    transition:.3s;
}

.quantity-box button:hover{
    background:#f2f2f2;
}

.quantity-box input{
    width:70px;
    height:55px;
    border:none;
    border-left:2px solid #ddd;
    border-right:2px solid #ddd;
    text-align:center;
    font-size:24px;
    font-weight:bold;
}

/* nút */
.btn-group{
    display:flex;
    gap:15px;
    margin-bottom:25px;
}

.btn-add{
    flex:1;
    padding:16px;
    border:2px solid pink;
    background:white;
    color:pink;
    font-size:20px;
    font-weight:bold;
    border-radius:8px;
    cursor:pointer;
    transition:.3s;
}

.btn-add:hover{
    background:pink;
    color:white;
}

.btn-pay{
    flex:1;
    padding:16px;
    border:none;
    background:pink;
    color:white;
    font-size:20px;
    font-weight:bold;
    border-radius:8px;
    cursor:pointer;
    transition:.3s;
}

.btn-pay:hover{
    background:pink;
}

/* tổng tiền */
.total-price{
    background:#fff;
    border:2px solid #ddd;
    border-radius:8px;
    padding:15px 20px;
    font-size:24px;
    font-weight:bold;
    width:fit-content;
}

.total-price span{
    color:plum;
}

/* mobile */
@media(max-width:768px){

    .nav-menu{
        justify-content:space-between;
        padding:0 20px;
    }

    .hamburger{
        display:flex;
    }

    .menu{
        display:none;
        flex-direction:column;
        position:absolute;
        top:80px;
        left:20px;
        width:280px;
        background:#f3f3f3;
        padding:30px;
        gap:35px;
        box-shadow:0 5px 20px rgba(0,0,0,0.25);
    }

    .menu.active{
        display:flex;
    }

    .product-row{
        flex-direction:column;
        gap:30px;
        text-align:center;
    }

    .product-img,
    .product-info{
        width:100%;
        text-align:center;
    }

    .product-img img{
        width:250px;
        height:auto;
    }

    .box-title h3{
        font-size:32px;
    }

    .price-box{
        text-align:center;
    }

    .sale-price{
        display:block;
        margin:10px 0;
    }

    .size-options,
    .btn-group,
    .quantity-section{
        justify-content:center;
    }

    .total-price{
        margin:auto;
    }
}
/* =========================
   FOOTER
========================= */
.footer{
    background:white;
    color:#333;
    text-align:center;
    padding:40px 0;
    border-top:2px solid #f4a6c1;
    margin-top:50px;
}

.footer h3{
    font-size:32px;
    color:#f08fb1;
    margin-bottom:10px;
}

.footer p{
    font-size:20px;
    color:#555;
}