/*
====================================
MAX GRAINTA - PREMIUM PISTACHIO MILK
Design System Implementation
====================================
*/

/* ========== CSS VARIABLES ========== */
:root {
    /* Primary Colors (from Logo) */
    --color-pistachio-light: #9BC76D;
    --color-pistachio: #8BB960;
    --color-pistachio-dark: #6FA54A;

    --color-teal-light: #7DCDC4;
    --color-teal: #5CB8AF;
    --color-teal-dark: #4A9D95;

    --color-coral-light: #F2A6A1;
    --color-coral: #E8938D;
    --color-coral-dark: #D77F79;

    --color-brown-light: #A58968;
    --color-brown: #8B6F4A;
    --color-brown-dark: #6B5437;

    /* Neutral Colors */
    --color-white: #FFFFFF;
    --color-off-white: #FDFDFB;
    --color-cream-light: #FAF8F4;
    --color-cream-medium: #F5F3EE;
    --color-warm-gray: #E8E6E1;

    /* Text Colors */
    --color-text-primary: #2C2418;
    --color-text-secondary: #5A4E3F;
    --color-text-tertiary: #8B7F6F;
    --color-text-placeholder: #B8AFA3;

    /* Border Colors */
    --color-border-light: #E8E6E1;
    --color-border-medium: #D4D0C9;
    --color-border-strong: #A8A39A;

    /* CTA Colors */
    --color-line: #06C755;
    --color-line-hover: #05B34B;
    --color-phone: #4A90E2;
    --color-phone-hover: #357ABD;

    /* Semantic Colors */
    --color-success: #6FA54A;
    --color-warning: #FFC107;
    --color-error: #DC3545;
    --color-info: #5CB8AF;

    /* Typography */
    --font-primary: 'Prompt', sans-serif;
    --font-secondary: 'Poppins', sans-serif;

    /* Font Sizes - Desktop */
    --fs-h1: 54px;
    --fs-h2: 40px;
    --fs-h3: 28px;
    --fs-h4: 22px;
    --fs-h5: 18px;
    --fs-body-lg: 18px;
    --fs-body: 16px;
    --fs-body-sm: 16px;
    --fs-caption: 12px;

    /* Spacing (8px Grid) */
    --space-0: 0;
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-7: 56px;
    --space-8: 64px;
    --space-10: 80px;
    --space-12: 96px;
    --space-16: 128px;
    --space-20: 160px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 50px;
    --radius-circle: 50%;

    /* Shadows */
    --shadow-1: 0 2px 8px rgba(44, 36, 24, 0.06);
    --shadow-2: 0 4px 12px rgba(44, 36, 24, 0.08);
    --shadow-3: 0 8px 24px rgba(44, 36, 24, 0.12);
    --shadow-4: 0 12px 32px rgba(44, 36, 24, 0.16);
    --shadow-5: 0 20px 48px rgba(44, 36, 24, 0.24);
    --shadow-line: 0 4px 12px rgba(6, 199, 85, 0.25);
    --shadow-phone: 0 4px 12px rgba(74, 144, 226, 0.25);
    --shadow-pistachio: 0 8px 24px rgba(139, 185, 96, 0.3);

    /* Transitions */
    --transition-fast: all 0.2s ease-in-out;
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Container */
    --container-max: 1200px;
    --container-padding: 48px;
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-body);
    line-height: 1.7;
    color: var(--color-text-secondary);
    background-color: var(--color-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

ul {
    list-style: none;
}

/* ========== BOOTSTRAP CONTAINER OVERRIDE ========== */
/* Override Bootstrap container to match smetohub.com layout */
.container,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    max-width: 1320px !important;
    width: 95% !important;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
    font-weight: 600;
}

h4 {
    font-size: var(--fs-h4);
    font-weight: 600;
}

h5 {
    font-size: var(--fs-h5);
    font-weight: 500;
}

/* ========== LAYOUT ========== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-10) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.section-title {
    font-size: var(--fs-h2);
    margin-bottom: var(--space-2);
}

.section-subtitle {
    font-size: var(--fs-body-lg);
    color: var(--color-text-tertiary);
    font-weight: 400;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    padding: 16px 40px;
    font-size: var(--fs-body);
    /*font-weight: 600;*/
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--color-line);
    color: var(--color-white);
    box-shadow: var(--shadow-line);
}

.btn-primary:hover {
    background: var(--color-line-hover);
    box-shadow: 0 6px 16px rgba(6, 199, 85, 0.35);
}

.btn-secondary {
    background: var(--color-phone);
    color: var(--color-white);
    box-shadow: var(--shadow-phone);
}

.btn-secondary:hover {
    background: var(--color-phone-hover);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.35);
}

.btn-outline {
    background: #99cb50;
    color: var(--color-white);
    border: 2px solid #99cb50;
}

.btn-outline:hover {
    background: transparent;
    color: #99cb50;
    border: 2px solid #99cb50;
}

.btn-lg {
    padding: 18px 48px;
    font-size: var(--fs-body-lg);
}

.btn-sm {
    padding: 12px 28px;
    font-size: var(--fs-body-sm);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    font-size: 20px;
}

/* Social Buttons (from smetohub.com style) */
.social-button {
    color: #fff;
    text-decoration: none;
    /*padding-right: 17px;*/
    margin-left: 10px;
    border: 2px solid #fff;
    border-radius: 50px;
    font-size: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 45px;
    transition: all 0.3s ease;
}

.social-button-phone,
.social-button-phone:hover {
    background: #a77746;
    /*padding-left: 4px;*/
}

.social-button-phone:hover {
    border-color: #a77746;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 74, 172, 0.3);
}

.social-button-phone .btn-icon {
    width: 35px;
    height: 35px;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 25px;
    padding: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-button-phone i {
    transform: scaleX(-1);
}

.social-button-line,
.social-button-line:hover {
    background: #00c300;
}

.social-button-line:hover {
    border-color: #00c300;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 195, 0, 0.3);
}

.social-button .btn-icon {
    margin-right: 0px;
    color: #fff;
}

.social-button .btn-icon i {
    color: #fff;
}

.social-button-line .btn-icon {
    font-size: 28px;
}

/* ========== HEADER ========== */
.header-main {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--color-white);
    width: 100%;
}

/* Header Top Bar (สีเขียวอ่อน) */
.header-top {
    background: #fff3bf;
    padding: 15px 20px 10px 20px ;
    position: relative;
	border-bottom: 10px solid;
	border-image: linear-gradient(120deg, #f6a0a1 8%, #a57640 20%, #a57640 55%, #99cb50 75%, #f4d90c 92%) 1;
    /*border-bottom: 7px solid;
    border-image: linear-gradient(120deg, #f6a0a1 1%, #a57640 45%, #99cb50 70%, #f4d90c 90%) 1;*/
	/*border-image: linear-gradient(120deg, #a57640 45%, #99cb50 70%, #f4d90c 90%) 1;*/
	background-repeat: repeat-x;
}

.header-top::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(120deg, #a57640 35%, #99cb50 70%, #f4d90c 100%);
    filter: blur(8px);
    opacity: 0.6;
    z-index: -1;
}

/* Sticky Header (แสดงเวลาเลื่อน scroll bar) */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    background: var(--color-white);
    visibility: hidden;
    transform: translateY(-100%);
    transition: transform 0.5s ease, visibility 0.5s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sticky-header.scrolled {
    visibility: visible;
    transform: translateY(0);
}

.sticky-header .navbar {
    padding: 12px 0;
}

.header-top-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.header-logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.header-contact {
    color: var(--color-white);
}

.header-line {
    color: var(--color-white);
    margin-left: auto;
}

.contact-icon,
.line-icon {
    width: 45px;
    height: 45px;
    background: #99cb50;
	color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.contact-icon i {
    transform: scaleX(-1);
}

.contact-label,
.line-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
	color: #9d7142;
    /*text-shadow:
        2px 2px 4px #269f8e,
        -1px -1px 2px rgba(255, 255, 255, 0.3);*/
}

.contact-value,
.line-value {
    font-size: 16px;
    font-weight: 600;
	color: #9d7142;
    /*text-shadow:
        2px 2px 4px #269f8e,
        -1px -1px 2px rgba(255, 255, 255, 0.3);*/
}

.header-logo {
    height: 85px;
    width: auto;
}

.logo-link {
    display: inline-block;
}

/* Header Navigation Bar */
.header-nav {
    padding: 12px 0;
    background: var(--color-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 35px;
    height: 35px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #89d0be;
    color: var(--color-white);
    transform: translateY(-2px);
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu .nav-item {
    list-style: none;
}

.nav-menu .nav-link {
    color: #666;
    font-weight: 500;
    font-size: 18px;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
    color: #89d0be;
}

.nav-menu .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
   /*background: #89d0be;*/
}

.search-icon {
    width: 35px;
    height: 35px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-icon:hover {
    background: #89d0be;
    color: var(--color-white);
}

/* Mobile */
.mobile-logo {
    height: 40px;
    width: auto;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 28px;
    height: 28px;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--color-white);
    z-index: 2000;
    padding: var(--space-4);
    transition: var(--transition-normal);
    overflow-y: auto;
    box-shadow: var(--shadow-5);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.mobile-logo {
    height: 40px;
}

.close-menu {
    font-size: 32px;
    color: var(--color-text-primary);
    line-height: 1;
}

.mobile-nav-list {
    margin-bottom: var(--space-4);
}

.mobile-nav-link {
    display: block;
    padding: var(--space-2);
    font-weight: 500;
    color: var(--color-text-primary);
    border-bottom: 1px solid var(--color-border-light);
}

.mobile-nav-link:hover {
    color: var(--color-pistachio);
    background: var(--color-cream-light);
}

.mobile-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-10) var(--space-6);
    padding-top: 200px;
    background: linear-gradient(135deg, var(--color-pistachio), var(--color-pistachio-dark)),
                url('../images/banner/hero-banner.jpg') center/cover no-repeat;
}

.hero:has(img.hero-title) {
    padding: 0;
    padding-top: 120px;
    min-height: auto;
}

/* Responsive margin for hero on mobile */
@media (max-width: 767px) {
    .hero {
        padding-top: 140px;
    }

    .hero:has(img.hero-title) {
        padding-top: 70px;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-content:has(img.hero-title) {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero-title {
    color: var(--color-white);
    margin-bottom: var(--space-3);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-title img,
img.hero-title {
    width: 100%;
    height: auto;
    max-width: none;
    display: block;
    margin: 0;
    padding: 0;
}

.hero-subtitle {
    font-size: var(--fs-body-lg);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-3);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
}

.hero-feature {
    font-size: var(--fs-body);
    font-weight: 500;
    color: var(--color-white);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

/* ========== PRODUCTS SECTION ========== */
.products-section {
    background: var(--color-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
}

.product-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-1);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-3);
    border-color: var(--color-pistachio);
}

.product-card.featured {
    border: 2px solid var(--color-pistachio);
}

.product-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--color-cream-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    padding: 6px 12px;
    background: var(--color-pistachio);
    color: var(--color-white);
    font-size: var(--fs-body-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.product-badge.featured {
    background: var(--color-coral);
}

.product-content {
    padding: var(--space-3);
}

.product-title {
    font-size: var(--fs-h3);
    margin-bottom: var(--space-1);
}

.product-subtitle {
    font-size: var(--fs-body);
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-2);
}

.product-description {
    font-size: var(--fs-body);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-3);
    min-height: 80px;
}

/* Pistachio Product Specific Styles */
.product-title.pistachio {
    color: #ffffff;
    text-shadow:
        2px 2px 4px #269f8e,
        -1px -1px 0 #269f8e,
        1px -1px 0 #269f8e,
        -1px 1px 0 #269f8e,
        1px 1px 0 #269f8e,
        3px 3px 8px #269f8e;
    letter-spacing: 1px;
}

.product-subtitle.pistachio {
    color: #ffffff;
    text-shadow:
        2px 2px 4px #269f8e,
        -1px -1px 0 #269f8e,
        1px -1px 0 #269f8e,
        -1px 1px 0 #269f8e,
        1px 1px 0 #269f8e,
        3px 3px 8px #269f8e;
    font-weight: 600;
    font-size: 32px;
}

.product-description.pistachio {
    color: #2d2d2d;
    font-weight: 500;
}

.btn-pistachio {
    color: #2d2d2d;
    background-color: #ffffff;
    font-weight: 600;
}

.btn-pistachio:hover {
    display: inline-block;
    color: #2d2d2d;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    border-color: #2d2d2d;
    background-color: var(--bs-btn-bg);
    transition: color .15s 
}

/* Macadamia Product Specific Styles */
.product-title.macadamia {
    color: #ffffff;
    text-shadow:
        2px 2px 4px #dd9c24,
        -1px -1px 0 #dd9c24,
        1px -1px 0 #dd9c24,
        -1px 1px 0 #dd9c24,
        1px 1px 0 #dd9c24,
        3px 3px 8px #dd9c24;
    letter-spacing: 1px;
}

.product-subtitle.macadamia {
    color: #ffffff;
    text-shadow:
        2px 2px 4px #dd9c24,
        -1px -1px 0 #dd9c24,
        1px -1px 0 #dd9c24,
        -1px 1px 0 #dd9c24,
        1px 1px 0 #dd9c24,
        3px 3px 8px #dd9c24;
    font-weight: 600;
    font-size: 32px;
}

.product-description.macadamia {
    color: #2d2d2d;
    font-weight: 500;
}

.btn-macadamia {
    color: #2d2d2d;
    background-color: #ffffff;
    font-weight: 600;
}

.btn-macadamia:hover {
    display: inline-block;
    color: #2d2d2d;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    border-color: #2d2d2d;
    background-color: var(--bs-btn-bg);
    transition: color .15s 
}

/* Almond Product Specific Styles */
.product-title.almond {
    color: #ffffff;
    text-shadow:
        2px 2px 4px #dd3d59,
        -1px -1px 0 #dd3d59,
        1px -1px 0 #dd3d59,
        -1px 1px 0 #dd3d59,
        1px 1px 0 #dd3d59,
        3px 3px 8px #dd3d59;
    letter-spacing: 1px;
}

.product-subtitle.almond {
    color: #ffffff;
    text-shadow:
        2px 2px 4px #dd3d59,
        -1px -1px 0 #dd3d59,
        1px -1px 0 #dd3d59,
        -1px 1px 0 #dd3d59,
        1px 1px 0 #dd3d59,
        3px 3px 8px #dd3d59;
    font-weight: 600;
    font-size: 32px;
}

.product-description.almond {
    color: #2d2d2d;
    font-weight: 500;
}

.btn-almond {
    background-color: #ffffff;
    color: #2d2d2d;
    font-weight: 600;
}

.btn-almond:hover {
    display: inline-block;
    color: #2d2d2d;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    border-color: #2d2d2d;
    background-color: var(--bs-btn-bg);
    transition: color .15s 
}


/* ========== CTA SECTIONS ========== */
.cta-section {
    text-align: center;
    padding: 60px 0;
}

.cta-gradient {
    background: linear-gradient(rgb(138 205 188 / 6%), rgb(138 205 188 / 1%)), url(../images/banner/banner-pistachio2.jpg);
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--color-white);
}

.cta-title {
    font-size: 32px;
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.cta-divider {
    width: 80px;
    height: 3px;
    background: var(--color-white);
    margin: 0 auto var(--space-5);
}

.cta-methods {
    display: flex;
    justify-content: center;
    gap: var(--space-10);
    flex-wrap: wrap;
}

.cta-method {
    text-align: center;
}

.cta-icon {
    width: 60px;
    height: 60px;
    background: var(--color-white);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto var(--space-2);
}

.cta-icon i {
    color: #00B900;
}

.cta-icon .fa-phone-alt {
    color: #a77746;
    transform: scaleX(-1);
}

.fa-suitcase-rolling {
    color: #ffffff;
}

.cta-method-title {
    font-size: var(--fs-h4);
    color: #2c2418;
    margin-bottom: var(--space-1);
}

.cta-method-text {
    font-size: var(--fs-body);
    color: #2c2418;
    margin-bottom: var(--space-3);
}

/* CTA Gradient - สีตัวอักษรเป็นน้ำตาลเข้ม */
.cta-gradient .cta-title {
    color: #2c2418;
}

.cta-gradient .cta-method-title {
    color: #2c2418;
}

.cta-gradient .cta-method-text {
    color: #2c2418;
}

/* CTA Simple */
.cta-simple {
    background: linear-gradient(rgb(138 205 188 / 6%), rgb(138 205 188 / 1%)), url(../images/banner/banner-mac2.jpg);
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--color-white);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    padding: 60px 0;
}

.cta-simple .cta-title {
    color: var(--color-text-primary);
    font-size: 32px;
    margin-bottom: var(--space-3);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* CTA Callout */
.cta-callout {
    background: #fff3bf;
    padding: var(--space-6) 0;
}

.cta-callout-box {
    /*background: linear-gradient(135deg, #41a99e 0%, #9ac653 100%);*/
	background: #8acdbc;
    color: var(--color-white);
    padding: var(--space-6) var(--space-5);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-3);
}

.cta-callout .cta-title {
    margin-bottom: var(--space-4);
    text-shadow:
        2px 2px 4px #269f8e,
        -1px -1px 0 #269f8e,
        1px -1px 0 #269f8e,
        -1px 1px 0 #269f8e,
        1px 1px 0 #269f8e,
        3px 3px 8px #269f8e;
}

/* CTA Final */
.cta-final {
    background: linear-gradient(rgb(138 205 188 / 6%), rgb(138 205 188 / 1%)), url(../images/banner/banner-alm.jpg);
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--color-white);
    padding: 60px 0;
}

.cta-final-content {
    max-width: 900px;
    margin: 0 auto;
}

.cta-subtitle {
    font-size: var(--fs-body-lg);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
}

/* CTA Final - สีตัวอักษรเป็นน้ำตาลเข้ม */
.cta-final .cta-title {
    color: #2c2418;
}

.cta-final .cta-subtitle {
    color: #2c2418;
}

.cta-methods-large {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
    margin-bottom: var(--space-6);
}

.cta-method-large {
    text-align: center;
}

.cta-icon-large {
    width: 100px;
    height: 100px;
    background: var(--color-white);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto var(--space-3);
    box-shadow: var(--shadow-2);
}

.cta-method-title-large {
    font-size: var(--fs-h3);
    color: var(--color-white);
    margin-bottom: var(--space-2);
}

.cta-method-text-large {
    font-size: var(--fs-body-lg);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-3);
}

.qr-code {
    text-align: center;
    margin-top: var(--space-6);
}

.qr-code img {
    width: 200px;
    height: 200px;
    margin: 0 auto var(--space-2);
    background: var(--color-white);
    padding: var(--space-2);
    border-radius: var(--radius-lg);
}

.qr-code p {
    font-size: var(--fs-body);
    color: rgba(255, 255, 255, 0.9);
}

/* ========== WHY SECTION ========== */
.why-section {
    background: var(--color-cream-light);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.why-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-3);
    text-align: center;
    transition: var(--transition-normal);
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
}

.why-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-pistachio), var(--color-pistachio-dark));
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto var(--space-3);
}

.why-icon i {
    color: #ffffff;
}

.why-title {
    font-size: var(--fs-h4);
    margin-bottom: var(--space-2);
}

.why-description {
    font-size: var(--fs-body);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.comparison-image {
    max-width: 800px;
    margin: var(--space-6) auto 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-2);
}

.comparison-image img {
    width: 100%;
    height: auto;
}

/* ========== REVIEWS SECTION ========== */
.reviews-section {
    background: var(--color-white);
}

.reviews-carousel {
    position: relative;
    overflow: visible;
    padding: 0;
}

.reviews-wrapper {
    display: flex;
    gap: var(--space-3);
    transition: var(--transition-normal);
    flex-wrap: nowrap;
    overflow: hidden;
}

.review-card {
    background: #fff3bf;
    border-radius: var(--radius-xl);
    padding: 20px 20px;
    text-align: center;
    box-shadow: var(--shadow-2);
    flex: 0 0 calc(25% - 18px);
    min-width: 250px;
}

.review-avatar {
    width: 160px;
    height: 160px;
    margin: 0 auto var(--space-2);
    border-radius: var(--radius-circle);
    overflow: hidden;
    border: 3px solid var(--color-white);
    box-shadow: var(--shadow-1);
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-stars {
    color: #FFD700;
    font-size: 20px;
    margin-bottom: var(--space-2);
}

.review-text {
    font-size: var(--fs-body);
    font-style: italic;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-3);
    /*min-height: 120px;*/
}

.review-author {
    font-size: var(--fs-body-sm);
    font-weight: 500;
    color: var(--color-text-primary);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #99cb50;
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    box-shadow: var(--shadow-2);
    z-index: 100;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-prev {
    left: -24px;
}

.carousel-next {
    right: -24px;
}

.carousel-btn:hover {
    background: #ffffff;
    color: #99cb50;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background: var(--color-border-medium);
    border-radius: var(--radius-circle);
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-dot.active {
    background: var(--color-pistachio);
    width: 32px;
    border-radius: var(--radius-full);
}

/* ========== FAQ SECTION ========== */
.faq-section {
    background: var(--color-cream-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto var(--space-5);
}

.faq-item {
    background: var(--color-white);
    border-radius: 12px;
    margin-bottom: var(--space-4);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    font-size: 18px;
    font-weight: 600;
    color: #85c12e;
    cursor: pointer;
    background: transparent;
    border: none;
    text-align: left;
    transition: background-color 0.3s ease;
    font-family: inherit;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-icon {
    font-size: 16px;
    color: var(--color-text-primary);
    transition: transform 0.3s ease;
}

.faq-question i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-question i {
    color: var(--color-pistachio);
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer > div {
    padding: 0 24px 24px 24px;
    font-size: var(--fs-body);
    color: #6b7280;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-more {
    text-align: center;
}

/* ========== ARTICLES SECTION ========== */
.articles-section {
    background: var(--color-white);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.article-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-2);
    transition: var(--transition-normal);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-3);
}

.article-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--color-cream-light);
}

.article-image img {
    width: 100%;
    transition: var(--transition-normal);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: var(--space-3);
}

.article-title {
    font-size: var(--fs-h4);
    margin-bottom: var(--space-2);
    line-height: 1.4;
    min-height: 56px;
}

.article-excerpt {
    font-size: var(--fs-body);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-2);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    margin-bottom: var(--space-3);
}

.article-date {
    font-size: var(--fs-body-sm);
    color: var(--color-text-tertiary);
}

.articles-more {
    text-align: center;
}

/* ปุ่มบทความทั้งหมดใช้สีเดิม (outline style) */
.articles-more .btn-outline-primary {
    --bs-btn-color: #99cb50;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: #99cb50;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #99cb50;
    --bs-btn-hover-border-color: #99cb50;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #99cb50;
    --bs-btn-active-border-color: #99cb50;
}

/* ========== FOOTER ========== */
.footer {
    background: #5d3929;
    /*border-image: linear-gradient(120deg, #a57640 45%, #99cb50 70%, #f4d90c 90%) 1;*/
	border-image: linear-gradient(120deg, #f6a0a1 8%, #a57640 20%, #a57640 55%, #99cb50 75%, #f4d90c 92%) 1;
	background-repeat: repeat-x;
    color: var(--color-white);
    padding: 30px 0px 5px 0px;
	border-top: 10px solid #99cb50;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-5);
}

.footer-logo {
    margin-bottom: var(--space-2);
}

.footer-logo img {
    height: 120px;
    width: auto;
}

.footer-tagline {
    font-size: var(--fs-body);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-title {
    font-size: var(--fs-h4);
    color: #99cb50;;
    margin-bottom: var(--space-3);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-body);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-pistachio);
    padding-left: var(--space-1);
}

.social-icons {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.social-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition-fast);
}

.social-icon:hover {
    background: var(--color-pistachio);
    transform: translateY(-2px);
}

.footer-contact {
    /*background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-3);*/
}

.footer-contact p {
    font-size: var(--fs-body-sm);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: var(--space-2);
}

.footer-social {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 15px;
}

.footer-social p {
    font-size: var(--fs-body-sm);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-bottom {
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-3);
    text-align: center;
}

.footer-bottom p {
    font-size: var(--fs-body-sm);
    color: rgba(255, 255, 255, 0.6);
}

.footer-links-inline {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
}

.footer-links-inline a {
    color: var(--color-pistachio);
}

.footer-links-inline a:hover {
    text-decoration: underline;
}

/* ========== SCROLL TO TOP ========== */
.scroll-top {
    position: fixed;
    bottom: var(--space-4);
    right: var(--space-4);
    width: 48px;
    height: 48px;
    background: #99cb50;
    color: var(--color-white);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-pistachio);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--color-pistachio-dark);
    transform: translateY(-4px);
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet (768px - 1199px) */
@media (max-width: 1199px) {
    :root {
        --fs-h1: 42px;
        --fs-h2: 32px;
        --fs-h3: 24px;
        --fs-h4: 20px;
        --container-padding: 32px;
    }

    .hero {
        min-height: 500px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (<768px) */
@media (max-width: 767px) {
    :root {
        --fs-h1: 32px;
        --fs-h2: 26px;
        --fs-h3: 20px;
        --fs-h4: 18px;
        --fs-body-lg: 16px;
        --fs-body: 15px;
        --container-padding: 20px;
        --space-10: 48px;
        --space-8: 48px;
        --space-6: 32px;
    }

    /* Header */
    .nav {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .logo-img {
        height: 40px;
    }

    /* Hero */
    .hero {
        min-height: 500px;
        padding: var(--space-6) var(--space-3);
    }

    .hero-features {
        flex-direction: column;
        gap: var(--space-2);
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-methods {
        flex-direction: column;
        gap: var(--space-5);
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .cta-methods-large {
        flex-direction: column;
        gap: var(--space-5);
    }

    .cta-title {
        font-size: 24px;
    }

    /* Why Section */
    .why-grid {
        grid-template-columns: 1fr;
    }

    /* Reviews */
    .carousel-btn {
        display: none;
    }

    /* Articles */
    .articles-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        /*align-items: center;*/
    }

    .social-icons {
        justify-content: center;
    }

    .footer-links-inline {
        flex-direction: column;
        gap: var(--space-1);
    }

    /* Scroll Top */
    .scroll-top {
        bottom: var(--space-3);
        right: var(--space-3);
        width: 44px;
        height: 44px;
    }
}

/* Very Small Mobile (<480px) */
@media (max-width: 479px) {
    :root {
        --fs-h1: 28px;
        --fs-h2: 24px;
        --container-padding: 16px;
    }

    .btn {
        padding: 14px 24px;
        font-size: var(--fs-body-sm);
    }

    .btn-lg {
        padding: 16px 32px;
        font-size: var(--fs-body);
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AOS Alternative (if needed) */
[data-aos] {
    opacity: 0;
    transition: var(--transition-normal);
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.95);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* ========== UTILITY CLASSES ========== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-40 { margin-top: 40px; }
.mt-20 { margin-top: 20px; }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-10 { margin-bottom: 10px; }
.mb-50 { margin-bottom: 50px; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

ol, ul {
    padding-left: 0rem; 
}

.btn-outline-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #99cb50;
    --bs-btn-border-color: #99cb50;
    --bs-btn-hover-color: #99cb50;
    --bs-btn-hover-bg: #ffffff;
    --bs-btn-hover-border-color: #99cb50;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #99cb50;
    --bs-btn-active-bg: #ffffff;
    --bs-btn-active-border-color: #99cb50;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #99cb50;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #99cb50;
    --bs-gradient: none;
}

