/* =========================================
   THEME: LUXURY / MODERN / CLEAN
   ========================================= */
:root {
    --primary-accent: #0f172a; /* Navy Blue เข้ม */
    --primary-hover: #334155;
    --secondary-accent: #c5a059; /* Gold / Bronze */
    --bg-body: #f8fafc; /* Light gray/white */
    --bg-card: #ffffff;
    --text-heading: #1e293b;
    --text-body: #64748b;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;
    --radius-card: 8px; /* ลดความมนลง */
    --radius-btn: 4px;
    --shadow-soft: 0 20px 40px rgba(0,0,0,0.06);
    --border-light: #eee;
    --brand-green: #28a745;
    --brand-red: #d32f2f;
    --brand-pink: #e91e63;
    --brand-blue: #004085;
    --brand-orange: #fd7e14;
    --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-body);
    line-height: 1.8; /* เพิ่มระยะห่างบรรทัดให้อ่านสบายตา */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased; /* ทำให้ตัวอักษรคมชัดบน Mac/iOS */
}

/* Global Selection Color */
::selection {
    background: var(--secondary-accent);
    color: white;
}

/* Typography Override */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    margin-top: 0;
    line-height: 1.2;
}

/* Utility: Text Gradient */
.text-gradient-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--secondary-accent); /* Fallback */
}

/* =========================================
   HEADER / NAV
   ========================================= */
header {
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.3); /* สีขาวโปร่งใสจางๆ */
    backdrop-filter: blur(5px); /* เพิ่มความเบลอให้พื้นหลัง */
    position: fixed;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.85); /* โปร่งแสงมากขึ้น */
    backdrop-filter: blur(12px); /* เอฟเฟกต์กระจกเบลอ */
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 10px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(197, 160, 89, 0.8); /* Gold Glow Text */
}

.logo img {
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
    transition: filter 0.3s ease;
}

.logo a:hover img {
    filter: drop-shadow(0 0 15px rgba(197, 160, 89, 0.8)); /* Gold Glow Image */
}

/* Menu Links */
.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    font-family: var(--font-heading);
    color: var(--text-heading); /* ปรับให้เข้มขึ้นสำหรับหน้าขาว */
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary-accent);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-accent);
}

.nav-link:hover::after {
    width: 100%;
}

/* Round Button Style */
.btn-quote {
    background-color: var(--secondary-accent);
    color: white;
    padding: 10px 24px;
    font-size: 13px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-quote:hover {
    transform: translateY(-3px) scale(1.05);
    background-color: var(--primary-accent);
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Button Icon Slide Effect */
.btn-quote i, .card-btn i, .btn-action i, .ingredient-item i {
    transition: transform 0.3s ease;
}
.btn-quote:hover i, .card-btn:hover i, .btn-action:hover i, .ingredient-item:hover i {
    transform: translateX(5px);
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-heading);
    margin-left: 20px;
    padding: 5px;
    transition: color 0.3s ease;
}
.mobile-toggle:hover {
    color: var(--primary-accent);
}
.mobile-toggle i {
    transition: transform 0.4s ease; /* ปรับให้หมุนนุ่มนวล */
}
.mobile-toggle.active i {
    transform: rotate(90deg); /* หมุน 90 องศา */
    color: var(--primary-accent);
}

/* =========================================
   HERO SECTION (Redesigned Layout)
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh; /* Full height */
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px; /* Space for header */
}

/* Decorative Wave in Background (Bottom) - Layer 1 */
.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffebee' fill-opacity='1' d='M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,224C672,245,768,267,864,261.3C960,256,1056,224,1152,197.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
    z-index: -1;
    pointer-events: none;
}

/* Decorative Wave in Background (Bottom) - Layer 2 */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 160px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffcdd2' fill-opacity='0.4' d='M0,128L48,154.7C96,181,192,235,288,240C384,245,480,203,576,186.7C672,171,768,181,864,202.7C960,224,1056,256,1152,245.3C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
    z-index: -2;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    width: 100%;
}

.hero-text {
    background: rgba(255, 235, 235, 0.85); /* สีชมพูอ่อนโปร่งแสง */
    backdrop-filter: blur(10px); /* เอฟเฟกต์กระจกฝ้าเบลอฉากหลัง */
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    animation: fadeInUp 1.2s ease-out forwards; /* เพิ่ม Animation ตอนโหลด */
}

.hero-text h1 {
    font-size: clamp(40px, 5vw, 64px); /* ปรับขนาดอัตโนมัติตามหน้าจอ */
    margin-bottom: 20px;
    text-shadow: 0 5px 20px rgba(0,0,0,0.15);
    color: var(--primary-accent);
}

.hero-text h1 span {
    color: var(--secondary-accent);
    text-shadow: 0 3px 15px rgba(0,0,0,0.2), 0 0 50px rgba(197, 160, 89, 0.6);
    animation: goldPulse 3s infinite ease-in-out;
}

.hero-text p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    max-width: 450px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Add subtle shadow */
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The circular image effect */
.hero-circle-img {
    width: 450px;
    height: 450px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 20px 0 0 rgba(0,0,0,0.02), -20px -20px 0 var(--secondary-accent); /* Decorative elements */
    background-color: #ddd;
    /* Placeholder background if image breaks */
    background-image: url('https://images.unsplash.com/photo-1544025162-d76694265947?ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&q=80'); 
    background-size: cover;
    background-position: center;
    animation: float 6s ease-in-out infinite;
    transition: opacity 0.5s ease-in-out;
}

/* Floating badge (like the user review in reference) */
.floating-badge {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: float 5s ease-in-out infinite;
    white-space: nowrap;
    z-index: 2;
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.85; /* ปรับความชัดของวิดีโอ (1.0 คือชัดสุด) */
}

/* Animation สำหรับ Hero Text */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes goldPulse {
    0%, 100% { text-shadow: 0 3px 15px rgba(0,0,0,0.2), 0 0 50px rgba(197, 160, 89, 0.6); }
    50% { text-shadow: 0 3px 15px rgba(0,0,0,0.2), 0 0 80px rgba(197, 160, 89, 1.0), 0 0 40px rgba(255, 255, 255, 0.5); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   FEATURES (Minimal Icons)
   ========================================= */
.features-bar {
    padding: 60px 0;
    background: #f8f9fa;
}

.features-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 14px;
    color: #888;
}

.feature-icon-circle {
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: var(--primary-accent);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.03);
}

.feature-item:hover .feature-icon-circle {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 20px 40px rgba(255, 104, 104, 0.3);
    background: var(--primary-accent);
    color: white;
}

/* =========================================
   PRODUCTS (The Cards)
   ========================================= */
.products-section {
    padding: 80px 0;
    background-color: transparent;
}

.section-header {
    text-align: left; /* Aligned left like reference sometimes, or center */
    margin-bottom: 50px;
    position: relative;
}

.section-header h2 {
    font-size: 48px;
}

.section-header p {
    color: var(--primary-accent);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 10px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 25px;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%; /* ให้การ์ดสูงเท่ากันในแถว */
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
}

.product-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: -60px auto 20px; /* Pull image up */
    border: 5px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-img-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.product-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-accent);
    font-weight: 600;
}

.product-desc {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
    min-height: 60px; /* consistent height */
}

.price-tag {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-heading);
    margin-bottom: 15px;
    display: block;
}

/* Star Rating fake */
.rating {
    color: var(--secondary-accent);
    font-size: 12px;
    margin-bottom: 10px;
}

/* Small Button for Card */
.card-btn {
    background: transparent;
    color: var(--secondary-accent);
    border: 1px solid var(--secondary-accent);
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.product-card:hover .card-btn {
    background: var(--secondary-accent);
    color: white;
}

/* =========================================
   MOBILE & RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    header {
        background: white;
        box-shadow: 0 5px 20px rgba(0,0,0,0.05);
        padding: 15px 0;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-bottom: 40px;
    }
    .hero-text { padding: 25px; } /* ลดขนาด Padding ในมือถือ */
    .hero-text p {
        margin: 0 auto 30px;
    }
    .hero-image-wrapper {
        order: -1; /* Image on top for mobile */
        margin-bottom: 30px;
        margin-top: 50px; /* ดันรูปภาพลงมาให้ห่างจากเมนู */
    }
    .hero-circle-img {
        width: 300px;
        height: 300px;
    }
    .hero::before {
        width: 100%;
        top: -50px;
        border-radius: 0 0 50% 50%;
    }
    .nav-menu { display: none; }
    .mobile-toggle { display: block; }
    .features-grid { flex-direction: column; gap: 30px; }
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu Drawer Style */
.mobile-menu-container {
    position: fixed;
    top: 0;
    right: -100%; /* ซ่อนไว้ทางขวา */
    left: auto !important; /* บังคับไม่ให้ติดซ้าย */
    width: 80%; /* ความกว้าง 80% ของหน้าจอ */
    max-width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95); /* พื้นหลังขาวเกือบทึบ (ตามหน้า Inquiry) */
    backdrop-filter: blur(10px); /* เอฟเฟกต์เบลอ */
    z-index: 2000; /* อยู่บนสุดแน่นอน (ทับ Header) */
    transition: right 0.4s ease; /* เลื่อนจากขวา */
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 80px; /* Space for close button area */
    box-shadow: -10px 0 30px rgba(0,0,0,0.1); /* เงาด้านซ้าย */
}
.mobile-menu-container.active { right: 0; } /* เลื่อนออกมา */

.mobile-menu-container .nav-link {
    color: var(--primary-accent);
    font-size: 20px; /* เพิ่มขนาดตัวหนังสือให้ใหญ่และชัดเจน */
    font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 10px;
}

.mobile-menu-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-accent);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.mobile-menu-close:hover {
    background: var(--secondary-accent);
    color: white;
    transform: rotate(90deg);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: white;
    color: var(--primary-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px); /* Animation เริ่มต้น */
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: none;
    padding: 0;
}
.back-to-top.show {
    opacity: 0.3; /* Faint when visible */
    visibility: visible;
    transform: translateY(0);
}
.back-to-top.show.idle-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}
.back-to-top:hover {
    opacity: 1; /* Fully visible on hover */
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    color: var(--secondary-accent);
}

/* Progress Ring */
.progress-ring {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    transform: rotate(-90deg); pointer-events: none;
}
.progress-ring circle {
    fill: transparent; stroke-width: 3;
}
.progress-ring-track { stroke: #f1f5f9; }
.progress-ring-bar {
    stroke: var(--secondary-accent);
    stroke-dasharray: 145; /* 2 * PI * 23 */
    stroke-dashoffset: 145;
    transition: stroke-dashoffset 0.1s;
    stroke-linecap: round;
}

/* Trusted Partners - Make grayscale and minimal */
.partner-section {
    padding: 40px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: 50px;
}
.partner-logo {
    opacity: 0.3;
    transition: 0.3s;
}
.partner-logo:hover { opacity: 1; }

/* Footer */
.modern-footer {
    background-color: var(--primary-accent);
    color: white;
    padding-top: 80px;
    padding-bottom: 30px;
    font-size: 15px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    text-align: left;
}

.footer-col h4 {
    color: var(--secondary-accent);
    font-size: 18px;
    margin-bottom: 25px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.footer-about p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--secondary-accent);
    transform: translateX(5px);
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.7);
}

.footer-contact i {
    color: var(--secondary-accent);
    font-size: 18px;
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}

/* =========================================
   CATALOG PAGE STYLES
   ========================================= */
.catalog-container {
    display: grid;
    grid-template-columns: 280px 1fr; /* Sidebar | Content */
    gap: 40px;
    padding: 120px 0 80px; /* เพิ่ม padding-top สำหรับ Fixed Header */
}

/* SIDEBAR */
.sidebar {
    background: rgba(255, 255, 255, 0.6); /* สีขาวโปร่งแสง */
    backdrop-filter: blur(10px); /* เอฟเฟกต์กระจกฝ้า */
    padding: 30px;
    border-radius: var(--radius-card);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.mobile-cat-toggle {
    display: none;
}

/* Mobile Sidebar (Horizontal Scroll) */
@media (max-width: 900px) {
    .catalog-container {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 10px;
    }
    .sidebar {
        position: static;
        display: block;
        width: auto;
        padding: 0;
        margin: 0;
        background: transparent;
        box-shadow: none;
        z-index: auto;
    }
    
    .search-box {
        margin-bottom: 15px;
        background: white;
        border-radius: 50px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        z-index: 2;
    }
    .search-input {
        border-radius: 50px;
        border: 1px solid #eee;
        padding: 15px 20px 15px 50px;
    }
    .search-icon { left: 20px; }

    /* Sticky Category Bar */
    .filter-group {
        position: static;
        background: transparent;
        padding: 0;
        margin: 0 0 20px 0;
        width: auto;
        box-shadow: none;
        border: none;
    }
    .filter-group h3 { display: none; }

    .mobile-cat-toggle {
        display: block;
        width: 100%;
        padding: 12px;
        background: white;
        border: 1px solid #eee;
        border-radius: 50px;
        color: var(--text-heading);
        font-family: var(--font-body);
        font-weight: 600;
        margin-bottom: 15px;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .category-list {
        display: none;
        gap: 10px;
        padding-bottom: 0;
    }
    .category-list.show {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    /* Stagger Animation for Categories */
    .category-list.show .category-item {
        animation: slideInDown 0.4s ease forwards;
        opacity: 0;
    }
    .category-list.show .category-item:nth-child(1) { animation-delay: 0.05s; }
    .category-list.show .category-item:nth-child(2) { animation-delay: 0.1s; }
    .category-list.show .category-item:nth-child(3) { animation-delay: 0.15s; }
    .category-list.show .category-item:nth-child(4) { animation-delay: 0.2s; }
    .category-list.show .category-item:nth-child(5) { animation-delay: 0.25s; }
    .category-list.show .category-item:nth-child(6) { animation-delay: 0.3s; }
    .category-list.show .category-item:nth-child(n+7) { animation-delay: 0.35s; }

    .category-list::-webkit-scrollbar { display: none; }
    
    .category-item {
        background: white;
        padding: 10px 25px;
        border-radius: 50px;
        border: 1px solid #eee;
        font-size: 14px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.02);
        justify-content: center;
    }
    .category-item.active {
        background: var(--primary-accent);
        color: white;
        border-color: var(--primary-accent);
        box-shadow: 0 4px 10px rgba(255, 104, 104, 0.3);
    }
    .category-item::before { display: none; }
    .category-count { display: none; }

    .logo a span { display: none; }
    .nav-bar .btn-quote { 
        padding: 8px 15px; /* ปรับขนาดปุ่มให้เล็กลงสำหรับมือถือ */
        font-size: 13px;
    }
    .sort-dropdown { display: none; }
    
    /* Mobile Grid 1 Column */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .card-image-wrapper { height: 260px; }
    .card-content { padding: 20px; }
    .product-grid .product-title { font-size: 18px; min-height: auto; margin-bottom: 10px; }
    .specs-container { padding: 10px; gap: 5px; }
    .spec-row { font-size: 12px; }
}

/* Keyframes for Stagger Animation */
@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-box {
    position: relative;
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: #F9F9F9;
    font-family: var(--font-body);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.filter-group h3 {
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--bg-body);
    padding-bottom: 10px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    padding: 12px 0;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    color: #666;
    font-weight: 500;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 8px;
}

.category-item::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #ddd;
    border-radius: 50%;
    margin-right: 15px;
    transition: 0.3s;
}

.category-count {
    margin-left: auto;
    font-size: 12px;
    background: #f0f0f0;
    color: #888;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.3s;
}

.category-item:hover .category-count {
    background: var(--secondary-accent);
    color: white;
}

.category-item.active {
    background-color: var(--primary-accent);
    color: white;
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.2);
}

.category-item.active .category-count {
    background: white;
    color: var(--primary-accent);
}

.category-item:hover {
    color: var(--primary-accent);
    background-color: #f1f5f9;
}

.category-item:hover::before {
    background-color: var(--secondary-accent);
    transform: scale(1.2);
}
.category-item.active::before {
    background-color: var(--secondary-accent);
    box-shadow: 0 0 5px var(--secondary-accent);
}

/* CATALOG CONTENT */
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.sort-dropdown {
    padding: 8px 15px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: #555;
    background: white;
    font-family: var(--font-body);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    align-items: stretch;
}

/* Override .product-card for Catalog Grid */
.product-grid .product-card {
    padding: 0; /* Remove padding for full-width image */
    align-items: stretch; /* Reset alignment */
    text-align: left;
    opacity: 0; /* ซ่อนก่อนเริ่ม Animation */
    animation: fadeInUp 0.8s ease-out forwards;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

/* Stagger Animation (ให้การ์ดลอยขึ้นมาทีละใบ) */
.product-grid .product-card:nth-child(1) { animation-delay: 0.05s; }
.product-grid .product-card:nth-child(2) { animation-delay: 0.1s; }
.product-grid .product-card:nth-child(3) { animation-delay: 0.15s; }
.product-grid .product-card:nth-child(4) { animation-delay: 0.2s; }
.product-grid .product-card:nth-child(5) { animation-delay: 0.25s; }
.product-grid .product-card:nth-child(6) { animation-delay: 0.3s; }
.product-grid .product-card:nth-child(n+7) { animation-delay: 0.35s; }

.card-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.product-card:hover {
    border-color: var(--primary-accent);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.1);
}
.product-card:hover .card-image { transform: scale(1.1); }

.badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

.badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.badge.premium { background: var(--primary-accent); color: white; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.badge.stock { background: #28a745; color: white; }
.badge.choice { background: var(--secondary-accent); color: white; }
.badge.lamb-rack { background: #673AB7; color: white; }
.badge.salmon-type { background: var(--brand-orange); color: white; }

.brand-logo {
    position: absolute;
    top: 10px;
    right: 10px;
    height: 35px;
    width: auto;
    object-fit: contain;
    z-index: 10;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
}

.country-flag {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 30px;
    height: auto;
    z-index: 10;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.text-brand {
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.text-brand-green { color: var(--brand-green); }
.text-brand-red { color: var(--brand-red); }
.text-brand-pink { color: var(--brand-pink); }
.text-brand-blue { color: var(--brand-blue); }

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-grid .product-title {
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 45px;
}

.specs-container {
    background: #F9F9F9;
    border-radius: 10px;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
}
.spec-row:last-child { border-bottom: none; padding-bottom: 0; }

/* Action Row for Product Card */
.card-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-btn);
    overflow: hidden;
}

.qty-btn {
    background: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-body);
    transition: 0.2s;
}
.qty-btn:hover { background: #f1f5f9; color: var(--primary-accent); }

.qty-input {
    width: 30px;
    text-align: center;
    border: none;
    font-size: 13px;
    color: var(--text-heading);
    outline: none;
    font-family: var(--font-body);
}

.btn-add-quote {
    flex-grow: 0;
    margin-top: auto;
    background: var(--primary-accent);
    color: white;
    border: none;
    padding: 8px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-add-quote:hover {
    background: var(--secondary-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-details {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: white;
    color: var(--text-body);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}
.btn-details:hover { 
    border-color: var(--primary-accent); 
    color: var(--primary-accent); 
}

@media (max-width: 900px) {
    .catalog-container { grid-template-columns: 1fr; }
    .sidebar { position: static; margin-bottom: 30px; }
    .logo a span { display: none; }
    .card-image-wrapper { height: 300px; }
}

/* Autocomplete Dropdown */
.autocomplete-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    background: white;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
}
.autocomplete-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    color: #555;
    transition: background 0.2s;
}
.autocomplete-item:last-child {
    border-bottom: none;
}
.autocomplete-item:hover {
    background-color: #f9f9f9;
    color: var(--primary-accent);
}
.autocomplete-item strong {
    color: var(--primary-accent);
}

/* Fade In Animation for Filtering */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Inspiration Section */
.inspiration-section {
    padding: 80px 0;
    background-color: #fff;
}

.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.inspiration-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.inspiration-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.inspiration-item:hover img {
    transform: scale(1.1);
}

.inspiration-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.inspiration-item:hover .inspiration-overlay {
    transform: translateY(0);
    opacity: 1;
}

.inspiration-overlay h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.ingredient-tag {
    display: inline-block;
    background: var(--primary-accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Recipe Modal */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s;
}
.modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.modal.show .modal-content { transform: translateY(0); }

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h2 { margin: 0; font-size: 24px; }
.close-modal { font-size: 28px; color: #aaa; cursor: pointer; transition: 0.2s; }
.close-modal:hover { color: var(--primary-accent); }

.modal-body { padding: 30px; display: flex; gap: 30px; }
.modal-img { width: 40%; border-radius: 10px; object-fit: cover; height: 300px; }
.modal-info { width: 60%; }

.ingredient-list { list-style: none; padding: 0; margin-top: 20px; }
.ingredient-item {
    display: flex; align-items: center; padding: 10px;
    border: 1px solid #eee; border-radius: 10px; margin-bottom: 10px;
    transition: 0.2s; text-decoration: none; color: var(--text-body);
}
.ingredient-item:hover { border-color: var(--primary-accent); background: #fff8f8; }
.ingredient-thumb { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; margin-right: 15px; }

@media (max-width: 768px) {
    .modal-body { flex-direction: column; }
    .modal-img { width: 100%; height: 200px; }
    .modal-info { width: 100%; }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed; 
    bottom: 30px; 
    left: 30px; /* ย้ายมาซ้ายล่าง ไม่ทับ Back to Top ขวาล่าง */
    width: 350px; /* ขนาดกะทัดรัด */
    background: white; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 25px; 
    z-index: 10000; 
    border-radius: 12px;
    border-left: 5px solid var(--secondary-accent);
    transform: translateY(150%); /* ซ่อนลงไปข้างล่าง */
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.cookie-banner.show { transform: translateY(0); }

.cookie-content h4 { margin: 0 0 5px; color: var(--primary-accent); font-size: 16px; }
.cookie-content p { margin: 0; font-size: 13px; color: #666; line-height: 1.5; }
.cookie-content a { color: var(--secondary-accent); text-decoration: none; font-weight: 600; }

.cookie-actions { display: flex; gap: 10px; margin-top: 5px; }

.cookie-btn {
    flex: 1; padding: 10px; border-radius: 6px; cursor: pointer;
    font-weight: 600; font-size: 13px; transition: 0.2s; border: none;
}
.cookie-btn.accept { background: var(--primary-accent); color: white; }
.cookie-btn.accept:hover { background: var(--secondary-accent); }
.cookie-btn.decline { background: #f1f5f9; color: #64748b; }
.cookie-btn.decline:hover { background: #e2e8f0; color: #333; }

@media (max-width: 768px) {
    .cookie-banner { left: 20px; right: 20px; bottom: 20px; width: auto; }
}