/* Winner Cosmed — modern OEM/ODM theme (loaded last; overrides legacy layers)
   Direction: clean laboratory/pharma-grade feel — deep green + ivory + restrained gold,
   strong contrast, sans-serif hierarchy, generous spacing, soft elevation. */

:root {
    --accent: #c9a24d;
    --primary: #0a4a1d;
    --bg-soft: #eef8f2;
    --ink: #1c2a21;
    --muted: #55635a;
    --brand-green: #0b8a42;
    --brand-green-deep: #06371c;
    --line: rgba(11, 138, 66, 0.16);
    --shadow-sm: 0 6px 20px rgba(14, 40, 24, 0.06);
    --shadow-md: 0 18px 48px rgba(14, 40, 24, 0.12);
    --radius-md: 18px;
    --radius-lg: 28px;
}

body { font-weight: 400; color: var(--ink); background: #fff; line-height: 1.7; }
h1, h2, h3, h4 { font-family: 'Kanit', sans-serif; letter-spacing: 0; color: #0a3d1a; }
p, li { color: var(--muted); }

/* ---------- Header: sticky, glass ---------- */
.site-header { position: sticky; top: 0; z-index: 1040; background: rgba(255, 255, 255, 0.88); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 8px 24px rgba(14,40,24,.04); }
.menu a { font-weight: 400; }
.menu a.active, .menu a:hover { color: var(--brand-green); }
.nav-cta { background: linear-gradient(135deg, #0a7a2b, #075e20) !important; color: #fff !important; border-radius: 999px; font-weight: 500; box-shadow: 0 8px 20px rgba(7,94,32,.25); transition: transform .2s, box-shadow .2s; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(7,94,32,.32); }

/* ---------- Inner-page banner + title block ---------- */
.hero { position: relative; width: 100%; max-width: none; margin: 0; height: clamp(190px, 28vw, 340px); border-radius: 0; background-size: cover; background-position: center; overflow: hidden; animation: none !important; box-shadow: none; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,57,26,.10) 0%, rgba(4,57,26,.55) 100%); }
.hero + section:not(.gmp-section):not(.featured-blog):not(.product-catalog),
.hero + .hero-content { background: var(--bg-soft); margin: 0 auto; max-width: none; padding: 56px 24px 48px !important; border-bottom: 1px solid var(--line); }
.hero-content h1, .hero-content h1[style] { background: none !important; -webkit-text-fill-color: #0a3d1a !important; color: #0a3d1a !important; font-weight: 500; font-size: clamp(1.9rem, 4.4vw, 3rem); letter-spacing: 0; line-height: 1.25; }
.hero-content h5, .hero-content p, .hero-content div { color: var(--muted); font-weight: 400; letter-spacing: 0; line-height: 1.85; font-size: 1.05rem; }
.hero-content h5 { max-width: 860px; margin-left: auto; margin-right: auto; }

/* ---------- Home hero (split) ---------- */
.oem-hero { max-width: 1240px; margin: 0 auto; padding: 56px 24px 40px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.oem-eyebrow { display: inline-block; font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.oem-hero h1 { margin: 14px 0 18px; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.2; font-weight: 500; }
.oem-hero h1 span { color: #0a7a2b; }
.oem-hero-copy p { font-size: 1.12rem; line-height: 1.85; max-width: 560px; margin: 0 0 28px; }
.oem-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.oem-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 12px 28px; border-radius: 999px; font-weight: 500; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.oem-btn-primary { background: linear-gradient(135deg, #0a7a2b, #075e20); color: #fff; box-shadow: 0 10px 26px rgba(7,94,32,.28); }
.oem-btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(7,94,32,.34); }
.oem-btn-ghost { color: #075e20; background: #fff; border: 2px solid rgba(7,94,32,.35); }
.oem-btn-ghost:hover { color: #fff; background: #075e20; border-color: #075e20; }
.oem-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 0; margin: 0; }
.oem-chips li { color: #274133; font-size: .95rem; display: inline-flex; gap: 8px; align-items: center; }
.oem-chips i { color: #0a7a2b; }
.oem-hero-visual { position: relative; }
.oem-hero-visual::before { content: ''; position: absolute; inset: 18px -14px -18px 14px; border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(182,146,75,.28), rgba(7,94,32,.14)); z-index: 0; }
.oem-hero-visual img { position: relative; z-index: 1; width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: block; }

/* ---------- Stats band ---------- */
.oem-stats { max-width: 1240px; margin: 12px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); }
.oem-stat { padding: 28px 22px; text-align: center; background: #04391a; color: #fff; border-right: 1px solid rgba(255,255,255,.12); }
.oem-stat:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.oem-stat:last-child { border-right: 0; border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.oem-stat strong { display: block; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 500; color: #e6cf9d; line-height: 1.2; }
.oem-stat span { display: block; margin-top: 6px; font-size: .92rem; color: rgba(255,255,255,.82); }

/* ---------- OEM vs ODM ---------- */
.oem-choose { max-width: 1240px; margin: 72px auto 24px; padding: 0 24px; }
.oem-section-head { text-align: center; margin-bottom: 32px; }
.oem-section-head h2 { margin: 8px 0 0; font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 500; }
.oem-choose-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.oem-card { padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.oem-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.oem-card h3 { margin: 14px 0 10px; font-size: 1.5rem; font-weight: 500; }
.oem-card p { line-height: 1.85; margin-bottom: 18px; }
.oem-tag { display: inline-block; padding: 4px 14px; border-radius: 999px; background: rgba(7,94,32,.1); color: #075e20; font-weight: 500; letter-spacing: .12em; font-size: .85rem; }
.oem-link { color: #075e20; font-weight: 500; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.oem-link:hover { gap: 12px; color: #04391a; }
.oem-card-dark { background: linear-gradient(145deg, #04391a, #075e20); border-color: transparent; }
.oem-card-dark h3, .oem-card-dark p, .oem-card-dark .oem-link { color: #fff; }
.oem-card-dark p { color: rgba(255,255,255,.86); }
.oem-card-dark .oem-tag { background: rgba(230,207,157,.2); color: #e6cf9d; }

/* ---------- Cards (shared) ---------- */
.product-card, .sub-product-card, .blog-card, .promo-card, .service-item, .step, .toothpaste-card, .balm-card, .hair-detail-card, .coconut-card, .contact-form-card, .type-box, .contact-btn {
    border-radius: var(--radius-md); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product-card:hover, .sub-product-card:hover, .blog-card:hover, .promo-card:hover, .service-item:hover, .step:hover, .toothpaste-card:hover, .balm-card:hover, .hair-detail-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(7,94,32,.3); }
.product-card h3, .sub-product-title, .blog-card h3, .promo-title, .service-item h3 { color: #0a3d1a; font-weight: 500; }
.product-card li, .sub-product-features li, .blog-card p { font-weight: 400; color: var(--muted); }

/* ---------- Section titles used across pages ---------- */
.brand-steps h2, .home-faq h2, .page-faq h2, .gmp-text h3 { color: #0a3d1a; font-weight: 500; letter-spacing: 0 !important; }
.brand-steps { background: var(--bg-soft) !important; border-radius: var(--radius-lg); }
.step-number { color: #0a7a2b !important; }
.step-content { color: var(--muted); }
.step-content b { color: #0a3d1a; letter-spacing: .06em; }
.gmp-text p { color: var(--muted); font-weight: 400; }

/* ---------- FAQ ---------- */
.home-faq details, .page-faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); transition: border-color .2s; }
.home-faq details[open], .page-faq details[open] { border-color: rgba(7,94,32,.4); }
.home-faq summary, .page-faq summary { color: #0a3d1a; font-weight: 500; }

/* ---------- Buttons / forms ---------- */
.btn-success, .contact-form-submit, .en-submit, .enp-btn { background: linear-gradient(135deg, #0a7a2b, #075e20) !important; border: 0 !important; color: #fff !important; border-radius: 999px; font-weight: 500; box-shadow: 0 8px 22px rgba(7,94,32,.25); }
.contact-form-card input, .contact-form-card select, .contact-form-card textarea { border-radius: 12px; border: 1px solid #cdd8cf; background: #fcfdfb; }
.contact-form-card input:focus, .contact-form-card select:focus, .contact-form-card textarea:focus { border-color: #0a7a2b; box-shadow: 0 0 0 4px rgba(10,122,43,.14); outline: 0; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(160deg, #03301a 0%, #064d20 100%); }
.site-footer h2 { color: #e6cf9d; font-weight: 500; letter-spacing: .02em; }

/* ---------- Floating CTA + safe spacing on mobile ---------- */
@media (max-width: 575px) {
    body { padding-bottom: 76px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .oem-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; }
    .oem-hero-visual { order: -1; }
    .oem-hero-visual::before { inset: 12px -8px -12px 8px; }
    .oem-stats { grid-template-columns: repeat(2, 1fr); gap: 0; }
    .oem-stat:nth-child(2) { border-right: 0; border-radius: 0 var(--radius-md) 0 0; }
    .oem-stat:nth-child(1) { border-radius: var(--radius-md) 0 0 0; }
    .oem-stat:nth-child(3) { border-radius: 0 0 0 var(--radius-md); border-top: 1px solid rgba(255,255,255,.12); }
    .oem-stat:nth-child(4) { border-radius: 0 0 var(--radius-md) 0; border-top: 1px solid rgba(255,255,255,.12); }
    .oem-choose-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Beat legacy generic `section {padding/margin}` (specificity) ---------- */
section.oem-hero:not(.hero):not(.hero2) { margin: 0 auto; padding: 56px 24px 40px; }
section.oem-stats:not(.hero):not(.hero2) { margin: 12px auto 0; padding: 0 24px; }
section.oem-choose:not(.hero):not(.hero2) { margin: 72px auto 24px; padding: 0 24px; }
@media (max-width: 991px) {
    section.oem-hero:not(.hero):not(.hero2) { padding: 32px 20px 24px; }
    section.oem-choose:not(.hero):not(.hero2) { margin-top: 48px; }
}

/* ---------- Page banners & title block refinements ---------- */
.hero { height: clamp(180px, 24vw, 300px) !important; min-height: 0 !important; }
.hero-content h2, .luxury-intro h2 { font-family: 'Kanit', sans-serif !important; font-style: normal !important; font-weight: 400 !important; letter-spacing: .14em !important; text-transform: uppercase !important; font-size: .95rem !important; color: var(--accent) !important; margin-top: 8px !important; }
.hero-content h5, .hero-content h5:nth-of-type(n) { color: var(--muted) !important; opacity: 1 !important; animation: none !important; font-weight: 400 !important; letter-spacing: 0 !important; -webkit-text-fill-color: currentColor !important; }
.hero-content, .hero-content * { opacity: 1; }

/* =====================================================================
   Palette A — Fresh Botanical
   emerald #0b8a42/#10a050, mint #2cc27a/#eaf7ef, champagne gold #c9a24d.
   Deep forest (#0a3d1a) is kept only for headings and the footer.
   ===================================================================== */
:root {
    --emerald: #0b8a42;
    --emerald-2: #10a050;
    --mint: #2cc27a;
    --mint-bg: #eaf7ef;
    --champagne: #c9a24d;
    --forest: #0a3d1a;
    --btn-grad: linear-gradient(135deg, #0b8a42 0%, #10a050 100%);
    --shadow-glow: 0 10px 26px rgba(16, 160, 80, .28);
}
.menu a.active, .menu a:hover { color: var(--emerald); }
.menu a.active { border-color: var(--champagne); }
.nav-cta, .oem-btn-primary, .btn-success, .contact-form-submit, .en-submit, .enp-btn { background: var(--btn-grad) !important; box-shadow: var(--shadow-glow) !important; color: #fff !important; }
.nav-cta:hover, .oem-btn-primary:hover { box-shadow: 0 16px 34px rgba(16,160,80,.36) !important; }
.oem-btn-ghost { color: var(--emerald); border-color: rgba(16,160,80,.45); }
.oem-btn-ghost:hover { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.oem-hero h1 span { color: var(--emerald-2); }
.oem-chips i { color: var(--emerald-2); }
.oem-eyebrow { color: #b08a35; }
section.oem-hero:not(.hero):not(.hero2) { background: radial-gradient(900px 420px at 85% 10%, rgba(44,194,122,.16), transparent 60%), radial-gradient(700px 360px at 0% 0%, rgba(201,162,77,.10), transparent 60%); }
.oem-hero-visual::before { background: linear-gradient(135deg, rgba(44,194,122,.35), rgba(201,162,77,.25)); }

/* Stats: light mint band instead of a dark slab */
.oem-stat { background: var(--mint-bg); color: var(--forest); border-right: 1px solid rgba(16,160,80,.18); }
.oem-stat strong { color: var(--emerald); }
.oem-stat span { color: var(--muted); }
.oem-stats { filter: drop-shadow(0 10px 24px rgba(16,160,80,.10)); }

/* OEM / ODM cards */
.oem-tag { background: rgba(16,160,80,.12); color: var(--emerald); }
.oem-link { color: var(--emerald); }
.oem-link:hover { color: var(--forest); }
.oem-card-dark { background: linear-gradient(145deg, #0a8a43 0%, #14b062 100%); box-shadow: 0 18px 44px rgba(16,160,80,.30); }
.oem-card-dark h3, .oem-card-dark p, .oem-card-dark .oem-link { color: #fff; }
.oem-card-dark p { color: rgba(255,255,255,.94); }
.oem-card-dark .oem-tag { background: rgba(255,255,255,.22); color: #fff; }

/* Section backgrounds & accents */
.brand-steps { background: var(--mint-bg) !important; }
.hero + section:not(.gmp-section):not(.featured-blog):not(.product-catalog), .hero + .hero-content { background: var(--bg-soft); }
.step-number { color: var(--emerald-2) !important; }
.step-icon { color: var(--emerald-2); }
.hero-content h1, .hero-content h1[style] { -webkit-text-fill-color: var(--forest) !important; color: var(--forest) !important; }
.hero::after { background: linear-gradient(180deg, rgba(11,138,66,.10) 0%, rgba(6,55,28,.50) 100%); }
.product-card:hover, .sub-product-card:hover, .blog-card:hover, .promo-card:hover, .service-item:hover, .step:hover, .toothpaste-card:hover, .balm-card:hover, .hair-detail-card:hover { border-color: rgba(16,160,80,.45); }
.home-faq details[open], .page-faq details[open] { border-color: rgba(16,160,80,.5); }
.contact-form-card input:focus, .contact-form-card select:focus, .contact-form-card textarea:focus { border-color: var(--emerald-2); box-shadow: 0 0 0 4px rgba(16,160,80,.16); }
.floating-cta-call { background: var(--btn-grad); }
.cookie-btn { border-color: var(--emerald); }
.cookie-btn-primary { background: var(--btn-grad); border-color: transparent; }
.cookie-btn-secondary { color: var(--emerald); }
.cookie-consent-text a { color: var(--emerald); }

/* Footer: lighter, fresher forest */
.site-footer { background: linear-gradient(160deg, #06371c 0%, #0a6a33 100%); }
.site-footer h2 { color: #f0d9a0; }

/* Contact quick buttons */
.contact-btn.btn-line { background: linear-gradient(135deg, #06b84f, #06c755) !important; color: #fff; }
.contact-btn.btn-form { background: var(--btn-grad) !important; color: #fff; }
.contact-btn.btn-phone { background: linear-gradient(135deg, #0a6a33, #0b8a42) !important; color: #fff; }
.contact-btn { border: 0; box-shadow: var(--shadow-glow); }
