/* Reset CSS và Cấu trúc cơ bản */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* --- HEADER VÀ NAVIGATION --- */
header {
    background: #c0392b; 
    color: white;
    padding: 1rem 0;
    border-bottom: 5px solid #e67e22;
}

header .container {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    overflow: hidden; 
}

header h1 {
    font-size: 1.8rem;
    margin: 0;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li {
    display: inline-block; 
    margin-left: 20px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #ffd700;
}

/* --- BANNER TRANG CHỦ --- */
#hero-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                      url('https://via.placeholder.com/1200x400?text=Banner+L%C3%A2n+S%C6%B0+R%E1%BB%93ng');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.btn-shop-now {
    display: inline-block; 
    background: #e67e22; 
    color: white; 
    text-decoration: none;
    padding: 15px 30px; 
    border-radius: 5px; 
    font-weight: bold; 
    transition: background 0.3s, transform 0.3s;
}

/* --- KHU VỰC SẢN PHẨM (Lưới nhiều cột) --- */
main.container {
    padding-top: 20px;
}

#products-section h2, #featured-products h2, #contact-form h2, #cart-content h2, #checkout-section h2 { 
    text-align: center; 
    margin-bottom: 30px; 
    color: #c0392b; 
}

.product-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; 
}

.product-item { 
    background: white; 
    padding: 20px; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    text-align: center; 
    transition: transform 0.3s; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
}

.product-item img { 
    width: 100%; 
    max-height: 200px; 
    object-fit: cover; 
    border-radius: 5px; 
    margin-bottom: 10px; 
}

.product-item p.price { 
    font-size: 1.1rem; 
    color: #e67e22; 
    font-weight: bold; 
    margin-bottom: 10px; 
}

.product-item button { 
    background: #27ae60; 
    color: white; 
    border: none; 
    padding: 10px 15px; 
    cursor: pointer; 
    border-radius: 5px; 
    transition: background 0.3s; 
    margin-top: 10px;
}

.center-btn { 
    margin-top: 30px; 
    text-align: center; 
}

.btn-all-products {
    display: inline-block; 
    background: #c0392b; 
    color: white; 
    text-decoration: none;
    padding: 10px 25px; 
    border-radius: 5px; 
    font-weight: bold; 
    transition: background 0.3s;
}

/* --- FORM LIÊN HỆ & CHUNG --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 15px;
    background: #e67e22; 
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

/* --- GIỎ HÀNG VÀ TÓM TẮT --- */
#cart-summary {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 30px;
}

#cart-summary h3 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #c0392b;
}

#cart-summary p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

#cart-summary p.total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #27ae60; 
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

/* Mục sản phẩm trong Giỏ Hàng */
.cart-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    margin-bottom: 10px;
}

.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.btn-remove {
    background: #e74c3c !important; 
    color: white !important;
    padding: 5px 10px !important;
    width: auto !important;
    margin: 0 !important;
}

/* --- TRANG THANH TOÁN --- */
.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; 
    gap: 30px;
    align-items: start;
}

.checkout-form-container {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.checkout-form-container h3, #order-summary-box h3 {
    color: #e67e22;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.btn-checkout-link {
    display: block;
    width: 100%;
    padding: 15px;
    background: #e67e22; 
    color: white;
    border-radius: 5px;
    font-size: 1.1rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 20px;
}

.btn-place-order {
    background: #c0392b !important;
    font-size: 1.2rem !important;
    margin-top: 20px;
}

#order-summary-box {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#checkout-cart-details {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

#checkout-cart-details .cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 10px 0;
    border-bottom: 1px dotted #ddd;
    align-items: center;
}

/* --- FOOTER --- */
footer { 
    background: #34495e; 
    color: white; 
    text-align: center; 
    padding: 1rem 0; 
    margin-top: 20px; 
}