:root{
    --bg: #f4f7fb;
    --card: #ffffff;
    --accent: #0f74ff;
    --muted: #6b7280;
    --accent-2: #00bfa6;
    --shadow: rgba(15, 20, 30, 0.08);
    --radius: 10px;
    --max-width: 1200px;
    --gap: 20px;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Thiết lập font chung */
body{
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg);
    color: #0b1321;
    max-width: var(--max-width);
    margin: 24px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--gap);
}

/* Tiêu Đề Web */
header{
    grid-column: 1 / -1;
    background: linear-gradient(90deg, #e8f5ff, #ffffff);
    border-radius: var(--radius);
    padding: 22px 24px;
    text-align: center;
    box-shadow: 0 6px 18px var(--shadow);
}

header h1{
    font-size: 1.6rem;
    color: #07346b;
    letter-spacing: 0.4px;
}

/* Phần menu */
nav{
    grid-column: 1 / -1;
    margin-top: 12px;
}

nav ul{
    list-style: none;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

nav a{
    text-decoration: none;
    color: #114b82;
    background: #e9f4ff;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(17,75,130,0.06);
}

nav a:hover{
    background: #d7eefc;
    color: var(--accent);
}

/* Danh sách sản phẩm (nội dung chính) */
.Product-List{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    align-items: start;
}

/* Thẻ sản phẩm */
.Product-Card{
    background: var(--card);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 8px 20px var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    min-height: 320px;
}

.Product-Card img{
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(11,19,33,0.04);
}

.Product-Card h2{
    font-size: 1.05rem;
    color: #0b2540;
    margin-top: 6px;
}

.Product-Card p{
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.35;
}

/* Khu vực giá và nút bấm */
.Product-Card .price{
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.Product-Card .price p{
    font-weight: 700;
    color: #16213b;
    font-size: 1rem;
}

.site-button{
    /* lớp phụ: không đặt màu nền để giữ màu của Bootstrap (.btn-*)
       Chỉ giữ một vài tùy chỉnh nhỏ (padding/border-radius nếu cần)
    */
    cursor: pointer;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 700;
}

.site-button.site-button4{
    /* nếu bạn vẫn muốn gradient tùy chỉnh, bật dòng background bên dưới
       Lưu ý: nếu bật, điều này sẽ ghi đè màu của .btn-* từ Bootstrap
    */

    box-shadow: 0 6px 14px rgba(6, 60, 160, 0.12);
}

.site-button.site-button4:hover{
    filter: brightness(0.95);
}

/* Thanh bên */
.Sidebar{
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 8px 18px var(--shadow);
    height: fit-content;
}

.social-icons{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-icons a{
    text-decoration: none;
    color: #07346b;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f1f7ff;
    border: 1px solid rgba(7,52,107,0.04);
}

.social-icons a:hover{
    background: #e8f4ff;
}

/* Chân trang */
.footer{
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 18px;
    background: transparent;
}

.footer-item{
    background: #ffffff;
    padding: 14px;
    border-radius: 10px;
    box-shadow: 0 6px 16px var(--shadow);
}

.footer-item h3{
    color: #0b2540;
    margin-bottom: 8px;
    font-size: 1rem;
}

/* Footer: links and newsletter styling */
.footer-item ul{
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-item ul li a{
    color: #114b82;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 0;
    border-radius: 6px;
}
.footer-item ul li a:hover{
    color: var(--accent);
}

.newsletter{
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.newsletter input{
    flex: 1;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(11,19,33,0.06);
    font-size: 0.95rem;
}
.newsletter .site-button{
    padding: 8px 12px;
}
.payments p{ /* small spacing */
    margin: 6px 0 0 0;
    font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 980px){
    body{
        grid-template-columns: 1fr;
        padding: 14px;
        margin: 0;
    }

    .Sidebar{
        order: 2;
        width: 100%;
    }

    .Product-List{
        order: 1;
    }

    .footer{
        grid-template-columns: 1fr;
    }
}

/* Tiện ích */
.text-muted{
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 600px){
    body{
        gap: 16px;
        padding: 16px 12px 28px;
    }

    header{
        padding: 18px 16px;
    }

    header h1{
        font-size: 1.3rem;
    }

    nav ul{
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    nav a{
        text-align: center;
        padding: 12px;
    }

    .Product-Card{
        padding: 12px;
        min-height: 0;
        gap: 8px;
    }

    .Product-Card img{
        height: 160px;
    }

    .newsletter{
        flex-direction: column;
    }

    .newsletter input,
    .newsletter .site-button{
        width: 100%;
    }

    .Sidebar{
        padding: 14px;
    }

    .footer{
        gap: 12px;
    }

    .footer-item{
        padding: 12px;
    }
}
