/*
Theme Name: SON Postbiotic
Theme URI: https://sonpharma.vn/
Author: SON Pharma
Description: Theme WordPress chuyên biệt cho hệ sản phẩm SON Postbiotic P50 và PB30.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: son-postbiotic
*/

:root {
  --son-blue: #0099d8;
  --son-deep: #006ea8;
  --son-navy: #08263c;
  --son-gold: #ffb20b;
  --son-cream: #f7f5ef;
  --son-muted: #607484;
  --son-line: rgba(8, 38, 60, .13);
  --son-radius: 28px;
  --son-max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--son-navy); background: #fff; font-family: "Aptos", "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.72; letter-spacing: .004em; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.son-wrap { width: min(calc(100% - 48px), var(--son-max)); margin-inline: auto; }
.son-section { padding: 112px 0; }
.son-eyebrow { margin: 0 0 18px; color: var(--son-deep); font-size: 12px; font-weight: 850; letter-spacing: .2em; line-height: 1.3; text-transform: uppercase; }
.son-title { margin: 0; font-size: clamp(38px, 4.3vw, 64px); font-weight: 850; letter-spacing: -.045em; line-height: 1.08; text-wrap: balance; }
.son-copy { max-width: 690px; margin: 24px 0 0; color: var(--son-muted); font-size: 17px; line-height: 1.75; }
.son-section-head { margin-bottom: 52px; }
.son-section-head.center { text-align: center; }
.son-section-head.center .son-copy { margin-inline: auto; }
.son-button { display: inline-flex; min-height: 52px; padding: 0 26px; align-items: center; justify-content: center; border: 0; border-radius: 13px; background: var(--son-navy); color: #fff; font-weight: 800; letter-spacing: .01em; transition: .2s ease; }
.son-button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(8,38,60,.17); }
.son-button.light { background: #fff; color: var(--son-navy); }
.son-text-link { font-weight: 800; }

.son-announcement { min-height: 34px; display: grid; place-items: center; padding: 7px 20px; background: var(--son-navy); color: #d9f6ff; font-size: 11px; letter-spacing: .1em; line-height: 1.35; text-align: center; text-transform: uppercase; }
.son-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(8,38,60,.07); backdrop-filter: blur(16px); }
.son-header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.son-logo { display: inline-flex; flex-direction: column; flex: 0 0 auto; line-height: .8; }
.son-logo img { max-height: 58px; width: auto; }
.son-logo-word { font-size: 31px; font-weight: 950; letter-spacing: -.08em; }
.son-logo-word i { color: var(--son-blue); font-style: normal; }
.son-logo small { margin-top: 8px; font-size: 9px; font-weight: 850; letter-spacing: .2em; }
.son-nav ul { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.son-nav a { font-size: 14px; font-weight: 700; }
.son-nav li:last-child a { padding: 11px 18px; border-radius: 11px; background: var(--son-blue); color: #fff; }
.son-menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
.son-menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--son-navy); }

.son-hero { min-height: 720px; display: grid; grid-template-columns: minmax(0, .94fr) minmax(520px, 1.06fr); align-items: center; position: relative; overflow: hidden; }
.son-hero::after { content: ""; position: absolute; z-index: -1; inset: 0 0 0 48%; background: radial-gradient(circle at 54% 48%, #bdeef9 0, #edfaff 46%, #fff 75%); }
.son-hero-copy { padding: 74px 0 84px; }
.son-hero-title { max-width: 760px; margin: 0; font-size: clamp(48px, 5.4vw, 78px); font-weight: 900; letter-spacing: -.055em; line-height: 1.08; }
.son-hero-title .line { display: block; white-space: nowrap; }
.son-hero-title .accent { color: var(--son-blue); }
.son-hero-lead { max-width: 620px; margin: 30px 0; color: var(--son-muted); font-size: 18px; line-height: 1.75; }
.son-hero-actions { display: flex; align-items: center; gap: 28px; }
.son-hero-visual { min-height: 620px; display: grid; place-items: center; padding: 36px 0 36px 30px; }
.son-hero-visual img { width: 100%; max-height: 620px; object-fit: contain; filter: drop-shadow(0 30px 38px rgba(0,80,120,.2)); }
.son-proof { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 54px; padding-top: 24px; border-top: 1px solid var(--son-line); }
.son-proof-item { padding-right: 20px; }
.son-proof-item strong { display: block; font-size: 22px; line-height: 1.1; }
.son-proof-item span { display: block; margin-top: 5px; color: var(--son-muted); font-size: 11px; letter-spacing: .06em; line-height: 1.35; text-transform: uppercase; }

.son-trust { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--son-line); }
.son-trust-item { min-height: 120px; display: flex; align-items: center; gap: 16px; padding: 26px 34px; border-right: 1px solid var(--son-line); }
.son-trust-item:last-child { border-right: 0; }
.son-trust-icon { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 50%; background: #e7f8fd; color: var(--son-blue); font-size: 22px; }
.son-trust-item strong, .son-trust-item small { display: block; }
.son-trust-item small { margin-top: 3px; color: var(--son-muted); }

.son-tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--son-line); border-radius: var(--son-radius); overflow: hidden; }
.son-tech-card { min-height: 330px; padding: 38px; border-right: 1px solid var(--son-line); }
.son-tech-card:last-child { border-right: 0; }
.son-tech-card.featured { background: var(--son-navy); color: #fff; }
.son-tech-card .num { color: var(--son-muted); font-size: 12px; letter-spacing: .15em; }
.son-tech-card .icon { margin: 45px 0 22px; color: var(--son-blue); font-size: 48px; line-height: 1; }
.son-tech-card.featured .icon { color: #53d8f3; }
.son-tech-card h3 { margin: 0 0 12px; font-size: 26px; letter-spacing: -.02em; }
.son-tech-card p { margin: 0; color: var(--son-muted); }
.son-tech-card.featured p { color: #b7ccd8; }

.son-products { background: var(--son-cream); }
.son-product-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 25px; }
.son-product-tab { padding: 12px 24px; border: 1px solid var(--son-line); border-radius: 12px; background: #fff; color: var(--son-muted); font-weight: 900; cursor: pointer; }
.son-product-tab.active { background: var(--son-navy); color: #fff; }
.son-product-showcase { min-height: 590px; display: grid; grid-template-columns: 52% 48%; overflow: hidden; border-radius: 34px; background: var(--son-blue); color: #fff; }
.son-product-showcase.pb30 { background: var(--son-gold); }
.son-product-copy { align-self: center; padding: 58px 26px 58px 64px; }
.son-product-kicker { margin: 0 0 22px; font-size: 12px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.son-product-title { margin: 0; font-size: clamp(35px, 3.45vw, 51px); font-weight: 850; letter-spacing: -.04em; line-height: 1.12; white-space: nowrap; }
.son-product-desc { max-width: 610px; margin: 24px 0; font-size: 17px; line-height: 1.72; }
.son-product-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 30px 0; }
.son-product-fact { min-width: 132px; padding: 4px 20px; border-left: 2px solid rgba(255,255,255,.48); }
.son-product-fact:first-child { padding-left: 16px; }
.son-product-fact strong, .son-product-fact span { display: block; }
.son-product-fact strong { font-size: 19px; }
.son-product-fact span { font-size: 11px; line-height: 1.35; opacity: .88; }
.son-product-media { min-width: 0; display: grid; place-items: center; padding: 24px; background: rgba(255,255,255,.1); }
.son-product-media img { width: 100%; height: 100%; max-height: 540px; object-fit: contain; object-position: center; border-radius: 24px; }
.son-product-ingredients { display: grid; grid-template-columns: 200px 1fr; gap: 28px; margin-top: 18px; padding: 25px 30px; border: 1px solid var(--son-line); border-radius: 17px; background: #fff; }
.son-product-ingredients b:first-child { color: var(--son-deep); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.son-product-ingredients p { margin: 0; color: var(--son-muted); }

.son-testimonials { background: #eaf9fd; overflow: hidden; }
.son-slider { position: relative; }
.son-slider-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.son-slider-track::-webkit-scrollbar { display: none; }
.son-testimonial { min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; padding: 32px; border-radius: 22px; background: #fff; box-shadow: 0 18px 40px rgba(0,93,136,.08); scroll-snap-align: start; }
.son-stars { color: var(--son-gold); letter-spacing: .12em; }
.son-testimonial blockquote { margin: 24px 0; color: #375365; font-size: 17px; }
.son-customer { display: flex; align-items: center; gap: 13px; }
.son-customer img, .son-avatar-placeholder { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.son-avatar-placeholder { display: grid; place-items: center; background: var(--son-blue); color: #fff; font-weight: 900; }
.son-customer strong, .son-customer small { display: block; }
.son-customer small { color: var(--son-muted); }
.son-slider-controls { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.son-slider-button { width: 46px; height: 46px; border: 1px solid var(--son-line); border-radius: 50%; background: #fff; color: var(--son-navy); cursor: pointer; }
.son-empty { padding: 30px; border: 1px dashed rgba(8,38,60,.2); border-radius: 18px; color: var(--son-muted); text-align: center; }

.son-guide-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: center; }
.son-dose-card { padding: 42px; border-radius: var(--son-radius); background: var(--son-navy); color: #fff; box-shadow: 18px 18px 0 #c8effc; }
.son-dose-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.18); }
.son-dose-top span { color: #61ddf4; font-weight: 900; letter-spacing: .12em; }
.son-dose-main { display: flex; align-items: center; gap: 20px; padding: 30px 0; }
.son-dose-main > strong { color: var(--son-gold); font-size: 96px; line-height: .8; }
.son-dose-main b, .son-dose-main small { display: block; }
.son-dose-main b { font-size: 25px; }
.son-dose-main small { color: #abc2cf; }
.son-dose-note { margin: 0; color: #9fb6c4; font-size: 12px; }

.son-dealers { background: var(--son-cream); }
.son-dealer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.son-dealer { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; padding: 24px; border: 1px solid var(--son-line); border-radius: 18px; background: #fff; text-align: center; transition: .2s ease; }
.son-dealer:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(8,38,60,.09); }
.son-dealer img { width: 150px; height: 62px; object-fit: contain; }
.son-dealer strong { font-size: 14px; }
.son-dealer small { color: var(--son-muted); }

.son-journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.son-post-card { overflow: hidden; border: 1px solid var(--son-line); border-radius: 22px; background: #fff; }
.son-post-thumb { aspect-ratio: 16/10; overflow: hidden; background: #eaf9fd; }
.son-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.son-post-card:hover .son-post-thumb img { transform: scale(1.035); }
.son-post-body { padding: 26px; }
.son-post-meta { color: var(--son-deep); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.son-post-card h3 { margin: 12px 0; font-size: 23px; line-height: 1.28; letter-spacing: -.025em; }
.son-post-card p { margin: 0; color: var(--son-muted); }
.son-more { display: inline-block; margin-top: 20px; color: var(--son-deep); font-weight: 800; }

.son-cta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 60px; padding: 72px; border-radius: 34px; background: var(--son-cream); }
.son-cta-mark { width: 260px; height: 260px; display: grid; place-items: center; border-radius: 50%; background: var(--son-blue); color: #fff; box-shadow: 0 0 0 34px rgba(0,153,216,.09); font-size: 58px; font-weight: 950; letter-spacing: -.07em; }
.son-cta-actions { display: flex; align-items: center; gap: 25px; margin-top: 30px; }

.son-footer { padding: 68px 0 28px; background: var(--son-navy); color: #fff; }
.son-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.14); }
.son-footer-top > p { color: #abc0cc; }
.son-footer-grid { display: grid; grid-template-columns: 1.2fr 1.2fr .8fr; gap: 52px; padding: 42px 0; }
.son-footer-grid small { display: block; margin-bottom: 8px; color: #829cab; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.son-footer-grid strong { display: block; font-size: 14px; }
.son-footer-grid p { margin: 8px 0 0; color: #9fb5c1; font-size: 13px; }
.son-legal { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); color: #819aa8; font-size: 11px; }
.son-legal p { max-width: 800px; margin: 0; }

.son-page-hero { padding: 90px 0 65px; background: #eaf9fd; }
.son-page-hero h1 { max-width: 980px; margin: 0; font-size: clamp(42px, 5vw, 70px); line-height: 1.08; letter-spacing: -.045em; }
.son-content-wrap { width: min(calc(100% - 48px), 820px); margin: 0 auto; padding: 75px 0 110px; }
.son-content-wrap .wp-post-image { margin-bottom: 35px; border-radius: 22px; }
.son-entry-content { color: #304d5e; font-size: 18px; }
.son-entry-content h2, .son-entry-content h3 { color: var(--son-navy); line-height: 1.25; }
.son-pagination { margin-top: 45px; }

@media (min-width: 1100px) {
  .son-section-head .son-title { white-space: nowrap; }
}

@media (max-width: 1080px) {
  .son-nav ul { gap: 18px; }
  .son-hero { grid-template-columns: 1fr 1fr; }
  .son-hero-title { font-size: clamp(44px, 5vw, 62px); }
  .son-product-title { font-size: 37px; white-space: normal; }
  .son-product-copy { padding-left: 42px; }
  .son-dealer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .son-menu-toggle { display: block; }
  .son-nav { display: none; position: absolute; top: 80px; left: 24px; right: 24px; padding: 24px; border-radius: 18px; background: #fff; box-shadow: 0 20px 45px rgba(8,38,60,.15); }
  .son-nav.open { display: block; }
  .son-nav ul { flex-direction: column; align-items: stretch; }
  .son-hero { grid-template-columns: 1fr; }
  .son-hero::after { inset: 48% 0 0; }
  .son-hero-copy { padding-bottom: 20px; }
  .son-hero-visual { min-height: 460px; padding-left: 0; }
  .son-tech-grid { grid-template-columns: 1fr; }
  .son-tech-card { min-height: 0; border-right: 0; border-bottom: 1px solid var(--son-line); }
  .son-product-showcase { grid-template-columns: 1fr; }
  .son-product-copy { padding: 46px; }
  .son-product-media { min-height: 420px; }
  .son-slider-track { grid-auto-columns: calc((100% - 20px) / 2); }
  .son-guide-grid { grid-template-columns: 1fr; }
  .son-journal-grid { grid-template-columns: repeat(2, 1fr); }
  .son-cta { grid-template-columns: 1fr; }
  .son-cta-mark { width: 210px; height: 210px; }
  .son-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .son-wrap { width: min(calc(100% - 32px), var(--son-max)); }
  .son-section { padding: 78px 0; }
  .son-title { font-size: 36px; line-height: 1.13; }
  .son-hero-title { font-size: clamp(40px, 12vw, 52px); line-height: 1.08; }
  .son-hero-title .line { white-space: normal; }
  .son-hero-actions, .son-cta-actions { align-items: flex-start; flex-direction: column; }
  .son-hero-visual { min-height: 350px; }
  .son-proof, .son-trust { grid-template-columns: 1fr; }
  .son-proof-item { margin-bottom: 17px; }
  .son-trust-item { border-right: 0; border-bottom: 1px solid var(--son-line); }
  .son-tech-card { padding: 28px; }
  .son-product-tabs { justify-content: flex-start; }
  .son-product-showcase { min-height: 0; }
  .son-product-copy { padding: 34px 24px; }
  .son-product-title { font-size: 35px; }
  .son-product-media { min-height: 300px; padding: 14px; }
  .son-product-media img { max-height: 360px; }
  .son-product-ingredients { grid-template-columns: 1fr; gap: 8px; }
  .son-slider-track { grid-auto-columns: 88%; }
  .son-dose-card { padding: 27px; box-shadow: 9px 9px 0 #c8effc; }
  .son-dealer-grid, .son-journal-grid { grid-template-columns: 1fr; }
  .son-cta { padding: 44px 26px; }
  .son-footer-top, .son-legal { align-items: flex-start; flex-direction: column; }
  .son-footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
