/* ========== CSS VARIABLES ========== */
:root {
    --accent: #BFA76F;
    --primary: #7A6C45;
    --bg: #FFFFFF;
    --text-dark: #2D2A26;
    --bg-soft: #FAF9F6;
    --gold-grad: linear-gradient(135deg, #BFA76F 0%, #8E7948 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family will be set on body */
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Kanit', sans-serif;
    font-weight: 300;
    background-color: var(--bg);
    color: var(--text-dark);
    line-height: 1.8;
}

/* Global heading styles for a luxurious feel */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), var(--primary));
    border-radius: 10px;
    transition: all 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

/* ========== HEADER ========== */
header {
    background-color: #fff;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

header.scrolled {
    padding: 0.5rem 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    flex-wrap: nowrap;
    gap: 20px;
}

.logo img {
    height: 50px;
    display: block;
    transition: all 0.3s ease;
}

header.scrolled .logo img {
    height: 40px;
}

.menu {
    flex: 1;
    justify-content: center;
    list-style: none;
    display: flex;
    gap: 25px;
}

.menu li {
    opacity: 0;
    animation: fadeInLeft 0.5s ease-out forwards;
}

.menu li:nth-child(1) { animation-delay: 0.1s; }
.menu li:nth-child(2) { animation-delay: 0.2s; }
.menu li:nth-child(3) { animation-delay: 0.3s; }
.menu li:nth-child(4) { animation-delay: 0.4s; }
.menu li:nth-child(5) { animation-delay: 0.5s; }
.menu li:nth-child(6) { animation-delay: 0.6s; }

.menu li a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
    overflow: hidden;
}

.menu li a:hover { color: var(--accent); }

.menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.menu li a:hover::after,
.menu li a.active::after { width: 100%; }

.menu li a.active {
    color: var(--accent);
    font-weight: 600;
}

.language-switch {
    display: flex;
    border: 1px solid var(--primary);
    border-radius: 8px;
    overflow: hidden;
}

.language-switch button {
    background: white;
    border: none;
    padding: 0px 4px;
    font-size: 9px;
    font-weight: 300;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.language-switch button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 50%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.language-switch button:hover::before { left: 50%; }
.language-switch button.active { background-color: var(--primary); color: white; }

.language-switch-mobile { display: none; }

.toggle-button {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.toggle-button span {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    display: block;
    transition: 0.3s;
}

/* ========== HERO SECTION ========== */
.hero, .hero2 {
    position: relative;
    width: calc(100% - 40px);
    max-width: 1200px;
    height: 600px;
    margin: 20px auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    border-radius: 0; 
    overflow: hidden;
    animation: scaleIn 1.2s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(0,0,0,0.1));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 40px;
    text-align: center;
}

section:not(.hero):not(.hero2) {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 100px 40px;
}

.hero-content h1,
.hero-content h5 {
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: both;
}

.luxury-intro {
    background-color: var(--bg-soft);
    padding: 120px 20px !important;
    margin-top: -20px;
}

.luxury-intro h2 {
    margin-bottom: 40px;
    color: var(--accent);
}

.hero-content h1 {
    font-family: 'Playfair Display', serif; /* Apply Playfair Display */
    font-size: 3.5rem;
    color: var(--accent);
    background: var(--gold-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.3em;
    animation-delay: 0.2s;
}

.hero-content h5 {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #666;
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content h5:nth-of-type(1) { animation-delay: 0.4s; }
.hero-content h5:nth-of-type(2) { animation-delay: 0.6s; }
.hero-content h5:nth-of-type(3) { animation-delay: 0.8s; }

.hero-content button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: pulse 2s infinite;
    animation-delay: 1s;
}

.hero-content button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary);
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero-content button:hover::before {
    width: 300px;
    height: 300px;
}

/* ========== FOOTER ========== */
footer {
    text-align: center;
    padding: 60px 20px;
    font-size: 14px;
    background-color: #1A1816; /* Deep Charcoal */
    color: rgba(250, 249, 246, 0.8); /* Luxury Off-white with slight opacity */
    border-top: 1px solid var(--accent); /* Gold Hairline Border */
    line-height: 2;
    margin-top: 60px;
    letter-spacing: 0.05em;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-address {
    font-weight: 300;
    margin-bottom: 25px;
    display: block;
}

.footer-contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-contact-info span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-info i {
    color: var(--accent); /* Gold tone icons */
    font-size: 18px;
}

.footer-copyright {
    font-size: 12px;
    color: rgba(250, 249, 246, 0.4);
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.8;
    color: #fff;
}

/* ========== FOOTER SOCIAL ICONS ========== */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
}

.footer-social a {
    color: var(--accent);
    font-size: 20px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(191, 167, 111, 0.3);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.footer-social a:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(191, 167, 111, 0.6);
    transform: translateY(-5px);
}
/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.05); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1240px) {
    .hero { width: 95%; margin: 10px auto; }
}

@media (max-width: 1180px) { /* Increased breakpoint to accommodate more menu items */
    .menu {
        flex-direction: column;
        width: 100%;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease;
        gap: 0;
        margin-top: 0;
    }

    .menu.active { max-height: 600px; }

    .menu.active li {
        animation: fadeInLeft 0.3s ease-out forwards;
        opacity: 0;
    }

    .menu.active li:nth-child(1) { animation-delay: 0.05s; }
    .menu.active li:nth-child(2) { animation-delay: 0.1s; }
    .menu.active li:nth-child(3) { animation-delay: 0.15s; }
    .menu.active li:nth-child(4) { animation-delay: 0.2s; }
    .menu.active li:nth-child(5) { animation-delay: 0.25s; }
    .menu.active li:nth-child(6) { animation-delay: 0.3s; }

    .menu li { width: 100%; }

    .menu li a {
        font-size: 18px;
        padding: 15px 0;
        width: 100%;
        display: block;
        border-bottom: 1px solid #eee;
    }

    .toggle-button { display: flex; }
    .navbar > .language-switch { display: none; }

    .language-switch-mobile {
        display: flex;
        justify-content: center;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        margin: 0;
    }

    .language-switch-mobile .language-switch {
        /* Override desktop small size for mobile usability */
        border: 1.5px solid var(--primary);
        border-radius: 20px; /* More rounded for mobile */
    }

    .language-switch-mobile .language-switch button {
        padding: 8px 20px; /* Larger padding for easier tapping */
        font-size: 16px; /* Larger font size for readability */
        font-weight: 400; /* Consistent with menu items */
    }


    .logo img { height: 45px; }

    .hero {
        height: 400px;
        width: 95%;
        border-radius: 15px;
    }

    .hero-content h1 { font-size: 1.5rem; }
    .hero-content h5 { font-size: 1.1rem; }
}

@media (max-width: 768px) {
    .hero {
        height: 300px;
        width: 95%;
        border-radius: 10px;
        margin: 10px auto;
    }

    .hero-content h1 { font-size: 1.5rem; padding: 0 10px; }
    .hero-content h5 { font-size: 0.9rem; padding: 0 10px; }
}

@media (max-width: 576px) {
    .hero { height: 250px; border-radius: 8px; }
    .hero-content h1 { font-size: 1.3rem; }
    .hero-content h5 { font-size: 0.8rem; }
    .hero-content button { padding: 10px 20px; font-size: 0.9rem; letter-spacing: 0.02em; }
}

/* ========== GMP SECTION (Moved from index.php) ========== */
.gmp-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* เพิ่มสัดส่วนความกว้างให้ฝั่งรูปภาพ */
    align-items: center;
    gap: 50px;
    transition: all 0.3s ease;
}

.gmp-visual {
    position: relative;
    height: 500px; /* ปรับความสูงกลับเป็น 500px */
    background: #fff;
    border: 1px solid var(--accent);
    padding: 20px; /* ปรับ Padding กลับเป็น 20px */
    display: flex;
    align-items: center;
    justify-content: center;
}

.gmp-visual::after {
    content: '';
    position: absolute;
    top: 40px;
    left: -40px;
    right: 40px;
    bottom: -40px;
    border: 1px solid var(--accent);
    z-index: -1;
    opacity: 0.3;
}

.gmp-container {
    display: flex;
    text-align: left;
    align-items: flex-start;
}

.gmp-text h3 {
    font-family: 'Playfair Display', serif;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 2rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Decorative Divider */
.gmp-text::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--accent);
    margin: 30px 0;
    opacity: 0.6;
}

.gmp-text p {
    color: #666; /* Softer text color */
    font-weight: 200; /* Extra thin weight */
    font-size: 1.1rem;
    line-height: 2; /* Breathable line height */
    text-align: justify;
    letter-spacing: 0.02em;
}

/* ========== BRAND STEPS (Moved from index.php) ========== */
.brand-steps {
    background-color: var(--bg-soft);
    max-width: 1200px;
    margin: 80px auto;
    border-radius: 0;
    padding: 80px 40px;
    position: relative;
}

.brand-steps h2 {
    font-family: 'Playfair Display', serif; /* Apply Playfair Display */
    text-align: center;
    color: var(--primary);
    margin-bottom: 60px;
    font-size: 2.5rem;
    letter-spacing: 0.3em;
}

.steps-grid {
    margin: auto;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    background-color: transparent;
    border: none;
}

.step {
    padding: 50px 35px;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 320px;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 4px; /* Minimalist slight round */
    overflow: hidden; /* For background gradient */
    background: linear-gradient(145deg, #ffffff, #f5f5f5); /* ปรับ Gradient ให้ชัดเจนขึ้น */
    border: 1px solid rgba(191, 167, 111, 0.15); /* Hairline border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.step:nth-child(n) { background: linear-gradient(145deg, #ffffff, #FAF9F6); }

.step:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(191, 167, 111, 0.1);
}

.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px; /* More space */
}

.step-number {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 300;
    line-height: 1;
    color: var(--accent);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(191, 167, 111, 0.3); /* เส้นขอบบางสไตล์ Luxury */
    border-radius: 50%;
    background: #fff;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.step-icon i {
    font-size: 26px; /* ปรับขนาดให้พอดีกับกรอบ */
    color: var(--accent);
    opacity: 0.8;
    transition: all 0.5s ease;
}

.step:hover .step-icon {
    background: var(--gold-grad); /* เปลี่ยนพื้นหลังเป็นไล่เฉดสีทองเมื่อ Hover */
    border-color: transparent;
    box-shadow: 0 12px 25px rgba(191, 167, 111, 0.3);
    transform: translateY(-5px) rotate(5deg);
}

.step:hover .step-icon i {
    color: #fff; /* เปลี่ยนสีไอคอนเป็นขาวเพื่อให้ตัดกับพื้นหลังทอง */
    opacity: 1;
    transform: scale(1.1) rotate(-5deg);
}

.step-content { 
    font-size: 14.5px; 
    font-weight: 300; 
    line-height: 2; 
    flex-grow: 1; 
    color: #666;
    letter-spacing: 0.05em;
}
.step-content b { display: block; margin-top: 10px; font-weight: 600; }

/* Responsive adjustments for GMP and Brand Steps */
@media (max-width: 992px) {
    .gmp-section { padding: 40px 20px; grid-template-columns: 1fr; gap: 40px; }
    .gmp-visual { height: 400px; }
    .gmp-text h3 { font-size: 1.8rem; }
    .gmp-text p { font-size: 1rem; }
    .brand-steps { padding: 40px 20px; }
    .brand-steps h2 { font-size: 2.2rem; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .step { min-height: 200px; padding: 30px 20px; }
    .step-number { font-size: 3rem; }
    .step-icon { width: 60px; height: 60px; }
}

@media (max-width: 768px) {
    .gmp-section { margin: 40px auto; border-radius: 20px; }
    .gmp-text h3 { font-size: 1.5rem; }
    .gmp-text p { font-size: 0.95rem; }
    .brand-steps { margin: 40px auto; border-radius: 20px; }
    .brand-steps h2 { font-size: 1.8rem; }
    .steps-grid { grid-template-columns: 1fr; gap: 20px; }
    .step { min-height: auto; }
    .step-number { font-size: 2.5rem; }
    .step-icon { width: 50px; height: 50px; }
}

@media (max-width: 576px) {
    .gmp-section { padding: 30px 15px; }
    .gmp-text h3 { font-size: 1.3rem; }
    .gmp-text p { font-size: 0.9rem; }
    .brand-steps { padding: 30px 15px; }
    .brand-steps h2 { font-size: 1.5rem; }
    .step-number { font-size: 2rem; }
    .step-icon { width: 40px; height: 40px; }
}

/* ========== PROMOTION SECTION (Moved from promotion.php) ========== */
.promotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 30px;
    margin: 60px auto; /* More margin */
    max-width: 1200px;
    padding: 0 20px; /* Add padding for smaller screens */
}

.promo-card {
    background: white;
    border-radius: 15px; /* More rounded corners */
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); /* Softer shadow */
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05); /* Subtle border */
}

.promo-card:hover {
    transform: translateY(-8px); /* Lift effect on hover */
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

.promo-header {
    height: 40px; /* Slightly taller header */
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%); /* Use variables */
}

.promo-header.dark {
    background: linear-gradient(135deg, #4a4035 0%, #2d2a26 100%); /* Darker gradient */
}

.promo-content {
    padding: 40px 30px;
    min-height: 280px; /* Adjusted min-height */
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.promo-title {
    font-family: 'Playfair Display', serif; /* Apply Playfair Display */
    color: var(--primary); /* Use primary color */
    font-size: 2rem; /* Larger title */
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 0.04em;
}

.promo-description {
    color: var(--text-dark); /* Use text-dark */
    font-size: 1.1rem; /* Slightly larger for readability */
    line-height: 1.8;
    text-align: center;
}

/* Responsive for promotion grid */
@media (max-width: 968px) {
    .promotion-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .promo-title { font-size: 1.8rem; }
    .promo-description { font-size: 1rem; }
}

@media (max-width: 640px) {
    .promotion-grid { grid-template-columns: 1fr; gap: 20px; }
    .promo-card { border-radius: 10px; }
    .promo-title { font-size: 1.5rem; }
    .promo-description { font-size: 0.95rem; }
    .promo-content { padding: 30px 20px; min-height: 250px; }
}

/* Adjust hero-content for promotion page */
.hero-content h1 { color: white; } /* Ensure hero title is white on promotion page */
.hero-content p { color: rgba(255,255,255,0.9); } /* Ensure hero description is white */

/* ========== PRODUCT DETAIL SECTIONS (Mouthwash, Spray) ========== */
.product-section { /* General class for product detail sections */
    max-width: 1200px;
    margin: 60px auto; /* Consistent margin */
    padding: 0 20px;
}

.product-card { /* General class for product detail cards */
    background: #fdfdfd; /* Lighter background */
    border-radius: 20px;
    padding: 40px; /* More padding */
    display: grid;
    grid-template-columns: 350px 1fr; /* Slightly larger image column */
    gap: 50px; /* More gap */
    align-items: start;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Soft shadow */
    border: 1px solid rgba(0,0,0,0.05);
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Shadow for image */
}

/* Dimensional Hover Effect for Product Images */
.product-image img, .sub-product-image img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.6s ease;
}

.product-card:hover .product-image img,
.sub-product-card:hover .sub-product-image img {
    transform: scale(1.04) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-title { /* General class for product titles */
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-size: 2.2rem; /* Larger title */
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.04em;
    background: none;
    padding: 0;
    border-radius: 0;
    display: block;
    text-align: left;
}

.product-desc, .product-intro { /* General class for product descriptions */
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px; /* More space */
}

.product-types { /* General class for product types */
    display: flex;
    flex-direction: column;
    gap: 25px; /* More gap */
}

.type-box h3 {
    font-family: 'Kanit', sans-serif; /* Keep Kanit for sub-headings */
    color: var(--primary);
    font-size: 1.2rem; /* Slightly larger */
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.type-box p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.75;
    margin: 0;
}

.type-box p span {
    font-weight: 600;
    color: var(--primary); /* Use primary color for emphasis */
}

/* ===== BACK BUTTON ===== */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.1rem; /* Slightly larger */
    font-weight: 500;
    margin: 30px 20px 0; /* More margin */
    transition: color 0.3s;
}

.back-btn:hover { color: var(--accent); }

/* Responsive for product detail cards */
@media (max-width: 768px) {
    .product-card {
        grid-template-columns: 1fr;
        padding: 30px;
        gap: 30px;
    }
}

/* Specific style for product subtitle in spray page */
.product-subtitle {
    font-family: 'Kanit', sans-serif;
    letter-spacing: 0.02em;
}

/* ========== SUB-PRODUCT GRID (Balm & Spa) ========== */
.sub-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 30px;
    max-width: 1200px;
    margin: 60px auto; /* Consistent margin */
    padding: 0 20px;
}

.sub-product-card {
    background: linear-gradient(145deg, #ffffff, #f8f8f8); /* Lighter gradient */
    border-radius: 20px;
    padding: 30px; /* More padding */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); /* Softer shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.sub-product-card:hover {
    transform: translateY(-8px); /* Lift effect on hover */
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

.sub-product-image {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 20px; /* More space */
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* Shadow for image */
}

.sub-product-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.sub-product-title {
    font-family: 'Playfair Display', serif; /* Apply Playfair Display */
    color: var(--primary); /* Use primary color */
    font-size: 1.8rem; /* Larger title */
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.03em;
}

.sub-product-features {
    list-style: none;
    text-align: left;
    padding-left: 10px; /* Indent list items */
}

.sub-product-features li {
    color: var(--text-dark); /* Use text-dark */
    font-size: 1rem;
    padding: 6px 0 6px 22px; /* More padding */
    position: relative;
    line-height: 1.6;
}

.sub-product-features li::before {
    content: "•";
    color: var(--accent); /* Use accent color for bullet */
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2em; /* Larger bullet */
    line-height: 1;
}

/* Responsive for sub-product grid */
@media (max-width: 768px) {
    .sub-product-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
    .sub-product-card { padding: 25px; border-radius: 15px; }
    .sub-product-title { font-size: 1.5rem; }
    .sub-product-features li { font-size: 0.95rem; padding: 5px 0 5px 20px; }
}

@media (max-width: 576px) {
    .sub-product-grid { grid-template-columns: 1fr; }
    .sub-product-title { font-size: 1.3rem; }
}

/* ========== SCROLL REVEAL ========== */
/* JS (main.js) adds .revealed via IntersectionObserver.
   These rules make the elegant fade-in actually work site-wide. */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.2, 0, 0.2, 1),
                transform 0.9s cubic-bezier(0.2, 0, 0.2, 1);
    will-change: opacity, transform;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* Gentle stagger for stepped grids */
.steps-grid .step.reveal { transition-delay: 0.08s; }
