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

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #222;
}

header {
    background-color: orange;
    color: white;
    padding: 14px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 15px;
}

nav a:hover {
    color: white;
}

.cart-btn {
    background-color: #e94560;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.cart-btn:hover {
    background-color: #c73652;
}

.banner {
    background-color: #e8d39d;
    color: white;
    text-align: center;
    padding: 50px 20px;
}

.banner h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.banner p {
    color: black;
    font-size: 16px;
}

.filter {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-bottom: 1px solid #ddd;
}

.filter-btn {
    background-color: white;
    border: none;
    padding: 8px 18px;
    margin: 4px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.filter-btn:hover {
    background-color: #e94560;
    color: white;
}

.filter-btn.active {
    background-color: #e94560;
    color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    border: 1px solid #ddd;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.product-img {
    background-color: #e8e8f0;
    text-align: center;
    font-size: 70px;
    padding: 30px 0;
}

.product-info {
    padding: 14px;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.series {
    color: #888;
    font-size: 13px;
    margin-bottom: 8px;
}

.price {
    color: #e94560;
    font-weight: bold;
    font-size: 17px;
    margin-bottom: 10px;
}

.product-info button {
    width: 100%;
    background-color: #1a1a2e;
    color: white;
    border: none;
    padding: 9px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.product-info button:hover {
    background-color: #e94560;
}

.product-card.hidden {
    display: none;
}

.xem-them-btn {
    background-color: #1a1a2e;
    color: white;
    border: none;
    padding: 10px 32px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.xem-them-btn:hover {
    background-color: #e94560;
}

.cart-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 10;
}

.cart-panel {
    display: none;
    position: fixed;
    top: 0; right: 0;
    width: 320px;
    height: 100%;
    background: white;
    z-index: 20;
    padding: 24px;
    overflow-y: auto;
    box-shadow: -3px 0 15px rgba(0,0,0,0.2);
}

.cart-panel h2 {
    margin-bottom: 16px;
}

.cart-panel.open,
.cart-overlay.open {
    display: block;
}

#cart-list {
    list-style: none;
    margin-bottom: 16px;
}

#cart-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.empty-msg {
    color: #999;
    font-style: italic;
}

.cart-total {
    font-size: 16px;
    margin-bottom: 14px;
}

.checkout-btn {
    width: 100%;
    background-color:  #F39C12;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

.checkout-btn:hover {
    background-color: ##5A4BD1;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #6C5CE7;
    color: white;
    font-size: 13px;
    margin-top: 40px;
}

.news-support{
    max-width:1000px;
    margin:40px auto;
    display:flex;
    gap:20px;
}

.news-box{
    flex:2;
}

.support-box{
    flex:1;
}

.news-box,
.support-box{
background:white;
padding:20px;
border-radius:8px;
border:1px solid white;
}

.news-box h2,
.support-box h2{
margin-bottom:20px;
}

.news-item{
padding:12px 0;
border-bottom:1px solid white;
}

.news-item:last-child{
border-bottom:none;
}

.news-item h4{
margin-bottom:5px;
}

.news-item p{
color:#555;
font-size:14px;
}

.footer-dark{
background:black;
color:white;
display:flex;
justify-content:space-around;
padding:40px 20px;
margin-top:40px;
text-align:left;
}

.footer-col{
width:250px;
}

.footer-col h3{
margin-bottom:15px;
}

.footer-col p{
margin-bottom:8px;
color:#ccc;
}

.article{
    width: 900px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
}

.article h1{
    margin-bottom:20px;
}

.article img{
    width:100%;
    margin:20px 0;
}

.article p{
    line-height:1.8;
    margin-bottom:15px;
}

.product-card.hidden {
    display: none;
}

.hidden{
    display:none;
}

.hidden{
    display:none !important;
}

.checkout{
    width:800px;
    margin:40px auto;
    background:white;
    padding:30px;
    border-radius:10px;
}

.checkout h1{
    margin-bottom:20px;
}

.checkout input{
    width:100%;
    padding:10px;
    margin:10px 0;
}

.total{
    font-size:22px;
    color:red;
    margin:20px 0;
}

.checkout button{
    background:#FF6B81;
    color:white;
    border:none;
    padding:12px 20px;
    cursor:pointer;
}

.action-buttons{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:15px;
}

.back-home{
    text-decoration:none;
    font-weight:bold;
}

.product-img{
    background:none;
    height:auto;
}

.product-img img{
    width:100%;
    display:block;
}

.logo img{
    height:20px;
    width:auto;
}

html{
    scroll-behavior: smooth;
}