/* --- Global Styles --- */
:root {
    --primary-color: #81a681;
    --secondary-color: #f4f4f4;
    --dark-text-color: #333;
    --light-text-color: #fff;
    --font-family: 'Noto Sans Thai', sans-serif; /* <-- แก้ไขเป็นฟอนต์ใหม่ */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-text-color);
}

/* --- Header & Navigation --- */
header {
    background-color: rgba(255, 255, 255, 0.9);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* --- Parallax Effect --- */
.parallax {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-text-color);
    text-align: center;
}

#banner {
    background-image: url('https://images.unsplash.com/photo-1520854221256-17451cc331bf?q=80&w=2070&auto=format&fit=crop');
    min-height: 100vh;
}

#recommend {
    background-image: url('https://images.unsplash.com/photo-1565873132338-a1a7c5a23272?q=80&w=1974&auto=format&fit=crop');
    min-height: 80vh; /* ปรับความสูงตามความเหมาะสม */
    padding: 6rem 0;
}

/* Overlay for better text readability on parallax backgrounds */
.parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.banner-content, .recommend-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    width: 100%;
}

.banner-content h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.banner-content p {
    font-size: 1.5rem;
}

/* --- Content Sections --- */
.content-section {
    padding: 6rem 5%;
    background-color: #fff;
}

.content-section:nth-of-type(even) {
     background-color: var(--secondary-color);
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.product-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.product-card h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.2rem;
}

.product-card .price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* --- Recommend Section Content --- */
.recommend-content h2 {
    color: var(--light-text-color);
}

.product-card-recommend {
    background-color: rgba(255, 255, 255, 0.98);
    color: var(--dark-text-color);
    width: 100%;
    max-width: 450px; /* จำกัดความกว้างของการ์ด */
    margin: 0 auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: center;
}

.product-card-recommend img {
     width: 100%;
     border-radius: 5px;
     margin-bottom: 1rem;
}

.product-card-recommend h3 {
    margin-bottom: 0.5rem;
}
.product-card-recommend p {
    margin-bottom: 1rem;
}

/* --- Swiper Carousel Customization --- */
.swiper {
    width: 100%;
    max-width: 600px; /* ขนาดของ carousel container */
    padding-top: 20px;
    padding-bottom: 50px; /* เพิ่มพื้นที่สำหรับ pagination dots */
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ปรับสีปุ่มและจุดให้เข้ากับธีม */
.swiper-button-next,
.swiper-button-prev {
    color: var(--light-text-color) !important; /* ใช้สีขาวเพื่อให้เด่นบนพื้นหลัง */
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 1;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.7) !important;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color) !important;
}


/* --- Contact Section --- */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
}

.contact-info, .map-container {
    flex: 1;
    min-width: 320px;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info p i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px; /* Align icons */
}

.contact-info a {
    color: var(--dark-text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.social-icons {
    margin-top: 1.5rem;
}

.social-icons a {
    font-size: 1.8rem;
    margin-right: 15px;
    color: var(--dark-text-color);
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.opening-hours {
    margin-top: 2rem;
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.opening-hours h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    border: none;
}

/* --- Footer --- */
footer {
    background-color: #333;
    color: var(--light-text-color);
    text-align: center;
    padding: 1.5rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    nav ul {
        padding-top: 0.5rem;
    }
    
    nav ul li {
        margin: 0 1rem;
    }

    .banner-content h1 {
        font-size: 2.5rem;
    }

    .banner-content p {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .product-card-recommend {
        max-width: 90%;
    }
}