/* รีเซ็ตเบื้องต้น */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* พื้นหลังไล่เฉดสีโทน #113974 */
body {
    background: linear-gradient(90deg, #f5444d, #da6369);
    line-height: 1.6;
    color: #fff;
}

header {
    background: linear-gradient(90deg, #f5444d, #b30009);
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.menu {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* ระยะห่างระหว่าง Logo และข้อความ */
}

.menu .logo {
    width: 40px; /* ขนาด Logo */
    height: 40px;
    object-fit: contain;
}

.campaign {
    background: linear-gradient(90deg, #f200a6, #da000d);
    color: white;
    padding: 2rem;
    text-align: center;
    margin: 20px 0;
    border-radius: 10px;
}

.campaign h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.campaign p {
    font-size: 1.2rem;
}

/* ส่วนแสดงสินค้า */
.products {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* การ์ดสินค้า */
.product-card {
    background-color: #580000;
    border: 1px solid #f10000;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    padding-bottom: 10px;
    color: #ffcaca;
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    background: #ff0623;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.product-card h3 {
    font-size: 1.1rem;
    color: #7c0007;
    padding: 10px;
    margin-bottom: 5px;
}

/* ราคา */
.product-card .price {
    font-size: 1rem;
    font-weight: bold;
    color: #e74c3c;
    margin: 5px 0;
}

/* ย่อหน้าอื่น ๆ ในการ์ด */
.product-card p {
    font-size: 0.95rem;
    color: #ffdfdf;
    margin: 5px 10px;
    text-align: left;
}

/* footer */
footer {
    background: linear-gradient(90deg, #b30009, #f5444d);
    color: white;
    padding: 1rem;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .campaign h1 {
        font-size: 1.5rem;
    }
    .campaign p {
        font-size: 1rem;
    }
    .menu .logo {
        width: 30px; /* ลดขนาด Logo บนมือถือ */
        height: 30px;
    }
    .menu {
        font-size: 20px; /* ลดขนาดตัวอักษรบนมือถือ */
    }
}