/* ===== ตั้งค่าทั่วไป ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7fc;
    color: #333;
}

/* ===== Header / เมนู ===== */
header {
    background-color: #1a3a5c;
    color: white;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 28px;
    font-weight: bold;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
    transition: 0.3s;
}

nav a:hover {
    color: #ffcc00;
}

/* ===== ปุ่ม ===== */
.btn {
    background-color: #ff6b00;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.btn:hover {
    background-color: #e85d00;
    transform: scale(1.05);
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #b02a37;
}

/* ===== แบนเนอร์ ===== */
.hero {
    background: linear-gradient(135deg, #1a3a5c, #2a5f7a);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* ===== สินค้า ===== */
.featured, .products-page {
    padding: 40px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.featured h2, .products-page h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    color: #1a3a5c;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    background-color: #eee;
}

.product-card h3 {
    margin: 15px 0 8px;
    font-size: 20px;
}

.product-card .price {
    color: #ff6b00;
    font-size: 22px;
    font-weight: bold;
    margin: 10px 0 15px;
}

.product-card button {
    background-color: #1a3a5c;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.product-card button:hover {
    background-color: #ff6b00;
}

/* ===== หน้า Cart ===== */
.cart-page {
    padding: 40px 50px;
    max-width: 800px;
    margin: 0 auto;
}

.cart-page h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #1a3a5c;
}

#cart-items {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    min-height: 100px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

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

.cart-summary {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cart-summary h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.cart-summary .btn {
    margin: 5px;
}

/* ===== Footer ===== */
footer {
    background-color: #1a3a5c;
    color: #aaa;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}