

/* public/css/style.css */
@import url('https://googleapis.com');

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}
body { 
    background-color: #ebe5d5; 
    color: #032115; 
    font-family: 'Quicksand', sans-serif;
}

/* 1. Header */
header { 
    background-color: #032115; 
    color: white; 
    padding: 18px 60px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
header nav { display: flex; gap: 35px; }
header nav a { color: #b3c2bb; text-decoration: none; font-size: 13px; font-weight: 600; }
header nav a.active { color: #f69d3c; border-bottom: 3px solid #f69d3c; padding-bottom: 6px; font-weight: 700; }
.header-right { display: flex; align-items: center; gap: 25px; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box input { background-color: #123023; border: 1px solid #234937; border-radius: 25px; padding: 10px 50px 10px 20px; color: white; font-size: 13px; outline: none; width: 250px; }
.search-btn { position: absolute; right: 3px; background-color: white; border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; color: #032115; font-size: 14px; }
.cart-status { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #b3c2bb; }
.cart-count { border: 1.5px solid white; border-radius: 50%; width: 26px; height: 26px; display: flex; justify-content: center; align-items: center; font-size: 11px; color: white; font-weight: bold; }

/* 2. Main Layout */
main { 
    max-width: 1400px; 
    margin: 40px auto; 
    padding: 0 40px; 
    display: grid; 
    grid-template-columns: 2.5fr 5.3fr 4.2fr; 
    gap: 40px; 
    align-items: start; 
}

/* 3. Sidebar */
aside h1 { font-size: 48px; font-weight: 900; line-height: 0.95; color: #032115; margin-bottom: 25px; letter-spacing: -1px; }
.filter-header { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #556c62; margin-bottom: 45px; font-weight: 600; }
.shop-by-title { font-weight: 700; font-size: 15px; margin-bottom: 20px; color: #032115; }
aside ul { list-style: none; }
aside ul li { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 14px; font-weight: 700; color: #334d41; border-bottom: 1px solid #d5cdbc; cursor: pointer; }
aside ul li .bullet { color: #f69d3c; margin-right: 15px; font-size: 16px; }
.icon-circle-arrow { border: 1px solid #032115; border-radius: 50%; width: 24px; height: 24px; display: flex; justify-content: center; align-items: center; font-size: 11px; font-weight: bold; }

/* 4. Grid Sản phẩm */
.products-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 25px; 
}
.product-card { 
    background-color: white; 
    padding: 12px; 
    border-radius: 4px; 
    position: relative; 
    display: flex; 
    flex-direction: column;
    justify-content: flex-start;
}

.tag-new { 
    position: absolute; 
    top: 3.5%; 
    left: -10px;
    background-color: #f69d3c; 
    color: white; 
    font-size: 10px; 
    font-weight: 900; 
    padding: 5px 10px; 
    border-radius: 3px; 
    z-index: 10;
}
.tag-new-right {
    left: auto;
    right: -10px;
}

.img-container { 
    width: 100%;
    aspect-ratio: 3 / 3; 
    background-color: #dfdcd4; 
    margin-bottom: 15px;
    border-radius: 2px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #7b8e85;
    font-size: 12px;
}
.img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; 
}
.product-card h4 { font-size: 13px; font-weight: 700; color: #032115; }
.product-card p { color: #7b8e85; font-size: 11px; margin-top: 3px; }
.btn-arrow-orange { 
    width: 28px; 
    height: 28px; 
    background-color: #f69d3c; 
    color: white; 
    border: none; 
    border-radius: 50%; 
    cursor: pointer; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 12px;
    font-weight: bold;
}

/* 5. Khối Banner Sale */
.sale-banner { 
    background-color: white; 
    border-radius: 4px; 
    overflow: visible; 
    position: relative; 
}
.badge-revenue { 
    position: absolute; 
    top: 150px; 
    right: -25px; 
    background-color: #f69d3c; 
    color: white; 
    font-weight: 900; 
    width: 110px; 
    height: 110px; 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 16px; 
    transform: rotate(10deg); 
    z-index: 10;
}
.banner-img-container { 
    width: 100%;
    aspect-ratio: 20 / 16; 
    background-color: #dfdcd4;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #4a5568;
}
.banner-img-container img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-detail { padding: 35px 25px 25px 25px; }
.banner-detail h2 { font-size: 24px; font-weight: 900; color: #032115; margin-bottom: 15px; }
.banner-detail .desc { color: #7b8e85; font-size: 12px; line-height: 1.6; margin-bottom: 30px; }
.price-size-container { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; }

.old-price { 
    color: #f69d3c; 
    text-decoration: line-through; 
    font-size: 20px; 
    font-weight: 900;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    display: block; 
    margin-bottom: 5px; 
}
.new-price { 
    font-size: 36px; 
    font-weight: 900; 
    color: #032115;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    line-height: 1;
}
.size-title { font-size: 11px; color: #7b8e85; text-align: right; margin-bottom: 8px; font-weight: 600; }
.size-box { display: flex; gap: 6px; }
.size-item { width: 26px; height: 26px; border-radius: 50%; font-size: 11px; font-weight: bold; display: flex; justify-content: center; align-items: center; border: 1px solid #cbd5e0; background-color: #e6eee9; color: #032115; cursor: pointer; }
.size-item.active { background-color: #032115; color: white; border-color: #032115; }
.btn-buy { 
    width: 100%; 
    background-color: #f69d3c; 
    color: white; 
    font-weight: 900; 
    border: none; 
    padding: 15px; 
    border-radius: 4px; 
    font-size: 14px; 
    cursor: pointer; 
}

/* ========================================================
   --- ĐOẠN CSS ĐÃ ĐƯỢC KHẮC PHỤC HOÀN CHỈNH CHO ĐIỆN THOẠI ---
   ======================================================== */
@media (max-width: 992px) {
    /* 1. Header co giãn theo chiều dọc */
    header {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    header nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .header-right {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    .search-box, .search-box input {
        width: 100%;
    }

    /* 2. Đập vỡ cấu trúc 3 cột Grid sang dạng xếp chồng hàng dọc 1 cột */
    main {
        grid-template-columns: 1fr;
        padding: 0 15px;
        margin: 20px auto;
        gap: 30px;
    }

    /* 3. Sidebar Bộ lọc chiếm trọn 100% bề ngang */
    aside {
        width: 100%;
    }
    aside h1 {
        font-size: 36px;
        text-align: center;
    }

    /* 4. Grid Sản phẩm: Chuyển mượt mà thành 2 cột đều nhau trên Mobile */
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .product-card {
        padding: 10px;
    }
    .tag-new {
        top: 2%;
    }

    /* 5. Khối banner khuyến mãi cột phải tràn full hàng */
    .sale-banner {
        width: 100%;
    }
    .badge-revenue {
        width: 80px;
        height: 80px;
        font-size: 13px;
        top: 100px;
        right: -10px;
    }
}

