:root {
    --primary-color: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #ccfbf1;
    --secondary-color: #0284c7;
    --accent-color: #16a34a;
    --dark-color: #1e293b;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;
    --warning-text: #92400e;
}

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

body {
    font-family: 'Sarabun', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f8fafc;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
}

/* Back Button Navigation */
.nav-actions {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Sarabun', sans-serif;
    padding: 6px 12px;
    border-radius: 6px;
}

.btn-back:hover {
    color: var(--primary-color);
    background: var(--primary-light);
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 30px 0 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-image {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    max-height: 460px;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.15);
    background: #ffffff;
    padding: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: translateY(-4px);
}

.hero-content {
    flex: 1.2;
    min-width: 300px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.tagline {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

h1 {
    font-size: 2.4rem;
    color: var(--dark-color);
    line-height: 1.2;
    margin-bottom: 12px;
    font-weight: 700;
}

h1 .en-sub {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.hero-desc {
    font-size: 1.05rem;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.7;
}

.pain-points {
    background-color: #fff7ed;
    border-left: 4px solid #ea580c;
    padding: 16px;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
}

.pain-points h3 {
    color: #c2410c;
    font-size: 1.05rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pain-points p {
    color: #7c2d12;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Video & Highlight Section (similar to Lucky Stick in adjuvant.html) */
.product-highlight-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
    border: 1.5px solid #99f6e4;
    border-radius: 1.25rem;
    padding: 1.75rem;
    margin: 2rem 0;
    box-shadow: 0 10px 25px -5px rgba(13, 148, 136, 0.08), 0 8px 10px -6px rgba(13, 148, 136, 0.04);
}

.highlight-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .highlight-grid {
        grid-template-columns: repeat(12, 1fr);
    }

    .highlight-info-side {
        grid-column: span 6 / span 6;
    }

    .highlight-video-side {
        grid-column: span 6 / span 6;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
}

.highlight-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: #ccfbf1;
    color: #0f766e;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

.highlight-product-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.45rem;
    font-weight: 700;
    color: #134e4a;
    margin-bottom: 0.75rem;
}

.highlight-product-desc {
    font-size: 0.98rem;
    line-height: 1.65;
    color: #334155;
    margin-bottom: 1.25rem;
}

.highlight-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.pill-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 0.5rem;
}

.bg-light-teal {
    background-color: #ccfbf1;
    color: #0f766e;
}

.bg-light-blue {
    background-color: #e0f2fe;
    color: #0369a1;
}

.bg-light-green {
    background-color: #dcfce7;
    color: #15803d;
}

/* Video Wrapper - Responsive 16:9 Container */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 0;
    padding-bottom: 56.25%;
    background-color: #0f172a;
    border-radius: 0.85rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #cbd5e1;
}

@supports (aspect-ratio: 16 / 9) {
    .video-wrapper {
        height: auto;
        padding-bottom: 0;
        aspect-ratio: 16 / 9;
    }
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Section Title */
.section-title {
    font-size: 1.65rem;
    color: var(--primary-dark);
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #99f6e4;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.benefit-card {
    background: #ffffff;
    padding: 22px;
    border-radius: 12px;
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.12);
}

.benefit-card .card-icon {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.benefit-card h4 {
    color: var(--dark-color);
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.benefit-card p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Ingredients Section */
.ingredients-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    margin-top: 20px;
}

.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 15px;
}

.ingredient-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ingredient-icon {
    background: #e0f2fe;
    color: #0284c7;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ingredient-text h5 {
    font-size: 1rem;
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 4px;
}

.ingredient-text p {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 4px;
}

.ingredient-badge {
    display: inline-block;
    background: #0d9488;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
}

th {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: white;
    font-size: 0.98rem;
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) {
    background-color: #f8fafc;
}

.dosage-badge {
    display: inline-block;
    background-color: #ccfbf1;
    color: #0f766e;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.95rem;
}

/* General Dosage Banner */
.general-dosage-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #2563eb;
    padding: 16px 20px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.general-dosage-banner i {
    font-size: 1.8rem;
    color: #2563eb;
}

.general-dosage-banner .content strong {
    color: #1e40af;
    font-size: 1.05rem;
}

.general-dosage-banner .content p {
    color: #1e3a8a;
    font-size: 0.95rem;
    margin: 2px 0 0 0;
}

/* Mixing Steps List */
.mixing-list {
    list-style: none;
    counter-reset: mixing-counter;
    margin-top: 20px;
}

.mixing-item {
    counter-increment: mixing-counter;
    position: relative;
    padding-left: 60px;
    margin-bottom: 18px;
    background: #ffffff;
    padding-top: 16px;
    padding-bottom: 16px;
    padding-right: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.mixing-item::before {
    content: counter(mixing-counter);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    text-align: center;
    line-height: 34px;
    font-weight: bold;
    font-size: 1rem;
}

.mixing-item strong {
    color: var(--primary-dark);
    font-size: 1.05rem;
}

.mixing-item p {
    margin-top: 4px;
    color: #475569;
    font-size: 0.95rem;
}

.mixing-item-highlight {
    background: #f0fdfa;
    border: 1.5px solid #5eead4;
}

.ph-indicator-pill,
.water-clear-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdfa;
    color: #0f766e;
    border: 1px solid #99f6e4;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Warning Box */
.warning-box {
    background-color: var(--warning-bg);
    border: 1px solid var(--warning-border);
    color: var(--warning-text);
    padding: 22px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.08);
}

.warning-box h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b45309;
}

.warning-box ul {
    list-style-type: none;
    padding-left: 0;
}

.warning-box ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.warning-box ul li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.85rem;
}

/* Packaging / Label Section */
.label-preview-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
    margin-top: 20px;
    text-align: center;
}

.label-preview-card img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.label-preview-card img:hover {
    transform: scale(1.01);
}

.label-caption {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 10px;
}

/* Bottom Action Back Button */
.bottom-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
}

.btn-footer-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: 'Sarabun', sans-serif;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.btn-footer-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
}

/* Footer */
footer {
    margin-top: 40px;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}

footer p {
    margin-bottom: 6px;
}

/* Lightbox Modal for label image */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-img {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.4);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   pH Knowledge Section
   ========================================================================== */
.ph-knowledge-section {
    margin: 35px 0;
}

.ph-knowledge-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 28px;
    overflow: hidden;
}

.ph-knowledge-header {
    margin-bottom: 24px;
}

.ph-badge-gold {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #fcd34d;
    margin-bottom: 12px;
}

.ph-knowledge-header h3 {
    font-size: 1.35rem;
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.ph-knowledge-header p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
}

/* Visual pH Scale */
.ph-scale-wrapper {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
}

.ph-scale-header {
    font-weight: 700;
    color: #334155;
    font-size: 0.95rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ph-scale-bar-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr 1.5fr;
    gap: 8px;
    margin-bottom: 14px;
}

.ph-bar-segment {
    padding: 14px 10px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: transform 0.2s ease;
}

.ph-bar-segment:hover {
    transform: translateY(-2px);
}

.ph-bar-segment.ph-acid {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.ph-bar-segment.ph-optimal {
    background: linear-gradient(135deg, #ccfbf1 0%, #a7f3d0 100%);
    border: 2px solid #059669;
    color: #065f46;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.optimal-tag {
    position: absolute;
    top: -11px;
    background: #059669;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.ph-bar-segment.ph-neutral {
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.ph-bar-segment.ph-alkaline {
    background: #ede9fe;
    border: 1px solid #c4b5fd;
    color: #5b21b6;
}

.ph-bar-segment .ph-num {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
}

.ph-bar-segment .ph-label {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 4px;
}

.ph-scale-legend {
    background: #ffffff;
    border-left: 3px solid #0d9488;
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
}

.ph-scale-legend p {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

/* 3 Pillars Grid */
.ph-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 28px 0 20px 0;
}

.ph-pillar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ph-pillar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.pillar-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.pillar-icon.bg-orange {
    background: #ffedd5;
    color: #ea580c;
}

.pillar-icon.bg-green {
    background: #dcfce7;
    color: #16a34a;
}

.pillar-icon.bg-blue {
    background: #e0f2fe;
    color: #0284c7;
}

.pillar-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.pillar-num {
    font-size: 1.15rem;
    font-weight: 800;
    color: #94a3b8;
    line-height: 1.2;
}

.pillar-title h4 {
    font-size: 1.05rem;
    color: var(--dark-color);
    font-weight: 700;
    line-height: 1.4;
}

.ph-pillar-card p {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.65;
    flex-grow: 1;
}

/* Pro Tip Box */
.ph-tip-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
    border: 1.5px solid #86efac;
    border-radius: 12px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.ph-tip-icon {
    font-size: 1.8rem;
    color: #16a34a;
    flex-shrink: 0;
}

.ph-tip-content strong {
    color: #166534;
    font-size: 1rem;
    display: block;
    margin-bottom: 4px;
}

.ph-tip-content p {
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    h1 {
        font-size: 1.9rem;
    }

    h1 .en-sub {
        font-size: 1.4rem;
    }

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

    th,
    td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .video-wrapper {
        max-width: 100%;
    }

    .mixing-item {
        padding-left: 55px;
    }

    .ph-scale-bar-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .optimal-tag {
        top: 6px;
        right: 8px;
    }

    .ph-tip-box {
        flex-direction: column;
        text-align: center;
    }
}