/* Custom CSS */
/* =========================================
   DB Heavent Font Family
   ========================================= */

@font-face {
    font-family: 'DB Heavent';
    src: url('fonts/db_heavent/db_heavent_v3.2.1-webfont.eot');
    src: url('fonts/db_heavent/db_heavent_v3.2.1-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/db_heavent/db_heavent_v3.2.1-webfont.woff2') format('woff2'),
         url('fonts/db_heavent/db_heavent_v3.2.1-webfont.woff') format('woff'),
         url('fonts/db_heavent/db_heavent_v3.2.1-webfont.ttf') format('truetype'),
         url('fonts/db_heavent/db_heavent_v3.2.1-webfont.svg#db_heaventregular') format('svg');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'DB Heavent';
    src: url('fonts/db_heavent/db_heavent_med_v3.2.1-webfont.eot');
    src: url('fonts/db_heavent/db_heavent_med_v3.2.1-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/db_heavent/db_heavent_med_v3.2.1-webfont.woff2') format('woff2'),
         url('fonts/db_heavent/db_heavent_med_v3.2.1-webfont.woff') format('woff'),
         url('fonts/db_heavent/db_heavent_med_v3.2.1-webfont.ttf') format('truetype'),
         url('fonts/db_heavent/db_heavent_med_v3.2.1-webfont.svg#db_heaventmed') format('svg');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'DB Heavent';
    src: url('fonts/db_heavent/db_heavent_bd_v3.2.1-webfont.eot');
    src: url('fonts/db_heavent/db_heavent_bd_v3.2.1-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/db_heavent/db_heavent_bd_v3.2.1-webfont.woff2') format('woff2'),
         url('fonts/db_heavent/db_heavent_bd_v3.2.1-webfont.woff') format('woff'),
         url('fonts/db_heavent/db_heavent_bd_v3.2.1-webfont.ttf') format('truetype'),
         url('fonts/db_heavent/db_heavent_bd_v3.2.1-webfont.svg#db_heaventbold') format('svg');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'DB Heavent';
    src: url('fonts/db_heavent/db_heavent_it_v3.2.1-webfont.eot');
    src: url('fonts/db_heavent/db_heavent_it_v3.2.1-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/db_heavent/db_heavent_it_v3.2.1-webfont.woff2') format('woff2'),
         url('fonts/db_heavent/db_heavent_it_v3.2.1-webfont.woff') format('woff'),
         url('fonts/db_heavent/db_heavent_it_v3.2.1-webfont.ttf') format('truetype'),
         url('fonts/db_heavent/db_heavent_it_v3.2.1-webfont.svg#db_heaventitalic') format('svg');
    font-weight: 400;
    font-style: italic;
}

body {
    font-family: 'DB Heavent', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
html {
    font-size: 130%; /* เดิม browser default คือ 16px -> ตอนนี้จะกลายเป็น ~18.9px */
}
:root {
    --brand-orange: #f05a22; /* ปรับสีให้ตรงกับแบรนด์ */
    --light-gray: #f5f5f5;
}

/* =========================================
   Mega Menu (Unified — ทุกเมนูหน้าตาเดียวกัน)
   ========================================= */

.mega-menu-item {
    position: relative;
}

.mega-trigger i {
    font-size: 0.7rem;
    margin-left: 4px;
    transition: transform 0.25s;
}
.mega-menu-item.is-open .mega-trigger i {
    transform: rotate(180deg);
}

/* ===== Panel: เต็มจอ ใช้ตัวเดียวกันทุกเมนู ===== */
.mega-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.mega-menu-item.is-open .mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===== Header bar: เหมือนกันทุกเมนู ===== */
.mega-panel-header {
    position: relative;
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 2rem;
    letter-spacing: 1px;
    color: #222;
    padding: 50px 40px 18px;
    border-bottom: 3px solid var(--brand-orange);
    background: var(--light-gray);
}

.mega-close {
    position: absolute;
    right: 20px;
    top: 130px;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
}
.mega-close:hover { color: var(--brand-orange); }

.mega-panel-body {
    padding: 40px 30px;
}
.mega-panel-scroll {
    max-height: calc(100vh - 170px); /* เต็มความสูงจอ เหลือพื้นที่ให้ header bar เท่านั้น */
    overflow-y: auto;
    scrollbar-width: none;       /* ซ่อน scrollbar บน Firefox */
    -ms-overflow-style: none;    /* ซ่อน scrollbar บน IE/Edge */
}
.mega-panel-scroll::-webkit-scrollbar {
    display: none;               /* ซ่อน scrollbar บน Chrome/Safari */
}

/* เมนูที่มีเนื้อหาน้อย (Company / Services) จำกัดความกว้างให้ดูพอดี */
.mega-panel-narrow {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

/* ===== Backdrop มืดด้านหลัง ===== */
.mega-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.mega-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

/* ===== Heading / Link styles: ใช้ set เดียวกันทุกเมนู ===== */
.mega-heading {
    display: block;
    font-weight: 500;
    color: #222 !important;
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 15px;
    text-decoration: none;
}
.mega-heading-link:hover {
    color: var(--brand-orange) !important;
    text-decoration: underline;
}

.mega-subheading {
    display: block;
   /* font-weight: 500;*/
    color: #333 !important;
    font-size: 1rem;
   /* margin-bottom: 8px;*/
    text-decoration: none;
}
.mega-subheading:hover {
    color: var(--brand-orange) !important;
    text-decoration: underline;
}

.mega-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mega-link-list li {
    /*margin-bottom: 10px;*/
}
.mega-link-list a {
    color: #666 !important;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}
.mega-link-list a:hover {
    color: var(--brand-orange) !important;
}

/* ===== Navbar ต้องอยู่บนสุดเสมอ ===== */
.custom-navbar {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 2000;
    background: transparent !important;
}

/* ===== Mobile ===== */
@media (max-width: 991.98px) {
    .mega-panel {
        position: static;
        width: 100%;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transform: none;
        transition: max-height 0.3s ease;
    }
    .mega-menu-item.is-open .mega-panel {
        max-height: 2000px;
    }
    .mega-panel-header {
        padding: 16px 40px;
        background: rgba(0,0,0,0.2);
        color: #fff;
    }
    .mega-close {
        top: 16px;
        color: #fff;
    }
    .mega-panel-narrow {
        max-width: 100%;
        text-align: left;
    }
    .mega-backdrop { display: none; }
}
.text-orange { color: var(--brand-orange) !important; }
.bg-orange { background-color: var(--brand-orange) !important; }
.btn-orange { 
    background-color: var(--brand-orange); 
    color: white; 
    border-radius: 5px; 
    padding: 10px 30px; 
    font-weight: bold;
    border: none;
}
.btn-orange:hover { background-color: #d14815; color: white; }

/* นำ Navbar ไปซ้อนบน Hero Image */
.custom-navbar {
    position: absolute;
    top: 0;
    width: 100%;
     z-index: 2000;
    background: transparent !important;
}
.custom-navbar .nav-link {
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 22px;
}

/* Hero Section */
.hero-section {
    /* เปลี่ยน URL เป็นที่อยู่รูปภาพของคุณใน WordPress */
    background-image: url('assets/images/home-banner.webp'); 
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}
/* เพิ่ม overlay สีเข้มให้ตัวหนังสืออ่านง่ายขึ้น */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}
.hero-content {
    position: relative;
    z-index: 1;
    color: white;
}

/* Card Styles */
.icon-box {
    background-color: #e9ecef;
    border-radius: 15px;
    padding: 40px 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #333;
}
.system-card {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    height: 100%;
}


/* =========================================
   Who We Are Page
   ========================================= */
.page-hero {
    background-image: url('assets/images/who-we-are.webp'); /* เปลี่ยนรูปที่นี่ */
    background-size: cover;
    background-position: center;
    height: 60vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    position: relative;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* เพิ่มเงาดำให้อ่านตัวอักษรง่ายขึ้น */
}

/* เส้นใต้หัวข้อ */
.section-title {
    font-weight: 800;
    border-bottom: 3px solid #000;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

/* ส่วน Vision Box ที่ซ้อนทับรูปภาพ */
.vision-box {
    background: #fff;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    margin-left: -80px; /* ดึงกล่องให้ล้ำไปซ้อนรูปภาพด้านซ้าย */
}
@media (max-width: 991.98px) {
    .vision-box { margin-left: 0; margin-top: -30px; } /* ปรับเมื่อเป็นมือถือ */
}

/* เครื่องหมายคำพูด (Quote) ในส่วน Philosophy */
.philosophy-quote {
    font-size: 1.25rem;
    font-weight: 700;
    color: #666;
    text-align: center;
    margin-top: 40px;
    position: relative;
}
.philosophy-quote::before {
    content: "“";
    font-size: 4rem;
    color: #bbb;
    position: absolute;
    top: -20px;
    left: -30px;
}
.philosophy-quote::after {
    content: "”";
    font-size: 4rem;
    color: #bbb;
    position: absolute;
    bottom: -45px;
    right: -20px;
}


/* =========================================
   Mobile Menu Fix (แก้ไขเมนูบนมือถือ)
   ========================================= */
@media (max-width: 991.98px) {
    /* เพิ่มพื้นหลังสีเข้มให้เมนูตอนกางออกบนมือถือ */
    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.85); /* สีดำโปร่งแสง */
        padding: 15px 20px;
        border-radius: 10px;
        margin-top: 15px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    
    /* เพิ่มระยะห่างและเส้นกั้นให้แต่ละเมนูอ่านง่ายขึ้น */
    .custom-navbar .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* เอาเส้นกั้นของเมนูสุดท้ายออก */
    .custom-navbar .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    /* ทำให้กรอบปุ่ม Hamburger สว่างขึ้น */
    .navbar-toggler {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.5);
    }
    
    /* เปลี่ยนสีไอคอนขีดๆ ภายในปุ่มให้เป็นสีขาว */
    .navbar-toggler-icon {
        filter: invert(1); 
    }
}


/* =========================================
   Products Category Page - Hero + Cards
   ========================================= */
.hero-eyebrow {
	padding-top:80px;
    font-size: 2.5rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 5px;
}
.hero-title {
    font-size: 2rem;
    font-weight: 500;
    color: #fff;
	padding-bottom:50px;
    text-transform: uppercase;
}
.products-hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    min-height: 420px;
    padding-top: 60px;
    padding-bottom: 60px;
    position: relative;
}

/* Overlay จางลง เฉพาะหน้า products */
.products-hero::before {
    background: rgba(0, 0, 0, 0.15); /* เดิม 0.4 -> ลดลงเหลือ 0.15 */
}

.products-hero .hero-content {
    margin-bottom: 40px;
}

/* กล่องการ์ดที่ลอยทับ Hero */
.category-cards-overlay {
    position: relative;
    z-index: 2;
    margin-top: auto;
}

/* Category Card - ปรับขนาดให้เล็กลง ตามภาพตัวอย่าง */
.category-card {
    display: block;
    text-decoration: none;
    text-align: center;
}
.category-card-img {
    width: 100%;
    height: 235px; /* เดิม 160px -> ลดลงให้พอดีกับภาพตัวอย่าง */
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    margin-bottom: 12px;
    transition: transform 0.3s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.category-card:hover .category-card-img {
    transform: scale(1.03);
}
.category-card.is-active .category-card-img {
    box-shadow: 0 0 0 3px var(--brand-orange), 0 8px 20px rgba(0,0,0,0.15);
}

.category-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.badge-pink  { background-color: #c0175a; }
.badge-teal  { background-color: #1c7c6b; }
.badge-brown { background-color: #6b4a1e; }

/* Mobile: ลดขนาด hero + จัดการ์ดให้ดูดีในจอเล็ก */
@media (max-width: 767.98px) {
    .products-hero {
        min-height: auto;
        padding-top: 40px;
        padding-bottom: 30px;
    }
    .category-card-img {
        height: 90px;
    }
}

/* Section 2: Level 2 Buttons */
.category-level2-section {
    padding: 40px 0;
    background-color: #fbe4ec; /* สีชมพูอ่อนตามภาพ */
}

.subcat-btn {
    width: 100%;
    min-height: 150px;
    border: none;
    border-radius: 15px;
    background-color: #fff;
    color: var(--brand-orange);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1.2rem;
    padding: 15px;
    cursor: pointer;
    transition: all 0.25s;
}
.subcat-btn:hover {
    background-color: #ffe9df;
}
.subcat-btn.is-active {
    background-color: #c0175a;
    color: #fff;
}

/* Section 3: Product Cards */
.product-list-section {
    padding: 60px 0;
}

.product-card {
    display: block;
    text-decoration: none;
    text-align: center;
}
.product-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: var(--light-gray);
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.product-card:hover .product-card-img img {
    transform: scale(1.05);
}
.product-card-title {
    font-weight: 800;
    color: var(--brand-orange);
    text-transform: uppercase;
    font-size: 1rem;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--brand-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =========================================
   Single Product Page
   ========================================= */

.product-hero {
      height: 45vh;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; /* เพิ่มบรรทัดนี้ กัน tile ซ้ำ */
}

/* Section 2: Delivery System Icons */
.product-systems-row { padding: 50px 0 30px; }

.system-icon-label {
    color: var(--brand-orange);
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
    font-size: 1.5rem;
}

.system-icon-circle {
    width: 110px;
    height: 110px;
    margin: 0 auto;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fdeee7; /* fallback สีพื้นถ้ารูปมีพื้นหลังโปร่งใส */
    transition: opacity 0.3s, filter 0.3s, box-shadow 0.3s;
}

.system-icon-circle.no-icon {
    background-color: #2196f3;
}

.system-icon-item.is-muted .system-icon-circle {
    opacity: 0.35;
    filter: grayscale(100%);
}
.system-icon-item.is-muted .system-icon-label {
    color: #aaa;
}
.system-icon-item.is-active .system-icon-circle {
   /* box-shadow: 0 0 0 3px var(--brand-orange);*/
}
.system-icon-item.is-muted .system-icon-label { color:#aaa; }
.system-bioxc-circle { background:#2196f3 !important; color:#fff !important; }

/* Section 3: Title */
.product-title-section { padding: 20px 0 40px; text-align:center; }
.product-name { font-weight: 800; color: var(--brand-orange); text-transform: uppercase; font-size:2.4rem; }
.product-tagline { font-size: 1.1rem; font-weight: 600; color: #333; }

/* Section 4: Benefits */
.product-description-section { padding: 20px 0 50px; }
.benefit-list { list-style:none; padding:0; font-weight:700; text-transform:uppercase; text-align:right; }
.benefit-list li { margin-bottom:10px; }

/* ===== Section 5: Info Accordion ===== */
.product-info-section { padding: 0; }

.info-accordion {
    display: flex;
    height: 560px;
  
    overflow: hidden;
}

.info-panel {
    position: relative;
    flex: 1;
    min-width: 60px;
    cursor: pointer;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    
    will-change: flex-grow;   /* บอก browser ล่วงหน้าว่าตรงนี้จะเปลี่ยน ช่วยเตรียม layer */
}
.info-panel:last-child { border-right: none; }
.info-panel.is-active { flex: 3.2; }

.info-panel-bg {
    position: absolute;
    top: 0;
    left: 50%;
    width: 65vw;   /* ใช้ % ของความกว้างจอแทนค่าคงที่ ครอบคลุมทุกขนาดจอ */
    height: 100%;
    transform: translateX(-50%) translateZ(0);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

/* Mobile: panel เป็นแนวตั้งเต็มความกว้าง ต้องให้รูปเต็ม 100% ไม่ใช่ 65vw */
@media (max-width: 767.98px) {
    .info-panel-bg {
        width: 100%;
        left: 0;
        transform: translateZ(0);
    }
}

/* รูปพื้นหลังคงที่ทุก product ตาม path ในธีม */
.panel-1 .info-panel-bg{ background-image: url('assets/images/panel1.jpg'); }
.panel-2 .info-panel-bg{ background-image: url('assets/images/panel2.jpg'); }
.panel-3 .info-panel-bg{ background-image: url('assets/images/panel3.jpg'); }
.panel-4 .info-panel-bg{ background-image: url('assets/images/panel4.jpg'); }
.panel-5 .info-panel-bg{ background-image: url('assets/images/panel5.jpg'); }

/* Overlay สีเข้มทับรูป เพื่อให้ text อ่านง่าย */
.info-panel-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.info-panel-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    white-space: nowrap;
    font-weight: 800;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
    opacity: 1;
    pointer-events: none;
    z-index: 2;
}
.info-panel.is-active .info-panel-label { opacity: 0; }

.info-panel-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 45px;
    opacity: 0;
    transition: opacity 0.4s ease 0.15s;
    color: #fff;
    overflow-y: auto;
    z-index: 2;

    /* เพิ่ม 3 บรรทัดนี้ — ซ่อน scrollbar ทุก browser */
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* IE/Edge */
}
.info-panel-content::-webkit-scrollbar {
    display: none;               /* Chrome/Safari */
}
.info-panel.is-active .info-panel-content { opacity: 1; }

.info-panel-content h4 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
    font-size: 1.1rem;
}
.info-panel-content p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 12px; }
.info-panel-content .stat-number { font-size: 1.8rem; font-weight: 800; margin-bottom: 0; }
.info-panel-content .stat-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; margin-bottom: 20px; opacity: 0.85; }

@media (max-width: 767.98px) {
    .info-accordion { flex-direction: column; height: auto; }
    .info-panel {
        flex: none;
        height: 70px;
        border-right: none;
        border-bottom: 2px solid rgba(255,255,255,0.4);
        transition: height 0.5s ease;
    }
    .info-panel.is-active { flex: none; height: 320px; }
    .info-panel-label { transform: translate(-50%, -50%) rotate(0deg); }
    .info-panel-content { padding: 25px; }
}

/* Section 6: Bio-efficacy */
.product-bioefficacy-section { padding: 70px 0; }
.product-name-repeat { font-weight: 800; color: var(--brand-orange); text-transform: uppercase; }
.bioefficacy-title { font-weight: 800; margin-bottom: 30px; }
.bioefficacy-stat-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 25px; }
.bioefficacy-stat-value { font-size: 2rem; font-weight: 800; color: var(--brand-orange); min-width: 100px; }
.bioefficacy-stat-desc { color: #555; padding-top: 5px; }
.bioefficacy-chart-placeholder {
    width: 100%; height: 260px; border: 1px solid #ddd; background: #fafafa;
    display:flex; align-items:center; justify-content:center; color:#bbb; font-size:0.85rem; font-style:italic;
}

/* Section 7: Similar Products */
.similar-products-section { padding: 60px 0 80px; }
.similar-product-card { display: block; text-decoration: none; color: inherit; }
.similar-product-name { font-weight: 800; color: var(--brand-orange); text-transform: uppercase; margin-bottom: 5px; }
.similar-product-system { font-size: 0.75rem; font-weight: 700; color: #333; text-transform: uppercase; }
.similar-product-desc { font-size: 0.8rem; color: #777; margin-bottom: 15px; }
.similar-product-img-placeholder {
    width: 100%; aspect-ratio: 1/1; border-radius: 15px; overflow: hidden;
    background: linear-gradient(135deg, #ddd, #bbb);
    display:flex; align-items:center; justify-content:center;
    color:#888; font-size:0.7rem; text-align:center; padding:10px;
}

.wysiwyg-body p {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 12px;
}
.wysiwyg-body ul,
.wysiwyg-body ol {
    font-size: 0.85rem;
    line-height: 1.7;
    padding-left: 20px;
    margin-bottom: 12px;
}
.wysiwyg-body strong { font-weight: 700; }
.wysiwyg-body a { color: #fff; text-decoration: underline; }

.similar-product-img,
.similar-product-img-placeholder {
    width: 100%;
    max-width: 220px;      /* จำกัดขนาดสูงสุด ไม่ให้โตตามคอลัมน์ */
    aspect-ratio: 1/1;
    border-radius: 15px;
    overflow: hidden;
    background: var(--light-gray);
    margin: 0 auto;         /* จัดกึ่งกลางคอลัมน์ */
}
.similar-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.similar-product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 20px;   /* เพิ่มบรรทัดนี้ กันชนแถวถัดไป */
}

/* =========================================
   Our Team Page
   ========================================= */

/* Section 1: Hero Photo */
.team-hero {
    width: 100%;
    overflow: hidden;
}
.team-hero-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Section 2: Intro */
.team-intro {
    padding: 70px 0 30px;
}
.team-intro-title {
    font-weight: 800;
    color: #222;
    text-transform: uppercase;
    display: inline-block;
    border-bottom: 4px solid var(--brand-orange);
    padding-bottom: 15px;
    margin-bottom: 25px;
}
.team-intro-subtitle {
    color: #777;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

/* Section 3: Team Grid */
.team-grid-section {
    padding: 40px 0 80px;
}
.team-member {
    text-align: center;
}
.team-member-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    background: var(--light-gray);
}
.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-member-name {
    font-weight: 800;
    color: #222;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-size: 1rem;
}
.team-member-role {
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 5px;
}
.team-member-email {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Section 4: Quotes */
.team-quotes-section {
    padding: 20px 0 80px;
}
.team-quote-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 30px;
}
.team-quote-avatar {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: var(--brand-orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
}
.team-quote-bubble {
    flex: 1;
    background: var(--light-gray);
    border-radius: 15px;
    padding: 30px 35px;
    min-height: 90px;
    display: flex;
    align-items: center;
}
.team-quote-bubble p {
    margin: 0;
    color: #444;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Mobile */
@media (max-width: 767.98px) {
    .team-member-photo {
        width: 130px;
        height: 130px;
    }
    .team-quote-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .team-quote-bubble {
        width: 100%;
    }
}

/* =========================================
   Site Hero — ใช้ร่วมกันทุกหน้า (responsive vh)
   ========================================= */
.site-hero {
    height: 88vh;
    min-height: 480px;   /* กันจอเตี้ยมากๆ (เช่นมือถือแนวนอน) ไม่ให้เตี้ยเกินไป */
    max-height: 750px;   /* กันจอสูงมากๆ (เช่น desktop จอใหญ่) ไม่ให้สูงจนดูเว่อร์ */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 767.98px) {
    .site-hero {
        height: 75vh;      /* มือถือลดสัดส่วนลงนิดหน่อย กันอึดอัด */
        min-height: 380px;
        max-height: 600px;
    }
}