* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #F0F2F5;
    color: #333;
}

.header {
    background-color: #fff;
    width: 100%;
}
.top-banner img {
    width: 100%;
    display: block;
    max-height: 50px;
    object-fit: cover;
}

.menu {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #C92127;
}
.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    height: 50px;
}
.menu-links a {
    text-decoration: none;
    color: #555555;
    font-size: 14px;
    font-weight: 600;
    padding: 15px 15px;
    display: inline-block;
    transition: color 0.2s;
}
.menu-links a:hover, .menu-links a.active {
    color: #C92127;
}

.menu-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.menu-auth a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
}
.menu-auth a:hover {
    color: #C92127;
}
.welcome-text {
    font-weight: 600;
    font-size: 14px;
}
.divider {
    color: #DDD;
}
.btn-cart {
    background-color: #FFF0F0;
    color: #C92127 !important;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600 !important;
    border: 1px solid #FCA5A5;
}

.hero-section {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}
.hero-container {
    display: flex;
    gap: 15px;
}

.hero-banner-left {
    flex: 2;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 320px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.banner-slider {
    display: flex;
    width: 300%; 
    height: 100%;
    transition: transform 0.5s ease-in-out;
}
.slide-img {
    width: 33.3333%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 16px;
    transition: background 0.2s;
}
.slider-btn:hover { background: rgba(0, 0, 0, 0.6); }
.prev-btn { left: 15px; }
.next-btn { right: 15px; }

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}
.dot.active { background: #C92127; width: 20px; border-radius: 4px; }

.hero-banner-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sub-banner {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.sub-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}
.product h2 {
    font-size: 20px;
    text-transform: uppercase;
    color: #C92127;
    margin-bottom: 20px;
    border-left: 4px solid #C92127;
    padding-left: 10px;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.card {
    background-color: #fff;
    border-radius: 6px;
    padding: 12px;
    border: 1px solid #EAEAEA;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.discount {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #C92127;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 3px;
    z-index: 5;
}

.card-img-box {
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}
.card-img-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    margin-bottom: 8px;
}
.price-box {
    margin-bottom: 4px;
}
.new-price {
    font-size: 15px;
    font-weight: 700;
    color: #C92127;
}
.old-price {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 4px;
}
.sold {
    font-size: 11px;
    color: #666;
    margin-bottom: 12px;
}

.btn-order {
    width: 100%;
    background: transparent;
    color: #C92127;
    border: 1px solid #C92127;
    padding: 8px 0;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: auto;
}
.btn-order:hover {
    background: #C92127;
    color: white;
}

.cart-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}
.cart-modal-content {
    background: white;
    width: 450px;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #EEE;
    padding-bottom: 10px;
}
.cart-header h2 { font-size: 16px; color: #333; }
.close-cart { font-size: 24px; cursor: pointer; color: #999; }
.close-cart:hover { color: #333; }

.cart-body {
    max-height: 250px;
    overflow-y: auto;
    margin: 15px 0;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #F5F5F5;
}
.cart-item img { width: 50px; height: 50px; object-fit: contain; }
.item-details { flex: 1; }
.item-details h4 { font-size: 13px; color: #333; margin-bottom: 4px; }
.item-details p { color: #C92127; font-size: 12px; font-weight: bold; }

.item-qty-controls button {
    width: 24px; height: 24px; border: 1px solid #DDD; background: white; cursor: pointer;
}
.item-qty-controls span { padding: 0 8px; font-size: 13px; }
.btn-delete-item { background: transparent; border: none; cursor: pointer; padding-left: 10px; }

.cart-footer { border-top: 1px solid #EEE; padding-top: 15px; }
.total-price-box {
    display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 15px;
}
.total-price-box strong { color: #C92127; font-size: 16px; }
.btn-checkout {
    width: 100%; background: #C92127; color: white; border: none; padding: 12px 0;
    border-radius: 4px; font-weight: bold; cursor: pointer;
}
.btn-checkout:hover { background: #A7171C; }

.footer-section {
    background-color: #fff;
    border-top: 2px solid #EAEAEA;
    padding: 40px 0 20px;
    margin-top: 50px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 0 15px;
}
.footer-col h3 {
    font-size: 14px;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 700;
}
.footer-col p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}
.footer-links a, .social-icons a {
    display: block;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 10px;
}
.footer-links a:hover, .social-icons a:hover {
    color: #C92127;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #EEE;
    margin-top: 30px;
    padding-top: 15px;
    font-size: 12px;
    color: #999;
}

@media (max-width: 992px) {
    .product-list { grid-template-columns: repeat(3, 1fr); }
    .footer-container { grid-template-columns: repeat(2, 1fr); }
    .hero-container { flex-direction: column; }
}
@media (max-width: 600px) {
    .product-list { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: 1fr; }
    .menu-links { display: none; }
}