/* Base Styles & Variables */
:root {
    --primary-color: #FFDE51; /* สีหลัก CI: เหลืองทอง */
    --bg-color: #EBEBED; /* พื้นหลังสว่างตามที่ลูกค้าต้องการ */
    --surface-color: #ffffff; /* พื้นหลังของการ์ดและส่วนต่างๆ เป็นสีขาว */
    --text-color: #121212; /* เปลี่ยนสีข้อความหลักเป็นสีดำ/เทาเข้มเพื่อให้อ่านได้ */
    --text-muted: #666666; /* สีข้อความรองเป็นสีเทา */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Chakra Petch', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(235, 235, 237, 0.9); /* สีพื้นหลัง navbar แบบโปร่งแสง */
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* ขอบล่าง navbar สีเทาอ่อน */
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #121212; /* ตัวหนังสือสีดำทั้งหมด */
    background-color: var(--primary-color); /* พื้นหลังสีเหลือง */
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.logo span {
    color: #121212; /* เอาสีเหลืองที่ข้อความออกเป็นสีดำ */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    padding: 4rem 5%;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 5%;
    }
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero-text {
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2.2rem; /* ลดขนาดตัวอักษรบนมือถือ */
    }
    .hero-image {
        justify-content: center;
        margin-bottom: 2rem;
    }
    .hero-image img {
        max-height: 300px;
    }
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #121212; /* เปลี่ยนเป็นสีเข้มเพื่อให้อ่านง่ายบนพื้นสีเหลือง */
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 222, 81, 0.3); /* เปลี่ยนสีเงาให้เข้ากับสีเหลือง */
}

/* Products Section */
.products-section {
    padding: 5rem 5%;
}

.products-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

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

.product-card {
    background-color: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05); /* ขอบการ์ดสีเทาอ่อน */
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-price {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.btn-shopee {
    display: block;
    text-align: center;
    background-color: #ee4d2d; /* Shopee Color */
    color: white;
    padding: 0.8rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: opacity 0.3s;
}

.btn-shopee:hover {
    opacity: 0.9;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--surface-color);
    color: var(--text-muted);
    margin-top: 3rem;
}
