/* ============================================
   TAKEOFF UAV — MAIN STYLESHEET
   Tactical dark theme · JetBrains Mono
   ============================================ */

/* Font loaded via wp_enqueue_style in functions.php */
@font-face {
    font-family: 'UAV OSD Mono';
    src: url('../assets/fonts/UAV-OSD-Mono.ttf') format('truetype');
    font-display: swap;
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'UAV OSD Sans Mono';
    src: url('../assets/fonts/UAV-OSD-Sans-Mono.ttf') format('truetype');
    font-display: swap;
    font-weight: 400;
    font-style: normal;
}

/* ── RESET & BASE ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --font-wordmark: 'UAV OSD Mono', 'UAV OSD Sans Mono', 'JetBrains Mono', monospace;
    --nav-h: 72px;
    --max-w: 1280px;
    --section-pad: 120px 5%;
}

/* Dark — palette: #08131b · #123527 · #64e5ac · #98ffb6 · #c9a400 · #9f1018 */
html[data-theme="dark"] {
    --bg: #08131b;
    --bg2: #0a1a22;
    --bg3: #123527;
    --card: #152f28;
    --card-rgb: 21, 47, 40;
    --panel: #061016;
    --border: #1e4a3d;
    --border2: #2f6b55;
    --primary: #64e5ac;
    --primary-dim: #48c491;
    --primary-dark: #123527;
    --primary-rgb: 100, 229, 172;
    --primary-glow-rgb: 152, 255, 182;
    --bg-rgb: 8, 19, 27;
    --text: #b8e8d4;
    --text-dim: #7bc4a8;
    --text-muted: #4a7a6a;
    --on-primary: #08131b;
    --hero-radial-mid: #123527;
    --accent-gold: #c9a400;
    --accent-gold-rgb: 201, 164, 0;
    --accent-mint-bright: #98ffb6;
    --accent-danger: #9f1018;
    --accent-danger-rgb: 159, 16, 24;
    --hairline: rgba(255, 255, 255, 0.08);
    --hairline-strong: rgba(255, 255, 255, 0.1);
}

/* Light — đen / trắng / xám, contrast tốt hơn */
html[data-theme="light"] {
    --bg: #f8f8f8;
    --bg2: #f0f0f0;
    --bg3: #e6e6e6;
    --card: #ffffff;
    --card-rgb: 255, 255, 255;
    --panel: #ececec;
    --border: #d0d0d0;
    --border2: #909090;
    --primary: #0f0f0f;
    --primary-dim: #2e2e2e;
    --primary-dark: #000000;
    --primary-rgb: 15, 15, 15;
    --primary-glow-rgb: 15, 15, 15;
    --bg-rgb: 248, 248, 248;
    --text: #0f0f0f;
    --text-dim: #333333;
    --text-muted: #5a5a5a;
    --on-primary: #ffffff;
    --hero-radial-mid: #d4d4d4;
    --accent-gold: #7a5800;
    --accent-gold-rgb: 122, 88, 0;
    --accent-mint-bright: #111111;
    --accent-danger: #9f1018;
    --accent-danger-rgb: 159, 16, 24;
    --hairline: rgba(0, 0, 0, 0.12);
    --hairline-strong: rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    cursor: none;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    cursor: none;
    font-family: var(--font-mono);
}

/* Tránh con trỏ hệ thống (bàn tay) chồng lên custom cursor */
input[type='text'],
input[type='email'],
input[type='tel'],
input[type='search'],
input[type='url'],
textarea {
    cursor: text;
}

input[type='submit'],
input[type='button'],
input[type='checkbox'],
input[type='radio'],
select,
summary,
[role='button'],
label,
.nav-hamburger,
.theme-toggle,
.social-btn,
.hero-dot,
.hero-arrow,
.cap-prev,
.cap-next,
.faq-question {
    cursor: none;
}

/* ── CUSTOM CURSOR (vị trí do JS: translate3d — không transition transform) ── */
.cursor,
.cursor-dot {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
    backface-visibility: hidden;
    contain: layout style paint;
}

.cursor {
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--primary);
    border-radius: 50%;
    /* Chỉ tween kích thước/nền — tránh tween transform xung đột với JS */
    transition: width 0.15s ease-out, height 0.15s ease-out, background-color 0.15s ease-out, border-color 0.15s ease-out;
}

.cursor-dot {
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

.cursor.cursor-hover {
    width: 40px;
    height: 40px;
    background: rgba(var(--primary-glow-rgb), .14);
}

/* ── UTILITY ── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 5%;
}

.tag {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--accent-gold);
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -1px;
}

.section-desc {
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-dim);
    max-width: 560px;
}

/* Mọi nút (trừ hamburger / theme): vệt sáng LTR — a.btn vẫn dùng .btn */
button:not(.nav-hamburger):not(.theme-toggle),
input[type='submit'].btn,
.btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    cursor: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1.5px;
    border: 1.5px solid var(--border2);
    color: var(--primary);
    text-transform: lowercase;
}

/* Nút outline: nền xanh quét trái → phải (background vẽ sau chữ) */
.btn:not(.btn-filled) {
    background-color: transparent;
    background-image: linear-gradient(90deg, var(--primary) 0%, var(--primary) 100%);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 0% 100%;
    transition:
        background-size 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.3s ease 0.12s,
        border-color 0.3s ease;
}

.btn:not(.btn-filled):hover {
    background-size: 100% 100%;
    color: var(--on-primary);
    border-color: var(--primary);
}

/* Vệt sáng quét trái → phải (::before nằm dưới chữ theo thứ tự vẽ) */
button:not(.nav-hamburger):not(.theme-toggle)::before,
input[type='submit'].btn::before,
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -70%;
    width: 55%;
    height: 100%;
    background: linear-gradient(105deg,
            transparent 0%,
            rgba(var(--primary-rgb), 0.2) 42%,
            rgba(255, 255, 255, 0.14) 50%,
            rgba(var(--primary-rgb), 0.2) 58%,
            transparent 100%);
    transform: skewX(-10deg);
    pointer-events: none;
    opacity: 0;
    z-index: 0;
}

button:not(.nav-hamburger):not(.theme-toggle):hover::before,
input[type='submit'].btn:hover::before,
.btn:hover::before {
    animation: takeoff-btn-shine 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes takeoff-btn-shine {
    0% {
        transform: translateX(0) skewX(-10deg);
        opacity: 0;
    }

    12% {
        opacity: 1;
    }

    100% {
        transform: translateX(340%) skewX(-10deg);
        opacity: 0;
    }
}

.btn-filled {
    background-color: var(--primary);
    background-image: none;
    color: var(--on-primary);
    border-color: var(--primary);
    font-weight: 700;
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.35s ease;
}

.btn-filled:hover {
    background-color: transparent;
    color: var(--primary);
}

.btn-filled::before,
button.btn-filled::before,
.footer-newsletter button::before {
    background: linear-gradient(105deg,
            transparent 0%,
            rgba(255, 255, 255, 0.35) 45%,
            rgba(255, 255, 255, 0.55) 50%,
            rgba(255, 255, 255, 0.35) 55%,
            transparent 100%);
}

/* ── SCROLL REVEAL (set by GSAP) ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
}

/* ──────────────────────────────────────────
         01. HEADER / NAV
      ────────────────────────────────────────── */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: background .4s, border-color .4s;
}

#site-header.scrolled {
    background: rgba(var(--bg-rgb), .92);
    backdrop-filter: blur(12px);
    border-color: var(--border);
}

#site-header nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px 5px 5px;
    border: 1px solid var(--border2);
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.07);
    color: var(--text-dim);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.theme-toggle__track {
    position: relative;
    width: 30px;
    height: 17px;
    border-radius: 999px;
    background: var(--border);
    flex-shrink: 0;
}

.theme-toggle__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--primary-dim);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] .theme-toggle__thumb {
    transform: translateX(13px);
}

.theme-toggle__label--light {
    display: none;
}

html[data-theme="light"] .theme-toggle__label--dark {
    display: none;
}

html[data-theme="light"] .theme-toggle__label--light {
    display: inline;
}

.nav-logo {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo__img {
    display: block;
    height: 200px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    /* Trong light mode giữ nguyên màu; trong dark mode thêm độ sáng nhẹ nếu cần */
    filter: none;
    transition: opacity 0.2s;
}

.nav-logo:hover .nav-logo__img {
    opacity: 0.85;
}

/* Nếu logo đen (SVG/PNG nền trong) thì tự động đảo màu trong dark mode */
html[data-theme="dark"] .nav-logo__img {
    filter: brightness(1.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--text-dim);
    text-transform: uppercase;
    transition: color .2s;
}

.nav-menu a:hover {
    color: var(--primary);
}

/* Gạch dưới menu (trái → phải), không áp dụng cho nút .btn */
.nav-menu li>a:not(.btn) {
    position: relative;
    padding-bottom: 5px;
}

.nav-menu li>a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    pointer-events: none;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0.85;
}

.nav-menu li>a:not(.btn):hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px !important;
}

/* CTA trong nav: .nav-menu a có specificity cao hơn .btn-filled — ép màu chữ đúng */
.nav-menu a.btn-filled,
.nav-menu a.btn-filled:visited {
    color: var(--on-primary);
}

.nav-menu a.btn-filled:hover {
    color: var(--primary);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--primary);
    transition: all .3s;
}

/* ──────────────────────────────────────────
         02. HERO (Carousel)
      ────────────────────────────────────────── */
#hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--bg);
    /* fallback khi ảnh chưa load */
    z-index: 0;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--primary-rgb), .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), .04) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Carousel */
.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding-bottom: 100px;
    visibility: hidden;
    opacity: 0;
    will-change: opacity;
}

.hero-slide.active {
    visibility: visible;
    opacity: 1;
}

/* ── Ảnh full cover — làm background của slide ── */
.hero-slide .hero-drone-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    pointer-events: none;
    overflow: hidden;
    animation: none;
    transform: none;
    z-index: 0;
}

.hero-slide .hero-drone-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: 1;
    filter: brightness(0.72) saturate(1.1);
    will-change: transform;
    transition: transform 0.7s ease, opacity 0.7s ease;
}

/* Gradient overlay — cho text đọc được */
.hero-slide .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(105deg,
            rgba(8, 19, 27, 0.90) 0%,
            rgba(8, 19, 27, 0.55) 45%,
            rgba(8, 19, 27, 0.10) 100%),
        linear-gradient(to top,
            rgba(8, 19, 27, 0.80) 0%,
            rgba(8, 19, 27, 0.20) 40%,
            transparent 70%);
}

/* Light mode: overlay nhạt hơn */
html[data-theme="light"] .hero-slide .hero-overlay {
    background:
        linear-gradient(105deg,
            rgba(20, 20, 20, 0.90) 0%,
            rgba(20, 20, 20, 0.62) 45%,
            rgba(20, 20, 20, 0.08) 100%),
        linear-gradient(to top,
            rgba(20, 20, 20, 0.78) 0%,
            rgba(20, 20, 20, 0.24) 40%,
            transparent 70%);
}

/* Light mode hero: tăng tương phản chữ trên ảnh */
html[data-theme="light"] .hero-eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] .hero-title {
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] .hero-sub {
    color: rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] .hero-counter {
    color: rgba(255, 255, 255, 0.62);
}

html[data-theme="light"] .hero-idx {
    color: #ffffff;
}

html[data-theme="light"] .hero-dot {
    background: rgba(255, 255, 255, 0.35);
}

html[data-theme="light"] .hero-dot.active {
    background: #ffffff;
}

html[data-theme="light"] .hero-arrow {
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(0, 0, 0, 0.52);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

html[data-theme="light"] .hero-arrow:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: #111111;
}

/* Light mode: outline button trong hero cần chữ sáng để không chìm */
html[data-theme="light"] .hero-actions .btn:not(.btn-filled) {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.75);
}

html[data-theme="light"] .hero-actions .btn:not(.btn-filled):hover {
    color: #111111;
    border-color: #ffffff;
}

html[data-theme="light"] .hero-stat-num {
    color: #ffffff;
}

html[data-theme="light"] .hero-stat-label {
    color: rgba(255, 255, 255, 0.62);
}

/* Force contrast for all hero text in light mode */
html[data-theme="light"] #hero .hero-title,
html[data-theme="light"] #hero .hero-sub,
html[data-theme="light"] #hero .hero-eyebrow,
html[data-theme="light"] #hero .hero-counter,
html[data-theme="light"] #hero .hero-stat-num,
html[data-theme="light"] #hero .hero-stat-label {
    color: #ffffff !important;
}

html[data-theme="light"] #hero .hero-title {
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] #hero .hero-actions .btn:not(.btn-filled) {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.75) !important;
}

.hero-slide .hero-content {
    position: relative;
    z-index: 2;
    padding: 0 5%;
}

.hero-eyebrow {
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--text-muted);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--accent-gold);
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 8rem);
    font-weight: 700;
    color: var(--primary);
    line-height: .95;
    letter-spacing: -3px;
    margin-bottom: 32px;
}

.hero-title span {
    display: block;
}

.hero-sub {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.8;
    max-width: 400px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Carousel navigation */
.hero-nav {
    position: absolute;
    bottom: 36px;
    left: 5%;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-counter {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.hero-idx {
    color: var(--primary);
    font-weight: 700;
}

.hero-sep {
    margin: 0 2px;
}

.hero-progress {
    width: 100px;
    height: 1px;
    background: var(--border);
    overflow: hidden;
}

.hero-progress-fill {
    height: 100%;
    background: var(--primary);
    transform-origin: left;
    transform: scaleX(0);
    will-change: transform;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 28px;
    height: 2px;
    background: var(--border2);
    border: none;
    padding: 0;
    cursor: none;
    transition: background .3s, width .3s;
}

.hero-dot.active {
    width: 44px;
    background: var(--primary);
}

.hero-arrows {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 4px;
}

.hero-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border2);
    border-radius: 50%;
    background: rgba(var(--bg-rgb), 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 22px;
    line-height: 1;
    padding: 0;
    cursor: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.hero-arrow:hover {
    background: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
}

.hero-arrow:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Stats */
.hero-stats {
    position: absolute;
    bottom: 100px;
    right: 5%;
    display: flex;
    gap: 40px;
    z-index: 3;
}

.hero-stat-item {
    text-align: right;
}

.hero-stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.hero-stat-label {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 3;
}

.scroll-indicator span {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(var(--primary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ──────────────────────────────────────────
         03. ABOUT (align design: black panel, lime type, rounded stat cards)
      ────────────────────────────────────────── */
#about {
    padding: clamp(100px, 12vw, 160px) 5%;
    background: var(--panel);
    border-top: 1px solid rgba(var(--primary-rgb), 0.14);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(48px, 7vw, 112px);
    align-items: center;
}

#about .about-tag {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.22em;
    margin-bottom: 22px;
    opacity: 0.95;
}

.about-heading,
#about .about-left .about-heading {
    margin: 0 0 28px;
    max-width: 15em;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
    font-weight: 700;
    color: var(--primary);
}

#about .about-desc {
    margin-bottom: 40px;
    max-width: 38em;
    font-size: 14px;
    line-height: 1.85;
    color: color-mix(in srgb, var(--primary) 78%, transparent);
}

#about .about-desc p {
    margin: 0 0 1em;
}

#about .about-desc p:last-child {
    margin-bottom: 0;
}

#about .about-cta {
    border-radius: 8px;
    padding: 14px 26px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
    background: transparent;
    border: none;
}

.about-stat {
    background: rgba(var(--card-rgb), 0.88);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    padding: clamp(24px, 4vw, 36px) clamp(22px, 3vw, 28px);
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.about-stat:hover {
    background: rgba(var(--card-rgb), 0.96);
    border-color: rgba(var(--primary-rgb), 0.28);
    box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.08);
}

.about-stat-num {
    font-size: clamp(2.25rem, 3.8vw, 2.85rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
}

.about-stat-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: color-mix(in srgb, var(--primary) 82%, transparent);
    text-transform: uppercase;
}

/* ──────────────────────────────────────────
         04. CAPABILITIES — redesign
      ────────────────────────────────────────── */
#capabilities {
    padding: clamp(88px, 11vw, 140px) 0 clamp(56px, 7vw, 80px);
    border-top: 1px solid var(--border);
    background-color: var(--bg);
}

.cap-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 56px;
    padding: 0 5%;
}

.cap-header-tag {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.22em;
    margin-bottom: 20px;
}

.cap-header-title {
    margin: 0 0 20px;
    font-size: clamp(1.85rem, 4vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.cap-header-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.85;
    color: color-mix(in srgb, var(--primary) 78%, transparent);
}

/* ── Carousel wrapper ── */
.cap-carousel-outer {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 8px 0 32px;
}

.cap-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.cap-track {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: clamp(14px, 2vw, 24px);
    width: max-content;
    will-change: transform;
    padding: 0 max(5%, calc((100vw - min(var(--max-w), 100% - 10%)) / 2));
    box-sizing: border-box;
}

.cap-slide {
    flex: 0 0 clamp(300px, 78vw, 860px);
    position: relative;
    z-index: 1;
}

.cap-slide.is-current {
    z-index: 2;
}

.cap-slide--clone .cap-card {
    pointer-events: none;
}

/* Tắt transition khi snap clone */
.cap-track.cap-no-transition *,
.cap-track.cap-no-transition {
    transition: none !important;
    animation: none !important;
}

/* ── Card ── */
.cap-card {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--hairline-strong);
    transition:
        border-color 0.35s,
        box-shadow 0.35s,
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.45s ease,
        filter 0.45s ease;
}

/* Slide không active — mờ và nhỏ hơn */
.cap-slide:not(.is-current) .cap-card {
    opacity: 0.38;
    filter: blur(4px);
    transform: scale(0.97);
}

.cap-slide:not(.is-current) .cap-card:hover {
    opacity: 0.55;
    filter: blur(2px);
}

@media (prefers-reduced-motion: reduce) {
    .cap-slide:not(.is-current) .cap-card {
        filter: none;
        transform: none;
    }
}

.cap-card:hover {
    border-color: rgba(var(--primary-rgb), 0.45);
    box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.12),
        0 12px 48px rgba(0, 0, 0, 0.25);
}

.cap-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* ── Ảnh background ── */
.cap-card-img {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 360px;
    max-height: min(72vh, 880px);
    background: var(--bg3);
    overflow: hidden;
}

/* Overlay: top mờ + bottom đậm để chữ đọc được */
.cap-card-img::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.12) 0%,
            rgba(0, 0, 0, 0.18) 40%,
            rgba(0, 0, 0, 0.72) 75%,
            rgba(0, 0, 0, 0.88) 100%);
}

.cap-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) saturate(0.9);
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
    display: block;
}

.cap-card:hover .cap-card-img img {
    transform: scale(1.05);
    filter: brightness(0.78) saturate(0.95);
}

.cap-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(3rem, 12vw, 5rem);
    opacity: 0.1;
    color: var(--primary);
}

/* ── Nội dung đè lên ảnh ── */
.cap-card-body {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(20px, 3.5vw, 36px) clamp(20px, 4vw, 40px);
    pointer-events: none;
}

.cap-card-tag {
    display: block;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
    opacity: 0.85;
}

.cap-card-title {
    font-size: clamp(1.5rem, 3.2vw, 2.4rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.cap-card-desc {
    font-size: 13px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 20px;
    max-width: 52ch;
    /* hiển thị tối đa 3 dòng */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cap-card-cta {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: lowercase;
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.6);
    padding: 7px 16px;
    border-radius: 999px;
    width: fit-content;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.cap-card:hover .cap-card-cta {
    background: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
}

/* ── Footer: dots + arrows ── */
.cap-strip-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 12px;
}

.cap-prev,
.cap-next {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border2);
    border-radius: 50%;
    background: rgba(var(--bg-rgb), 0.5);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-size: 16px;
    padding: 0;
    cursor: none;
}

.cap-prev:hover,
.cap-next:hover {
    background: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
}

.cap-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cap-dot {
    width: 32px;
    height: 2px;
    padding: 0;
    border: none;
    background: var(--border2);
    transition: background 0.3s, width 0.3s;
    cursor: none;
}

.cap-dot.active {
    background: var(--primary);
    width: 48px;
}

/* ──────────────────────────────────────────
         05. PRODUCTS — sticky-left scroll
      ────────────────────────────────────────── */
#products {
    padding-top: clamp(64px, 9vw, 120px);
    border-top: 1px solid var(--border);
    overflow: visible;
}

.products-header-wrap {
    padding-bottom: clamp(40px, 5vw, 72px);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

/* ── sticky layout ─────────────────────────── */
.prod-sticky-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    border-top: 1px solid var(--border);
    margin: 0 max(5%, calc((100vw - min(var(--max-w), 100% - 10%)) / 2));
}

/* Cột trái — sticky */
.prod-img-col {
    position: sticky;
    top: var(--nav-h);
    height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--panel);
}

.prod-img-stage {
    position: relative;
    width: 100%;
    height: 100%;
}

.prod-img-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
    will-change: opacity;
}

.prod-img-item.is-active {
    opacity: 1;
    visibility: visible;
}

.prod-img-item img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    filter: drop-shadow(0 24px 72px rgba(var(--primary-rgb), .14));
}

.prod-img-placeholder {
    font-size: clamp(80px, 12vw, 140px);
    opacity: 0.07;
    color: var(--primary);
    user-select: none;
}

/* Cột phải — scrollable items */
.prod-scroll-col {
    display: flex;
    flex-direction: column;
}

.prod-item {
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding: 72px 52px;
    transition: background 0.35s ease;
    background: transparent;
}

.prod-item:hover {
    background: rgba(var(--primary-rgb), 0.04);
}

.prod-item-inner {
    width: 100%;
}

.prod-desc {
    font-size: 14px;
    line-height: 1.85;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.product-series-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.product-series {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--text-muted);
}

.product-badge {
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--primary);
    color: var(--bg);
    text-transform: uppercase;
}

.product-name {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 32px;
}

.product-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 40px;
    margin-bottom: 40px;
}

.spec-label {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.spec-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    overflow-wrap: anywhere;
}

/* ──────────────────────────────────────────
         05b. HOME PILLARS — 3 file / 3 bố cục
      ────────────────────────────────────────── */
.pillar-sec {
    position: relative;
    border-top: 1px solid var(--border);
    /* Tránh overflow:hidden cắt nội dung / chữ cuối section trên mobile */
    overflow: visible;
}

.pillar-sec__lede {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 5% clamp(48px, 6vw, 72px);
}

.pillar-sec__lede-title {
    margin: 12px 0 10px;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
}

.pillar-sec__lede-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: color-mix(in srgb, var(--primary) 78%, transparent);
}

/* ── 1. Research — split + stats + bento ảnh (tone giống #capabilities / #about) ── */
.pillar-res {
    padding: clamp(88px, 11vw, 140px) 0 clamp(72px, 9vw, 120px);
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.pillar-res__shell {
    padding-top: clamp(8px, 2vw, 24px);
}

.pillar-res__head {
    margin-bottom: clamp(20px, 3vw, 40px);
    padding-bottom: clamp(12px, 2vw, 20px);
    border-bottom: 1px solid var(--hairline);
}

.pillar-res__tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.24em;
    color: var(--primary);
    text-transform: uppercase;
}

.pillar-res__kicker {
    margin: 10px 0 0;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    color: var(--primary);
}

.pillar-res__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    position: relative;
}

.pillar-res__copy {
    min-width: 0;
    text-align: start;
}

.pillar-res__iconrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.pillar-res__chip {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 8px 14px;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    color: color-mix(in srgb, var(--primary) 82%, transparent);
    background: rgba(var(--card-rgb), 0.5);
    transition: border-color 0.25s ease, color 0.25s ease;
}

.pillar-res__chip:hover {
    border-color: rgba(var(--primary-rgb), 0.28);
    color: var(--primary);
}

.pillar-res__title {
    margin: 0 0 16px;
    font-size: clamp(1.85rem, 4.5vw, 3.15rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--primary);
}

.pillar-res__lead {
    margin: 0 0 14px;
    font-size: clamp(15px, 1.8vw, 17px);
    line-height: 1.65;
    color: color-mix(in srgb, var(--primary) 78%, transparent);
    font-weight: 500;
}

.pillar-res__body {
    margin: 0 0 28px;
    font-size: 14px;
    line-height: 1.85;
    color: var(--text-muted);
    max-width: 54ch;
}

.pillar-res__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 28px;
    max-width: 420px;
}

.pillar-res__stat {
    padding: clamp(20px, 3vw, 28px) clamp(18px, 2.5vw, 24px);
    border-radius: 14px;
    border: 1px solid var(--hairline);
    background: rgba(var(--card-rgb), 0.88);
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.pillar-res__stat:hover {
    background: rgba(var(--card-rgb), 0.96);
    border-color: rgba(var(--primary-rgb), 0.28);
    box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.08);
}

.pillar-res__stat-num {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
}

.pillar-res__stat-lbl {
    display: block;
    margin-top: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--primary) 82%, transparent);
}

.pillar-res__media {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 14px;
    min-height: 280px;
    position: relative;
}

.pillar-res__fig {
    margin: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--hairline);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.pillar-res__fig--hero {
    aspect-ratio: 5 / 4;
    min-height: min(42vh, 420px);
}

.pillar-res__fig--side {
    aspect-ratio: 16 / 7;
    max-height: 200px;
}

.pillar-res__fig img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.86) saturate(0.96);
    transition: transform 0.65s ease, filter 0.35s ease;
}

.pillar-res:hover .pillar-res__fig img {
    transform: scale(1.02);
    filter: brightness(0.9) saturate(1);
}

.pillar-res__ph {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: var(--bg3);
}

.pillar-res__ph-grid {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background-image:
        linear-gradient(rgba(var(--primary-rgb), 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.12) 1px, transparent 1px);
    background-size: 24px 24px;
}

.pillar-res__ph-cap {
    position: absolute;
    right: 16px;
    bottom: 12px;
    z-index: 4;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.3em;
    color: rgba(var(--primary-rgb), 0.45);
}

.pillar-res__ph--sm {
    min-height: 120px;
}

@keyframes pillar-ph-scan {
    0% {
        transform: translateY(-115%);
        opacity: 0;
    }

    12% {
        opacity: 1;
    }

    100% {
        transform: translateY(115%);
        opacity: 0.35;
    }
}

@keyframes pillar-ph-bars {
    from {
        transform: scaleY(0.88);
        opacity: 0.5;
    }

    to {
        transform: scaleY(1);
        opacity: 0.88;
    }
}

/* Khi chưa upload ảnh: cân 2 cột + HUD placeholder “đầy” hơn */
.pillar-res--no-media .pillar-res__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(24px, 4vw, 56px);
}

.pillar-res--no-media .pillar-res__media {
    min-height: min(52vh, 560px);
}

.pillar-res--no-media .pillar-res__fig--hero {
    min-height: min(44vh, 500px);
    aspect-ratio: auto;
    flex: 1;
}

.pillar-res--no-media .pillar-res__fig--side {
    max-height: none;
    min-height: 148px;
    aspect-ratio: 16 / 6;
}

.pillar-res__ph {
    color: var(--primary);
    background:
        radial-gradient(ellipse 80% 70% at 80% 100%, rgba(var(--primary-rgb), 0.12), transparent 55%),
        radial-gradient(ellipse 60% 50% at 10% 0%, rgba(var(--primary-rgb), 0.08), transparent 50%),
        var(--bg3);
}

.pillar-res__ph--lab {
    box-shadow:
        inset 0 0 80px rgba(var(--primary-rgb), 0.06),
        0 0 48px rgba(var(--primary-rgb), 0.08);
}

.pillar-res__ph-scan {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 22%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(var(--primary-rgb), 0.18) 45%,
            rgba(var(--primary-rgb), 0.06) 55%,
            transparent 100%);
    animation: pillar-ph-scan 4.8s ease-in-out infinite;
}

.pillar-res__ph-scan--slow {
    animation-duration: 7s;
    animation-delay: -2s;
}

.pillar-res__ph-cr {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 3;
    pointer-events: none;
    border-color: rgba(var(--primary-rgb), 0.5);
}

.pillar-res__ph-cr--tl {
    top: 12px;
    left: 12px;
    border-top: 2px solid;
    border-left: 2px solid;
    border-radius: 2px 0 0 0;
}

.pillar-res__ph-cr--tr {
    top: 12px;
    right: 12px;
    border-top: 2px solid;
    border-right: 2px solid;
    border-radius: 0 2px 0 0;
}

.pillar-res__ph-cr--bl {
    bottom: 12px;
    left: 12px;
    border-bottom: 2px solid;
    border-left: 2px solid;
    border-radius: 0 0 0 2px;
}

.pillar-res__ph-cr--br {
    bottom: 12px;
    right: 12px;
    border-bottom: 2px solid;
    border-right: 2px solid;
    border-radius: 0 0 2px 0;
}

.pillar-res__ph-hudtop {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pillar-res__ph-pill {
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 5px 10px;
    border: 1px solid rgba(var(--primary-rgb), 0.32);
    border-radius: 4px;
    color: rgba(var(--primary-rgb), 0.78);
    background: rgba(0, 0, 0, 0.28);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.06);
}

.pillar-res__ph-wave {
    position: absolute;
    left: 7%;
    right: 7%;
    top: 36%;
    height: 26%;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 0 10px rgba(var(--primary-rgb), 0.25));
}

@keyframes pillar-res-wave-dash {
    to {
        stroke-dashoffset: -180;
    }
}

@keyframes pillar-res-wave-draw {

    0%,
    8% {
        stroke-dashoffset: 1;
        opacity: 0.35;
    }

    42%,
    58% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0.88;
    }
}

@keyframes pillar-res-wave-breathe {

    0%,
    100% {
        opacity: 0.08;
    }

    50% {
        opacity: 0.26;
    }
}

@keyframes pillar-res-bar-glow {

    0%,
    100% {
        box-shadow:
            0 0 10px rgba(var(--primary-rgb), 0.25),
            0 -1px 0 rgba(255, 255, 255, 0.05) inset;
        filter: brightness(1);
    }

    50% {
        box-shadow:
            0 0 22px rgba(var(--primary-rgb), 0.55),
            0 0 36px rgba(var(--primary-rgb), 0.2),
            0 -1px 0 rgba(255, 255, 255, 0.08) inset;
        filter: brightness(1.15);
    }
}

.pillar-res__ph-wave-line--main {
    filter: drop-shadow(0 0 6px rgba(var(--primary-rgb), 0.45));
    animation: pillar-res-wave-draw 5.5s ease-in-out infinite;
}

.pillar-res__ph-wave-line--echo {
    filter: blur(1.5px);
    pointer-events: none;
    animation: pillar-res-wave-breathe 3.2s ease-in-out infinite;
}

.pillar-res__ph-wave-line--trace {
    stroke-dasharray: 6 10;
    animation: pillar-res-wave-dash 18s linear infinite;
}

.pillar-res__ph-wave-fill {
    filter: blur(0.5px);
    opacity: 0.55;
    animation: pillar-res-wave-breathe 4s ease-in-out infinite reverse;
}

.pillar-res__ph-readouts {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 42px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(var(--primary-rgb), 0.45);
}

.pillar-res__ph-readouts--field {
    bottom: 36px;
    gap: 6px 14px;
}

.pillar-res__ph-ro abbr {
    text-decoration: none;
    cursor: help;
}

.pillar-res__ph-ro em {
    font-style: normal;
    color: rgba(var(--primary-rgb), 0.92);
    margin-left: 0.35em;
}

.pillar-res__ph-bars {
    position: absolute;
    left: 9%;
    right: 9%;
    top: 26%;
    bottom: 40%;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3%;
    pointer-events: none;
}

.pillar-res__ph-bars span {
    flex: 1 1 0;
    height: var(--h, 50%);
    min-height: 22%;
    border-radius: 3px 3px 1px 1px;
    background: linear-gradient(180deg,
            rgba(var(--primary-rgb), 0.95) 0%,
            rgba(var(--primary-rgb), 0.35) 42%,
            rgba(var(--primary-rgb), 0.06) 100%);
    box-shadow:
        0 0 14px rgba(var(--primary-rgb), 0.35),
        0 -1px 0 rgba(255, 255, 255, 0.06) inset;
    transform-origin: bottom center;
    animation:
        pillar-ph-bars 2.4s ease-in-out infinite alternate,
        pillar-res-bar-glow 2.8s ease-in-out infinite;
}

.pillar-res__ph-bars span:nth-child(2n) {
    animation-delay: -0.55s;
}

.pillar-res__ph-bars span:nth-child(3n) {
    animation-delay: -1.1s;
}

.pillar-res__ph--field .pillar-res__ph-cap {
    bottom: 10px;
}

@media (prefers-reduced-motion: reduce) {

    .pillar-res__ph-scan,
    .pillar-res__ph-scan--slow {
        animation: none;
        opacity: 0.25;
        transform: translateY(20%);
    }

    .pillar-res__ph-bars span {
        animation: none;
        box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.3);
    }

    .pillar-res__ph-wave-line--trace {
        animation: none;
    }

    .pillar-res__ph-wave-line--main {
        animation: none;
        stroke-dasharray: none;
        stroke-dashoffset: 0;
        opacity: 0.92;
    }

    .pillar-res__ph-wave-line--echo,
    .pillar-res__ph-wave-fill {
        animation: none;
    }
}

/* ── 2. Partnership — logo strip + 2 col + quote + wide img ── */
.pillar-part {
    padding: clamp(88px, 11vw, 140px) 0 clamp(72px, 9vw, 120px);
    background: var(--panel);
    border-top: 1px solid rgba(var(--primary-rgb), 0.14);
}

.pillar-part__intro {
    text-align: center;
    max-width: 820px;
    margin: 0 auto clamp(40px, 5vw, 56px);
    padding: 0 5%;
}

.pillar-part__tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.24em;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
}

.pillar-part__title {
    margin: 14px 0 12px;
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.pillar-part__lead {
    margin: 0 auto;
    max-width: 52ch;
    font-size: 15px;
    line-height: 1.75;
    color: color-mix(in srgb, var(--primary) 78%, transparent);
}

.pillar-part__logobar {
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    background: rgba(var(--card-rgb), 0.35);
    margin-bottom: clamp(32px, 5vw, 48px);
}

.pillar-part__logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(24px, 6vw, 56px);
    padding: 32px 5%;
}

.pillar-part__logo {
    height: 44px;
    padding: 6px 14px;
    border-radius: 12px;
    border: 1px solid var(--hairline);
    background: rgba(var(--bg-rgb), 0.4);
    opacity: 0.9;
    transition:
        opacity 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.pillar-part__logo:hover {
    opacity: 1;
    border-color: rgba(var(--primary-rgb), 0.28);
    box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.08);
}

.pillar-part__logo img {
    height: 100%;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(0.25);
    transition: filter 0.25s ease;
}

.pillar-part__logo:hover img {
    filter: grayscale(0);
}

.pillar-part__twocol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 4vw, 48px);
    margin-bottom: clamp(40px, 5.5vw, 64px);
    position: relative;
    align-items: stretch;
}

.pillar-part__col {
    padding: clamp(22px, 3vw, 28px) clamp(20px, 3vw, 26px);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    background: rgba(var(--card-rgb), 0.88);
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.pillar-part__col:hover {
    background: rgba(var(--card-rgb), 0.96);
    border-color: rgba(var(--primary-rgb), 0.28);
    box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.08);
}

.pillar-part__col-kicker {
    margin: 0 0 12px;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--hairline);
}

.pillar-part__col-body {
    margin: 0;
    font-size: 14px;
    line-height: 1.82;
    color: var(--text-muted);
}

.pillar-part__quote {
    margin: 0 auto clamp(36px, 5vw, 52px);
    max-width: 820px;
    padding: clamp(28px, 4vw, 40px) 5%;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.pillar-part__quote .container {
    padding: 0;
}

.pillar-part__quote .container::before {
    content: '“';
    display: block;
    margin: 0 auto 8px;
    max-width: 52ch;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.25rem, 5vw, 3rem);
    line-height: 1;
    color: rgba(var(--primary-rgb), 0.22);
    text-align: center;
}

.pillar-part__quote p {
    margin: 0;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-style: italic;
    line-height: 1.7;
    color: color-mix(in srgb, var(--primary) 78%, transparent);
    text-align: center;
    max-width: 48ch;
    margin-inline: auto;
}

.pillar-part__wide {
    position: relative;
    margin: 0 0 clamp(32px, 5vw, 48px);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    max-height: min(52vh, 520px);
    overflow: hidden;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.pillar-part__wide::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg,
            rgba(var(--bg-rgb), 0.15) 0%,
            transparent 35%,
            rgba(var(--bg-rgb), 0.75) 100%);
    z-index: 1;
}

.pillar-part__wide img {
    width: 100%;
    height: min(52vh, 520px);
    object-fit: cover;
    display: block;
    filter: brightness(0.84) saturate(0.94);
    transition: transform 1.1s ease, filter 0.45s ease;
}

.pillar-part__wide:hover img {
    transform: scale(1.02);
    filter: brightness(0.88) saturate(0.98);
}

.pillar-part__bullets {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    justify-content: center;
    margin-bottom: clamp(32px, 4vw, 44px);
}

.pillar-part__bullet {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--primary) 82%, transparent);
    padding: 10px 16px;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    background: rgba(var(--card-rgb), 0.55);
    transition: border-color 0.25s ease, background 0.25s ease;
}

.pillar-part__bullet:hover {
    border-color: rgba(var(--primary-rgb), 0.28);
    background: rgba(var(--card-rgb), 0.85);
}

.pillar-part__bullet-dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.75;
}

.pillar-part__cta-wrap {
    text-align: center;
    padding-bottom: 12px;
}

.pillar-part__cta-wrap .btn-filled {
    padding-inline: clamp(28px, 5vw, 40px);
    min-width: min(100%, 280px);
}

/* ── 3. Training — timeline + visual + checklist ── */
.pillar-train {
    padding: clamp(88px, 11vw, 140px) 0 clamp(72px, 9vw, 120px);
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.pillar-train .container {
    min-width: 0;
    box-sizing: border-box;
}

.pillar-train__top {
    text-align: center;
    margin: 0 auto clamp(36px, 5vw, 52px);
    padding: 0 5%;
}

.pillar-train__tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.24em;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
}

.pillar-train__title {
    margin: 14px 0 12px;
    font-size: clamp(1.85rem, 4.2vw, 3rem);
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.pillar-train__intro {
    margin: 0 auto;
    max-width: 50ch;
    font-size: 14px;
    line-height: 1.8;
    color: color-mix(in srgb, var(--primary) 78%, transparent);
}

/* Các mảnh trong section Đào tạo: thứ tự = lộ trình → bối cảnh/CTA → danh mục khóa */
.pillar-train__block {
    margin-bottom: clamp(40px, 5.5vw, 72px);
}

.pillar-train__block--context,
.pillar-train__block--catalog {
    border-top: 1px solid var(--border);
    padding-top: clamp(40px, 5.5vw, 64px);
}

.pillar-train__block-head {
    text-align: center;
    max-width: 38rem;
    margin: 0 auto clamp(22px, 3.5vw, 36px);
    padding: 0 2%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.pillar-train__block-kicker {
    display: block;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pillar-train__block-title {
    margin: 0;
    font-size: clamp(1.2rem, 2.8vw, 1.55rem);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.15;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pillar-train__block-lede {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-muted);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pillar-train__block--path .pillar-train__timeline {
    margin-bottom: 0;
}

.pillar-train__block--catalog .pillar-train__courses {
    margin-bottom: 0;
}

/* Khóa học — lưới cố định theo breakpoint (tránh 5+3 / cột lệch do auto-fill) */
.pillar-train__courses {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(14px, 2vw, 20px);
    margin-bottom: clamp(36px, 5vw, 56px);
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

/* Luôn tối đa 2 thẻ / hàng — full width container */
@media (min-width: 520px) {
    .pillar-train__courses {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(16px, 2.2vw, 24px);
    }
}

.pillar-train__course-slide {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Thẻ khóa học — ảnh trên + nội dung dưới (lưới Academy) */
.pt-course {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid var(--hairline);
    background: rgba(var(--card-rgb), 0.92);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    transition:
        border-color 0.3s ease,
        box-shadow 0.35s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.3s ease;
}

.pt-course:hover {
    border-color: rgba(var(--primary-rgb), 0.45);
    background: rgba(var(--card-rgb), 0.98);
    box-shadow:
        0 0 0 1px rgba(var(--primary-rgb), 0.1),
        0 16px 40px rgba(0, 0, 0, 0.22);
    transform: translateY(-3px);
}

.pt-course:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.pt-course__media {
    position: relative;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
    min-height: 132px;
    max-height: 168px;
    min-width: 0;
    width: 100%;
    background: var(--bg3);
    overflow: hidden;
}

.pt-course__media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg,
            transparent 0%,
            transparent 35%,
            rgba(0, 0, 0, 0.45) 100%);
}

.pt-course__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.82) saturate(0.92);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.pt-course:hover .pt-course__img {
    transform: scale(1.04);
    filter: brightness(0.9) saturate(1);
}

.pt-course__ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.12) 0%, var(--bg3) 55%, rgba(0, 0, 0, 0.35) 100%);
}

.pt-course__ph-grid {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background-image:
        linear-gradient(rgba(var(--primary-rgb), 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.14) 1px, transparent 1px);
    background-size: 18px 18px;
}

.pt-course__ph-mark {
    position: relative;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: clamp(2rem, 6vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: rgba(var(--primary-rgb), 0.35);
}

.pt-course__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 18px 18px;
    min-height: 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.pt-course__tag {
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    opacity: 0.95;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pt-course__title {
    margin: 0;
    font-size: clamp(0.95rem, 1.9vw, 1.12rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text);
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pt-course__meta {
    margin: 0;
    font-size: 11px;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pt-course__cta {
    margin-top: auto;
    padding-top: 4px;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.35);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease, gap 0.25s ease;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pt-course:hover .pt-course__cta {
    border-bottom-color: var(--primary);
    gap: 10px;
}

.pt-course__cta-a {
    font-size: 11px;
    letter-spacing: 0;
    opacity: 0.85;
}

.pillar-train__timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2.2vw, 22px);
    margin-bottom: clamp(36px, 5vw, 56px);
}

.pillar-train__step {
    display: flex;
    gap: 14px;
    padding: clamp(18px, 2.5vw, 22px) clamp(14px, 2vw, 18px);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    background: rgba(var(--card-rgb), 0.88);
    min-height: 100%;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.pillar-train__step:hover {
    background: rgba(var(--card-rgb), 0.96);
    border-color: rgba(var(--primary-rgb), 0.28);
    box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.08);
}

.pillar-train__step-idx {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--on-primary);
    background: var(--primary);
    border-radius: 8px;
}

.pillar-train__step-title {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pillar-train__step-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.68;
    color: var(--text-muted);
}

.pillar-train__split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(24px, 4vw, 52px);
    align-items: start;
    min-width: 0;
}

.pillar-train__visual {
    position: relative;
    min-width: 0;
    max-width: 100%;
}

.pillar-train__fig {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--hairline);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.pillar-train__fig--main {
    aspect-ratio: 16 / 10;
    min-height: min(38vh, 360px);
}

.pillar-train__fig--main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.75s ease;
}

.pillar-train__visual:hover .pillar-train__fig--main img {
    transform: scale(1.02);
}

.pillar-train__fig--corner {
    position: absolute;
    right: -8px;
    bottom: -12px;
    width: 42%;
    max-width: 220px;
    aspect-ratio: 4 / 3;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--hairline);
    z-index: 2;
}

.pillar-train__fig--corner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pillar-train__ph {
    width: 100%;
    height: 100%;
    min-height: 240px;
    background:
        repeating-linear-gradient(-12deg,
            transparent,
            transparent 12px,
            rgba(var(--primary-rgb), 0.07) 12px,
            rgba(var(--primary-rgb), 0.07) 13px),
        var(--bg3);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 6px;
    padding: 16px;
}

.pillar-train__ph span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.4);
}

.pillar-train__checklist {
    min-width: 0;
    max-width: 100%;
    padding: clamp(22px, 3vw, 28px) clamp(20px, 3vw, 26px);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    background: rgba(var(--card-rgb), 0.88);
    text-align: start;
    direction: ltr;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pillar-train__checklist .btn {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pillar-train__checklist-h {
    margin: 0 0 14px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 600;
}

.pillar-train__checklist ul {
    margin: 0 0 22px;
    padding-left: 22px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.78;
}

.pillar-train__checklist ul li::marker {
    color: rgba(var(--primary-rgb), 0.55);
}

.pillar-train__checklist--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.pillar-train__btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

html[data-theme='light'] .pillar-res__fig img,
html[data-theme='light'] .pillar-part__wide img {
    filter: brightness(0.96) saturate(1);
}

html[data-theme='light'] .pillar-part__wide:hover img {
    filter: brightness(1) saturate(1.05);
}

html[data-theme='light'] .pt-course {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

html[data-theme='light'] .pt-course:hover {
    box-shadow:
        0 0 0 1px rgba(var(--primary-rgb), 0.12),
        0 12px 36px rgba(0, 0, 0, 0.08);
}

html[data-theme='light'] .pt-course__media::after {
    background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(0, 0, 0, 0.28) 100%);
}

@media (prefers-reduced-motion: reduce) {

    .pillar-res__chip,
    .pillar-part__logo,
    .pillar-part__bullet,
    .pillar-part__col,
    .pillar-train__step,
    .pt-course {
        transition: none;
    }

    .pillar-res:hover .pillar-res__fig img,
    .pillar-part__wide:hover img,
    .pillar-train__visual:hover .pillar-train__fig--main img,
    .pt-course:hover .pt-course__img {
        transform: none;
    }

    .pt-course:hover {
        transform: none;
    }
}

/* Nghiên cứu: 1 cột sớm (tránh 2 cột chật / chữ tụt một bên trên tablet & điện thoại ngang) */
@media (max-width: 960px) {
    .pillar-res__grid {
        grid-template-columns: 1fr;
        gap: clamp(20px, 4vw, 36px);
    }

    .pillar-res__media {
        order: -1;
    }

    .pillar-res--no-media .pillar-res__grid {
        grid-template-columns: 1fr;
    }

    .pillar-res .container.pillar-res__shell {
        padding-left: max(14px, env(safe-area-inset-left, 0px));
        padding-right: max(14px, env(safe-area-inset-right, 0px));
    }
}

@media (max-width: 768px) {

    .pillar-part__twocol,
    .pillar-train__split {
        grid-template-columns: minmax(0, 1fr);
    }

    .pillar-res {
        min-height: unset;
        padding-top: clamp(52px, 11vw, 88px);
        padding-bottom: 56px;
    }

    .pillar-res__media {
        min-height: 0;
    }

    .pillar-res__stats {
        max-width: none;
    }

    .pillar-res__body {
        max-width: none;
    }

    .pillar-res__fig--hero {
        min-height: min(200px, 42vw);
        max-height: min(280px, 48vw);
        max-width: 100%;
    }

    .pillar-res--no-media .pillar-res__media {
        min-height: 0;
    }

    .pillar-res--no-media .pillar-res__fig--hero {
        min-height: min(200px, 34vh);
        max-height: min(260px, 42vh);
        aspect-ratio: 16 / 10;
    }

    .pillar-res--no-media .pillar-res__fig--side {
        min-height: 92px;
        max-height: 130px;
        aspect-ratio: 16 / 5;
    }

    .pillar-part__wide {
        width: 100%;
        margin-left: 0;
    }

    .pillar-train__fig--corner {
        position: static;
        width: 100%;
        max-width: none;
        margin-top: 12px;
    }

    /* Đào tạo: tránh lưới 1fr (min = auto) + overflow ngang cắt chữ trái trên mobile */
    .pillar-train .container {
        padding-left: max(14px, 5%, env(safe-area-inset-left, 0px));
        padding-right: max(14px, 5%, env(safe-area-inset-right, 0px));
    }

    .pillar-train__timeline {
        grid-template-columns: minmax(0, 1fr);
    }

    .pillar-train__step {
        min-width: 0;
    }

    .pt-course__media {
        min-height: min(148px, 38vw);
        max-height: min(200px, 44vw);
        aspect-ratio: 16 / 9;
    }

    .pt-course__body {
        padding: 14px 16px 16px;
    }

    .pt-course__title {
        font-size: clamp(1rem, 4.2vw, 1.14rem);
    }

    /* Catalog: kicker/tag letter-spacing dễ tràn khi 2 cột hẹp */
    .pillar-train__block-kicker {
        letter-spacing: 0.14em;
    }

    .pt-course__tag {
        letter-spacing: 0.12em;
        font-size: 7px;
    }

    .pillar-sec__lede {
        padding-left: 16px;
        padding-right: 16px;
    }

    .pillar-res__ph-readouts,
    .pillar-res__ph-readouts--field {
        font-size: 10px;
        letter-spacing: 0.08em;
        gap: 10px 16px;
    }

    .pillar-res__ph-pill {
        font-size: 9px;
        padding: 6px 11px;
    }

    .pillar-res__ph-cr {
        width: 16px;
        height: 16px;
    }

    .pillar-res__ph-cr--tl,
    .pillar-res__ph-cr--tr {
        top: 10px;
    }

    .pillar-res__ph-cr--tl,
    .pillar-res__ph-cr--bl {
        left: 10px;
    }

    .pillar-res__ph-cr--tr,
    .pillar-res__ph-cr--br {
        right: 10px;
    }

    .pillar-res__ph-cr--bl,
    .pillar-res__ph-cr--br {
        bottom: 10px;
    }

    .pillar-res__ph-wave {
        left: 4%;
        right: 4%;
        height: 30%;
    }
}

@media (max-width: 480px) {
    .pillar-res .container.pillar-res__shell {
        padding-left: max(10px, env(safe-area-inset-left, 0px));
        padding-right: max(10px, env(safe-area-inset-right, 0px));
    }

    .pillar-res--no-media .pillar-res__fig--hero {
        min-height: 156px;
        max-height: 210px;
    }

    .pillar-res--no-media .pillar-res__fig--side {
        min-height: 76px;
        max-height: 108px;
    }

    .pillar-res__ph-readouts {
        bottom: 32px;
    }

    .pillar-res__ph-readouts--field {
        bottom: 26px;
    }

    .pillar-train .container {
        padding-left: max(12px, 4%, env(safe-area-inset-left, 0px));
        padding-right: max(12px, 4%, env(safe-area-inset-right, 0px));
    }

    .pillar-train__checklist-h {
        letter-spacing: 0.12em;
        line-height: 1.45;
    }

    .pillar-train__courses {
        gap: 12px;
    }

    .pillar-train__block-kicker {
        letter-spacing: 0.1em;
    }

    .pt-course__tag {
        letter-spacing: 0.08em;
    }

    .pt-course__cta {
        letter-spacing: 0.08em;
        font-size: 8px;
    }
}

/* ──────────────────────────────────────────
         06. ENGINEERING (fullscreen sections)
      ────────────────────────────────────────── */
#engineering {
    border-top: 1px solid var(--border);
}

.eng-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.eng-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(8, 19, 27, 0.72) 0%, rgba(8, 19, 27, 0.42) 45%, rgba(8, 19, 27, 0.2) 100%);
}

.eng-bg {
    position: absolute;
    inset: 0;
}

.eng-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.3) saturate(.6);
    will-change: transform;
}

.eng-content {
    position: relative;
    z-index: 2;
    padding: 0 5%;
    max-width: 600px;
}

.eng-content .tag {
    margin-bottom: 16px;
}

.eng-content .section-title {
    font-size: clamp(3rem, 6vw, 6rem);
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.eng-content .section-desc {
    margin-bottom: 32px;
}

/* Engineering section: light mode cần chữ sáng và overlay đậm hơn */
html[data-theme="light"] .eng-section::before {
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.78) 0%, rgba(10, 10, 10, 0.5) 45%, rgba(10, 10, 10, 0.22) 100%);
}

html[data-theme="light"] .eng-content .tag,
html[data-theme="light"] .eng-content .section-title,
html[data-theme="light"] .eng-content .section-desc {
    color: #ffffff;
}

html[data-theme="light"] .eng-content .btn:not(.btn-filled) {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.78);
}

/* ──────────────────────────────────────────
         07. SERVICES
      ────────────────────────────────────────── */
#services {
    padding: var(--section-pad);
    border-top: 1px solid var(--border);
}

.services-header {
    text-align: center;
    margin-bottom: 24px;
}

.services-header .section-title {
    margin-bottom: 16px;
}

.services-header .section-desc {
    margin: 0 auto 40px;
    text-align: center;
}

.services-cta-center {
    text-align: center;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
}

.service-card {
    background: var(--bg2);
    padding: 36px 32px;
    transition: background .3s;
    position: relative;
}

.service-card:hover {
    background: var(--bg3);
}

.service-card.featured {
    background: var(--bg3);
    border: 1px solid var(--border2);
}

.service-num {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.service-desc {
    font-size: 12px;
    line-height: 1.8;
    color: var(--text-dim);
}

/* ──────────────────────────────────────────
         08. SPECS / PERFORMANCE
      ────────────────────────────────────────── */
#performance {
    padding: var(--section-pad);
    border-top: 1px solid var(--border);
}

.perf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.perf-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    background: var(--border);
    border: 1px solid var(--border);
}

.perf-stat {
    background: var(--bg2);
    padding: clamp(26px, 3.2vw, 36px) clamp(22px, 2.8vw, 32px);
    transition: background .3s;
    min-height: 5.5rem;
}

.perf-stat:hover {
    background: var(--bg3);
}

.perf-stat-num {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.32em;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 12px;
    white-space: nowrap;
}

.perf-stat-value {
    font-variant-numeric: tabular-nums;
}

.perf-stat-unit {
    font-size: 0.82em;
    font-weight: 600;
    color: var(--primary-dim);
    letter-spacing: 0.02em;
}

.perf-stat-label {
    font-size: 9px;
    letter-spacing: 1.8px;
    color: var(--text-muted);
    text-transform: uppercase;
    line-height: 1.4;
}

/* ──────────────────────────────────────────
         09. USE CASES
      ────────────────────────────────────────── */
#usecases {
    padding: var(--section-pad);
    border-top: 1px solid var(--border);
}

.usecases-header {
    text-align: center;
    margin-bottom: 60px;
}

.usecases-header .section-title {
    margin-bottom: 16px;
}

.usecases-header .section-desc {
    margin: 0 auto;
    text-align: center;
}

.usecases-mosaic {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
        "primary secondary-top"
        "primary secondary-bottom";
    gap: 2px;
    background: var(--border);
}

.usecase-card {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    background: var(--bg2);
}

.usecase-card--primary {
    grid-area: primary;
    min-height: 720px;
}

.usecase-card--secondary:nth-of-type(2) {
    grid-area: secondary-top;
}

.usecase-card--secondary:nth-of-type(3) {
    grid-area: secondary-bottom;
}

.usecase-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.4) saturate(.7);
    transition: transform .6s ease, filter .4s;
}

.usecase-card:hover img {
    transform: scale(1.05);
    filter: brightness(.5) saturate(.8);
}

.usecase-card-placeholder {
    position: absolute;
    inset: 0;
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    opacity: .05;
    color: var(--primary);
}

.usecase-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 28px;
    background: linear-gradient(transparent, rgba(var(--bg-rgb), .95));
}

.usecase-category {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--text-dim);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.usecase-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.usecase-sub {
    font-size: 11px;
    color: var(--text-dim);
}

/* ──────────────────────────────────────────
         10. FAQ
      ────────────────────────────────────────── */
#faq {
    padding: var(--section-pad);
    border-top: 1px solid var(--border);
}

.faq-header {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

.faq-header .section-title {
    margin-bottom: 16px;
}

/* Cùng bề rộng với .faq-list — tránh đoạn mô tả hẹp hơn làm cảm giác lệch cột */
.faq-header .section-desc {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 14px;
    text-align: left;
    padding: 28px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: color .2s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question.open {
    color: var(--primary);
}

.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--border2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--primary);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-question.open .faq-icon {
    transform: rotate(45deg);
}

/* Accordion: grid 0fr → 1fr (mượt mọi chiều cao, không cắt như max-height cố định) */
.faq-answer-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item:has(.faq-question.open) .faq-answer-panel {
    grid-template-rows: 1fr;
}

.faq-answer {
    overflow: hidden;
    min-height: 0;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-dim);
    padding-bottom: 0;
    transition: padding-bottom 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item:has(.faq-question.open) .faq-answer {
    padding-bottom: 28px;
}

@media (prefers-reduced-motion: reduce) {

    .faq-answer-panel,
    .faq-answer,
    .faq-icon {
        transition: none;
    }
}

/* ──────────────────────────────────────────
         11. CONTACT
      ────────────────────────────────────────── */
#contact {
    padding: var(--section-pad);
    border-top: 1px solid var(--border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.contact-left .section-title {
    margin-bottom: 20px;
}

.contact-left .section-desc {
    margin-bottom: 40px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-info-icon {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    font-size: 14px;
}

.contact-info-label {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.contact-info-value {
    font-size: 13px;
    color: var(--text);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.form-input,
.form-select,
.form-textarea {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 14px 16px;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 13px;
    transition: border-color .2s;
    width: 100%;
    appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-dim);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2348c491' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-submit {
    align-self: flex-start;
}

/* Landing: xen kẽ nền đen (#000) với nền chủ đạo (--bg). Hero giữ gradient. */
#engineering,
#performance,
#faq {
    background-color: var(--bg);
}

#products,
#services,
#usecases,
#contact {
    background-color: var(--panel);
    border-top-color: rgba(var(--primary-rgb), 0.14);
}

/* ──────────────────────────────────────────
         12. FOOTER
      ────────────────────────────────────────── */
#footer {
    border-top: 1px solid var(--border);
    padding: 80px 5% 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.footer-logo__img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: opacity 0.2s;
}

.footer-logo a:hover .footer-logo__img {
    opacity: 0.8;
}

html[data-theme="dark"] .footer-logo__img {
    filter: brightness(1.1);
}

.footer-tagline {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 280px;
}

.footer-newsletter {
    display: flex;
    gap: 0;
}

.footer-newsletter input {
    flex: 1;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-right: none;
    padding: 10px 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text);
}

.footer-newsletter input::placeholder {
    color: var(--text-muted);
}

.footer-newsletter input:focus {
    outline: none;
    border-color: var(--primary-dim);
}

.footer-newsletter button {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: var(--bg);
    padding: 10px 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 700;
    transition: all .2s;
}

.footer-newsletter button:hover {
    background: transparent;
    color: var(--primary);
}

.footer-col-title {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 12px;
    color: var(--text-dim);
    transition: color .2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 13px;
    transition: all .2s;
    border-radius: 50%;
    text-decoration: none;
}

.social-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.footer-coords {
    display: flex;
    gap: 24px;
}

.footer-wordmark {
    font-family: var(--font-wordmark);
    font-size: clamp(2.8rem, 8vw, 7.2rem);
    font-weight: 400;
    color: var(--primary-dim);
    letter-spacing: .02em;
    text-align: center;
    margin-top: 60px;
    line-height: 1;
    user-select: none;
    border-top: 1px solid var(--border);
    padding-top: 40px;
    white-space: normal;
    text-wrap: balance;
}

/* ──────────────────────────────────────────
         RESPONSIVE
      ────────────────────────────────────────── */
@media (max-width: 1024px) {

    .about-grid,
    .contact-grid,
    .perf-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .prod-sticky-wrap {
        grid-template-columns: 1fr;
        margin: 0 5%;
    }

    .prod-img-col {
        display: none;
    }

    .prod-item {
        min-height: unset;
        padding: 56px 24px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .cap-card-img {
        min-height: 280px;
        max-height: 58vh;
    }

}

@media (max-width: 768px) {
    :root {
        --section-pad: 80px 5%;
        --nav-h: 64px;
    }

    #site-header {
        padding: 0 14px;
    }

    .nav-logo__img {
        height: 88px;
        max-width: 132px;
    }

    .nav-menu {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    /* ── Hero mobile: giữ full background + nội dung nằm trên ảnh ─ */
    #hero {
        height: 100svh;
        height: 100dvh;
        min-height: 100svh;
        min-height: 100dvh;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .hero-slide {
        display: flex;
        justify-content: flex-end;
        padding-top: calc(var(--nav-h, 72px) + 12px);
        padding-bottom: max(150px, calc(env(safe-area-inset-bottom, 0px) + 130px));
    }

    .hero-slide .hero-drone-wrap {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
    }

    .hero-slide .hero-drone-img {
        object-position: center center;
    }

    .hero-slide .hero-content {
        width: 100%;
        max-width: 22rem;
        margin: 0 auto;
        padding: 0 5% 6px;
        text-align: center;
    }

    .hero-eyebrow {
        justify-content: center;
        margin-bottom: 16px;
    }

    .hero-title {
        font-size: clamp(2rem, 9.5vw, 3rem);
        letter-spacing: -1px;
        margin-bottom: 16px;
    }

    .hero-sub {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 22px;
        font-size: 13px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 18rem;
        justify-content: center;
    }

    .hero-stats {
        display: none;
    }

    .hero-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: max(14px, env(safe-area-inset-bottom, 14px));
        width: min(calc(100vw - 32px), 22rem);
        gap: 12px;
    }

    .hero-counter {
        text-align: center;
    }

    .hero-progress {
        width: min(160px, 70vw);
        max-width: 100%;
    }

    .hero-dots {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-arrows {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .scroll-indicator {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .usecases-mosaic {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas: none;
    }

    .usecase-card--primary {
        min-height: 360px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .perf-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2px;
    }

    .perf-stat {
        padding: 20px 14px;
        min-height: unset;
    }

    .perf-stat-num {
        font-size: clamp(1.15rem, 4.2vw, 1.45rem);
        margin-bottom: 8px;
    }

    .perf-stat-label {
        font-size: 8px;
        letter-spacing: 1.4px;
    }

    .footer-wordmark {
        font-size: clamp(1.5rem, 10vw, 2.45rem);
        letter-spacing: 0;
        line-height: 1.22;
        padding-top: 26px;
        margin-top: 34px;
        overflow: visible;
    }

    /* Capabilities mobile */
    #capabilities {
        padding: 64px 0 44px;
    }

    .cap-header {
        margin-bottom: 30px;
        padding: 0 16px;
    }

    .cap-header-title {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
        line-height: 1.12;
    }

    .cap-header-desc {
        font-size: 12px;
        line-height: 1.65;
    }

    .cap-carousel-outer {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        padding: 0 0 14px;
        overflow-x: hidden;
    }

    .cap-carousel {
        max-width: 100%;
    }

    .cap-track {
        gap: 0;
        padding: 0;
    }

    /* JS set --cap-slide-px = capCarousel.clientWidth để flex % không bị lệch với track max-content */
    .cap-slide {
        box-sizing: border-box;
        flex-grow: 0;
        flex-shrink: 0;
        flex-basis: var(--cap-slide-px, 100%);
        width: var(--cap-slide-px, 100%);
        min-width: var(--cap-slide-px, 100%);
        max-width: var(--cap-slide-px, 100%);
    }

    .cap-card {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .cap-card-img {
        min-height: min(240px, 42svh);
        max-height: min(52svh, 360px);
        aspect-ratio: 16 / 9;
    }

    .cap-card-body {
        padding: 16px 16px 18px;
    }

    .cap-card-tag {
        font-size: 8px;
        letter-spacing: 2px;
        margin-bottom: 8px;
    }

    .cap-card-title {
        font-size: clamp(1.45rem, 7vw, 1.9rem);
        margin-bottom: 10px;
    }

    .cap-card-desc {
        font-size: 12px;
        line-height: 1.6;
        margin-bottom: 14px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .cap-card-cta {
        font-size: 9px;
        padding: 6px 12px;
    }

    /* Tránh card bên cạnh quá mờ gây cảm giác "lỗi vỡ" trên màn nhỏ */
    .cap-slide:not(.is-current) .cap-card {
        opacity: .55;
        filter: none;
        transform: none;
    }

    .cap-strip-footer {
        display: flex;
        gap: 12px;
        padding-top: 8px;
    }

    .cap-prev,
    .cap-next {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .cap-dot {
        width: 24px;
    }

    .cap-dot.active {
        width: 34px;
    }
}

/* Mobile nav overlay */
.nav-menu.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(var(--bg-rgb), 0.995);
    backdrop-filter: blur(12px);
    min-height: 100svh;
    min-height: 100dvh;
    max-height: 100svh;
    max-height: 100dvh;
    /* chừa không gian cho logo mobile */
    padding: 132px 8% 40px;
    gap: 32px;
    z-index: 1001;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    text-align: center;
}


body.menu-open {
    overflow: hidden;
}

.nav-hamburger {
    position: relative;
    z-index: 1002;
}

.nav-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ══════════════════════════════════════════════
   13. BLOG — Card dùng chung / Archive / Single
   ══════════════════════════════════════════════ */

/* ── Blog Card (dùng chung cho homepage preview, archive, related) ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-grid--related {
    margin-top: 40px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.35s;
}

.blog-card:hover {
    border-color: var(--border2);
    box-shadow: 0 8px 40px rgba(var(--primary-rgb), 0.1);
    transform: translateY(-3px);
}

.blog-card__thumb {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg3);
    flex-shrink: 0;
}

.blog-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
    display: block;
}

.blog-card:hover .blog-card__thumb img {
    transform: scale(1.04);
}

.blog-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--border2);
    opacity: 0.5;
}

.blog-card__cat {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--on-primary);
    background: var(--primary);
    padding: 4px 10px;
    pointer-events: none;
}

.blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 26px;
}

.blog-card__meta {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card__dot {
    opacity: 0.5;
}

.blog-card__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
}

.blog-card__title a {
    color: var(--text);
    transition: color 0.2s;
}

.blog-card__title a:hover {
    color: var(--primary);
}

.blog-card__excerpt {
    font-size: 12px;
    line-height: 1.75;
    color: var(--text-dim);
    flex: 1;
    margin-bottom: 18px;
}

.blog-card__link {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    transition: color 0.2s, gap 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-card__link:hover {
    color: var(--accent-mint-bright, var(--primary));
}

/* ── Blog Preview Section (trang chủ) ── */
.blog-preview {
    padding: var(--section-pad);
    border-top: 1px solid var(--border);
    background-color: var(--bg);
}

.blog-preview-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 52px;
    flex-wrap: wrap;
}

.blog-preview-head-left .section-title {
    margin-top: 8px;
}

.blog-preview-all {
    flex-shrink: 0;
    align-self: flex-end;
}

/* ── Archive (blog listing) ── */
.archive-main {
    min-height: 80vh;
    padding-bottom: clamp(80px, 10vw, 140px);
}

.archive-header {
    padding: clamp(80px, 12vw, 140px) 0 clamp(40px, 6vw, 80px);
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    margin-bottom: clamp(40px, 6vw, 72px);
}

.archive-header .section-title {
    margin: 10px 0 0;
}

.archive-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.archive-desc {
    max-width: 560px;
    margin-top: 16px;
}

.archive-body {
    padding-bottom: 0;
}

/* Category filter pills */
.archive-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
}

.archive-cat-link {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 7px 18px;
    border: 1px solid var(--border);
    color: var(--text-dim);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.archive-cat-link:hover,
.archive-cat-link.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.06);
}

.archive-cat-link sup {
    font-size: 8px;
    opacity: 0.6;
    margin-left: 3px;
}

/* Pagination */
.archive-pagination {
    margin-top: 64px;
    display: flex;
    justify-content: center;
}

.archive-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-pagination .page-numbers li a,
.archive-pagination .page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 11px;
    letter-spacing: 1.5px;
    border: 1px solid var(--border);
    color: var(--text-dim);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.archive-pagination .page-numbers li a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.archive-pagination .page-numbers li span.current {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--on-primary);
    font-weight: 700;
}

/* Empty state */
.archive-empty {
    text-align: center;
    padding: clamp(60px, 10vw, 120px) 0;
}

.archive-empty__icon {
    font-size: 4rem;
    color: var(--border2);
    margin-bottom: 24px;
}

.archive-empty__text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ── Single Post ── */
.single-main {
    min-height: 80vh;
}

/* Breadcrumb (dùng chung archive + single) */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-dim);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb__sep {
    opacity: 0.45;
}

/* Single Hero */
.single-hero {
    position: relative;
    padding: clamp(100px, 14vw, 160px) 0 clamp(48px, 7vw, 80px);
    background: var(--panel);
    border-bottom: 1px solid var(--border);
}

.single-hero--has-img {
    min-height: 480px;
    display: flex;
    align-items: flex-end;
}

.single-hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.single-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.4) saturate(0.7);
}

.single-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(var(--bg-rgb), 0.85) 0%, rgba(var(--bg-rgb), 0.35) 60%, transparent 100%);
}

.single-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 860px;
}

.single-cat-badge {
    display: inline-block;
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--on-primary);
    background: var(--primary);
    padding: 5px 14px;
    margin-bottom: 20px;
}

.single-title {
    font-size: clamp(1.75rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--primary);
    margin-bottom: 24px;
}

.single-hero--has-img .single-title {
    color: #ffffff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.single-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.single-hero--has-img .single-meta {
    color: rgba(255, 255, 255, 0.65);
}

.single-meta__sep {
    opacity: 0.4;
}

.single-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.single-author__avatar {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50%;
    object-fit: cover;
}

/* Content + Sidebar layout */
.single-content-wrap {
    padding-top: clamp(40px, 6vw, 80px);
    padding-bottom: clamp(40px, 6vw, 80px);
}

.single-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
}

/* Post content (the_content) */
.post-content {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-dim);
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--primary);
    font-weight: 700;
    margin: 2em 0 0.7em;
    line-height: 1.2;
}

.post-content h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

.post-content h3 {
    font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.post-content p {
    margin-bottom: 1.4em;
}

.post-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 2em 0;
    border: 1px solid var(--border);
}

.post-content blockquote {
    border-left: 3px solid var(--primary);
    padding: 16px 24px;
    margin: 2em 0;
    background: rgba(var(--primary-rgb), 0.05);
    color: var(--text);
    font-style: italic;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content ul,
.post-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.4em;
}

.post-content li {
    margin-bottom: 0.5em;
}

.post-content code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 2px;
}

.post-content pre {
    background: var(--bg2);
    border: 1px solid var(--border);
    padding: 20px 24px;
    overflow-x: auto;
    margin: 2em 0;
    font-size: 13px;
    line-height: 1.7;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: var(--text);
}

.post-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5em 0;
}

/* Tags */
.single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.single-tag {
    font-size: 10px;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: border-color 0.2s, color 0.2s;
}

.single-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Sidebar */
.single-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-author-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--border);
    background: var(--card);
}

.sidebar-author-card__avatar {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.sidebar-author-card__name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.sidebar-author-card__bio {
    font-size: 11px;
    line-height: 1.65;
    color: var(--text-muted);
}

/* TOC */
.sidebar-toc {
    padding: 20px;
    border: 1px solid var(--border);
    background: var(--card);
}

.sidebar-toc__title {
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 14px;
}

.sidebar-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    counter-reset: toc-counter;
}

.sidebar-toc__item {
    font-size: 11px;
    line-height: 1.45;
    color: var(--text-dim);
    counter-increment: toc-counter;
    padding-left: 20px;
    position: relative;
}

.sidebar-toc__item::before {
    content: counter(toc-counter, decimal-leading-zero) '.';
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-size: 9px;
    top: 1px;
}

.sidebar-toc__item--h3 {
    padding-left: 28px;
    color: var(--text-muted);
}

/* Post navigation */
.single-nav-wrap {
    padding-bottom: clamp(40px, 6vw, 80px);
    border-bottom: 1px solid var(--border);
}

.single-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.single-nav__link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 24px;
    border: 1px solid var(--border);
    background: var(--card);
    transition: border-color 0.2s, background 0.2s;
}

.single-nav__link:hover {
    border-color: var(--border2);
    background: var(--bg2);
}

.single-nav__next {
    text-align: right;
}

.single-nav__dir {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
}

.single-nav__ptitle {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
}

/* Related posts */
.related-posts {
    padding: clamp(60px, 8vw, 100px) 0;
    background: var(--panel);
    border-top: 1px solid var(--border);
}

.related-posts__title {
    margin: 10px 0 0;
}

/* ── Responsive blog ── */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .single-content-grid {
        grid-template-columns: 1fr;
    }

    .single-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-preview-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .single-nav {
        grid-template-columns: 1fr;
    }

    .single-nav__next {
        text-align: left;
    }

    .single-sidebar {
        grid-template-columns: 1fr;
    }

    .archive-cats {
        gap: 8px;
    }
}

/* ══════════════════════════════════════════════
   14. SEARCH — overlay + results
   ══════════════════════════════════════════════ */

/* Toggle button */
.search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: none;
    color: var(--text-dim);
    flex-shrink: 0;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    cursor: none;
}

.search-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ── Search Overlay (nằm ngoài header — không bị stacking context) ── */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9100;
    /* cao hơn mọi thứ */
    display: grid;
    place-items: center;
    visibility: hidden;
    pointer-events: none;
}

.search-overlay.is-open {
    visibility: visible;
    pointer-events: all;
}

/* Backdrop riêng — animate */
.search-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.search-overlay.is-open .search-overlay__backdrop {
    opacity: 1;
}

/* Panel nội dung */
.search-overlay__panel {
    position: relative;
    z-index: 1;
    width: min(720px, 92vw);
    padding: 48px 0 40px;
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.search-overlay.is-open .search-overlay__panel {
    transform: translateY(0);
    opacity: 1;
}

.search-overlay__label {
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
}

.search-overlay__row {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0;
}

.search-overlay__input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-mono);
    font-size: clamp(1.3rem, 3.5vw, 2.2rem);
    color: #ffffff;
    letter-spacing: -0.01em;
    padding: 12px 0;
    caret-color: var(--primary);
}

.search-overlay__input::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.search-overlay__submit {
    background: none;
    border: none;
    cursor: none;
    color: var(--primary);
    padding: 8px 4px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.search-overlay__submit:hover {
    color: var(--accent-mint-bright);
}

/* Nút đóng góc trên phải */
.search-overlay__close {
    position: absolute;
    top: -8px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    cursor: none;
    padding: 5px 12px;
    font-size: 11px;
    letter-spacing: 1px;
    transition: border-color 0.2s, color 0.2s;
}

.search-overlay__close:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.search-overlay__close-hint {
    font-size: 9px;
    letter-spacing: 1.5px;
    opacity: 0.6;
}

/* Search results page */
.search-page-form {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.search-page-form__input {
    flex: 1;
    min-width: 220px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 14px 18px;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.search-page-form__input:focus {
    border-color: var(--primary-dim);
}

.search-page-form__btn {
    flex-shrink: 0;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-result-item {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.search-result-thumb {
    width: 100px;
    aspect-ratio: 4/3;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--bg3);
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-result-thumb__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--border2);
    opacity: 0.4;
}

.search-result-body {
    flex: 1;
    min-width: 0;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.search-result-type {
    color: var(--accent-gold);
    font-weight: 600;
}

.search-result-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.search-result-title a {
    color: var(--text);
    transition: color 0.2s;
}

.search-result-title a:hover {
    color: var(--primary);
}

.search-result-excerpt {
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-dim);
    margin-bottom: 10px;
}

/* ══════════════════════════════════════════════
   15. PRODUCT CATALOG — pcat
   ══════════════════════════════════════════════ */

.pcat-main {
    min-height: 80vh;
    padding-bottom: clamp(80px, 10vw, 140px);
}

.pcat-header {
    padding: clamp(80px, 12vw, 140px) 0 clamp(40px, 6vw, 72px);
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    margin-bottom: clamp(40px, 6vw, 72px);
}

.pcat-header .section-title {
    margin: 10px 0 0;
}

.pcat-body {
    padding-bottom: 0;
}

.pcat-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: clamp(18px, 3vw, 36px);
    align-items: start;
}

.pcat-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 16px);
}

.pcat-content {
    min-width: 0;
}

.archive-cats--sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.archive-cats--sidebar .archive-cat-link {
    width: 100%;
}


.pcat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.pcat-grid--related {
    margin-top: 40px;
}

/* Product card */
.pcat-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    background: var(--card);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.35s;
    overflow: hidden;
}

.pcat-card:hover {
    border-color: var(--border2);
    box-shadow: 0 8px 40px rgba(var(--primary-rgb), 0.1);
    transform: translateY(-3px);
}

.pcat-card__thumb {
    display: block;
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg3);
    flex-shrink: 0;
}

.pcat-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
    display: block;
}

.pcat-card:hover .pcat-card__thumb img {
    transform: scale(1.04);
}

.pcat-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--border2);
    opacity: 0.4;
}

.pcat-card__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--on-primary);
    background: var(--accent-gold);
    padding: 4px 10px;
    pointer-events: none;
}

.pcat-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 26px;
}

.pcat-card__series {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.pcat-card__name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 10px;
}

.pcat-card__name a {
    color: var(--text);
    transition: color 0.2s;
}

.pcat-card__name a:hover {
    color: var(--primary);
}

.pcat-card__tagline {
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-dim);
    margin-bottom: 16px;
    flex: 1;
}

.pcat-card__specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding: 14px;
    background: var(--bg2);
    border-left: 2px solid var(--border2);
}

.pcat-card__spec {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.pcat-card__spec-l {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.pcat-card__spec-v {
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
}

.pcat-card__cta {
    margin-top: auto;
    align-self: flex-start;
}

/* ══════════════════════════════════════════════
   16. PRODUCT SINGLE — psingle
   ══════════════════════════════════════════════ */

.psingle-main {
    min-height: 80vh;
}

/* Hero */
.psingle-hero {
    position: relative;
    padding: clamp(100px, 14vw, 160px) 0 clamp(48px, 7vw, 80px);
    background: var(--panel);
    border-bottom: 1px solid var(--border);
}

.psingle-hero--has-img {
    min-height: 520px;
    display: flex;
    align-items: flex-end;
}

.psingle-hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.psingle-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35) saturate(0.6);
    display: block;
}

.psingle-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(var(--bg-rgb), 0.9) 0%, rgba(var(--bg-rgb), 0.3) 60%, transparent 100%);
}

.psingle-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 860px;
}

.psingle-hero__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.psingle-series {
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.psingle-hero--has-img .psingle-series {
    color: rgba(255, 255, 255, 0.55);
}

.psingle-badge {
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--on-primary);
    background: var(--accent-gold);
    padding: 4px 10px;
}

.psingle-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--primary);
    margin-bottom: 18px;
}

.psingle-hero--has-img .psingle-title {
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.psingle-tagline {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-dim);
    max-width: 560px;
    margin-bottom: 28px;
}

.psingle-hero--has-img .psingle-tagline {
    color: rgba(255, 255, 255, 0.7);
}

.psingle-hero__cta {
    display: inline-flex;
}

/* Content grid */
.psingle-content {
    padding: clamp(48px, 7vw, 100px) 5%;
}

.psingle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

/* Gallery */
.psingle-gallery {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
}

.psingle-gallery__main {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg3);
    margin-bottom: 12px;
}

.psingle-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

.psingle-gallery__placeholder {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    background: var(--bg3);
    color: var(--border2);
    opacity: 0.3;
}

.psingle-gallery__thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.psingle-gallery__thumb {
    width: 72px;
    aspect-ratio: 4/3;
    overflow: hidden;
    border: 2px solid var(--border);
    background: var(--bg3);
    cursor: none;
    padding: 0;
    transition: border-color 0.2s;
}

.psingle-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.psingle-gallery__thumb.is-active,
.psingle-gallery__thumb:hover {
    border-color: var(--primary);
}

/* Specs */
.psingle-desc {
    margin-bottom: 32px;
}

.psingle-specs {
    margin-bottom: 32px;
}

.psingle-specs__title {
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 14px;
}

.psingle-specs__table {
    width: 100%;
    border-collapse: collapse;
}

.psingle-specs__table tr {
    border-bottom: 1px solid var(--border);
}

.psingle-specs__label {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 12px 16px 12px 0;
    white-space: nowrap;
    width: 45%;
}

.psingle-specs__value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    padding: 12px 0;
}

.psingle-cta {
    margin-top: 8px;
}

/* Features */
.psingle-features {
    padding: clamp(60px, 8vw, 100px) 0;
    background: var(--panel);
    border-top: 1px solid var(--border);
}

.psingle-features__title {
    margin: 10px 0 48px;
}

.psingle-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.psingle-feature-card {
    padding: 24px 22px;
    border: 1px solid var(--border);
    background: var(--card);
    transition: border-color 0.2s;
}

.psingle-feature-card:hover {
    border-color: var(--border2);
}

.psingle-feature-card__icon {
    font-size: 1.6rem;
    margin-bottom: 14px;
    line-height: 1;
}

.psingle-feature-card__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.psingle-feature-card__desc {
    font-size: 11px;
    line-height: 1.65;
    color: var(--text-dim);
}

/* CTA Banner */
.psingle-cta-banner {
    padding: clamp(48px, 7vw, 80px) 0;
    background: var(--bg3);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.psingle-cta-banner__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.psingle-cta-banner__title {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.psingle-cta-banner__sub {
    font-size: 13px;
    color: var(--text-dim);
}

/* Related */
.psingle-related {
    padding: clamp(60px, 8vw, 100px) 0;
    background: var(--bg);
}

.psingle-related__title {
    margin: 10px 0 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .pcat-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pcat-sidebar {
        position: static;
    }

    .archive-cats--sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .archive-cats--sidebar .archive-cat-link {
        width: auto;
    }

    .pcat-grid {
        grid-template-columns: 1fr;
    }

    .psingle-grid {
        grid-template-columns: 1fr;
    }

    .psingle-gallery {
        position: static;
    }
}

@media (max-width: 768px) {
    .pcat-grid {
        grid-template-columns: 1fr;
    }

    .psingle-cta-banner__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-result-item {
        flex-direction: column;
    }

    .search-result-thumb {
        width: 100%;
        aspect-ratio: 16/9;
    }
}

/* Touch / thiết bị không hover: con trỏ hệ thống, không ép cursor:none */
@media (pointer: coarse),
(hover: none) {

    body,
    a,
    button,
    input,
    textarea,
    select,
    summary,
    [role='button'],
    label,
    .nav-hamburger,
    .theme-toggle,
    .social-btn,
    .hero-dot,
    .hero-arrow,
    .cap-dot,
    .cap-prev,
    .cap-next,
    .faq-question {
        cursor: auto !important;
    }
}

/* ══════════════════════════════════════════
   CONTACT FORM 7 — style khớp theme
   ══════════════════════════════════════════ */

.wpcf7 form.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.wpcf7 .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 14px 16px;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.5;
    width: 100%;
    transition: border-color .2s ease;
    appearance: none;
    outline: none;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    border-color: var(--primary-dim);
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.wpcf7 textarea {
    resize: vertical;
    min-height: 130px;
}

.wpcf7 input[type="submit"] {
    background: transparent;
    border: 1px solid var(--primary-dim);
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1.5px;
    padding: 14px 32px;
    cursor: pointer;
    transition: background .25s, color .25s, border-color .25s;
    text-transform: uppercase;
    width: auto;
}

.wpcf7 input[type="submit"]:hover {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}

.wpcf7-not-valid-tip {
    font-size: 11px;
    color: #e53e3e;
    margin-top: 4px;
    display: block;
    font-family: var(--font-mono);
}

.wpcf7 .wpcf7-response-output {
    font-size: 12px;
    font-family: var(--font-mono);
    padding: 12px 16px;
    border-radius: 0;
    margin: 8px 0 0;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: var(--primary-dim);
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.06);
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    border-color: rgba(229, 62, 62, 0.5);
    color: #e53e3e;
    background: rgba(229, 62, 62, 0.05);
}

.wpcf7 form.spam .wpcf7-response-output {
    border-color: rgba(var(--primary-rgb), 0.3);
    color: var(--text-muted);
}

.wpcf7 .wpcf7-spinner {
    display: none !important;
}

.cf7-wrapper {
    width: 100%;
}

.cf7-theme-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 1.2px;
    color: var(--text);
    text-transform: none;
}

.cf7-theme-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cf7-theme-form .wpcf7-form-control {
    margin-top: 0;
}

.cf7-theme-form .wpcf7-form-control.wpcf7-text,
.cf7-theme-form .wpcf7-form-control.wpcf7-email,
.cf7-theme-form .wpcf7-form-control.wpcf7-tel,
.cf7-theme-form .wpcf7-form-control.wpcf7-textarea,
.cf7-theme-form .wpcf7-form-control.wpcf7-select {
    background: var(--bg2) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.cf7-theme-form .wpcf7-form-control.wpcf7-textarea {
    min-height: 130px;
}

.cf7-theme-form .wpcf7-form-control.wpcf7-submit {
    opacity: 1 !important;
    background: transparent !important;
    border: 1px solid var(--primary-dim) !important;
    color: var(--primary) !important;
}

.cf7-theme-form .wpcf7-form-control.wpcf7-submit:hover {
    background: var(--primary) !important;
    color: var(--bg) !important;
}

.cf7-theme-form .wpcf7-form-control.wpcf7-submit:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
}

.cf7-theme-form .wpcf7-acceptance label {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
    color: var(--text);
}

.cf7-notice {
    font-size: 13px;
    color: var(--text-muted);
    padding: 20px;
    border: 1px dashed var(--border);
    line-height: 1.6;
}

/* ══════════════════════════════════════════
   PAGE CONTACT — trang liên hệ riêng
   ══════════════════════════════════════════ */

.page-hero {
    padding: calc(var(--nav-h) + clamp(40px, 6vw, 80px)) 0 clamp(32px, 5vw, 60px);
    border-bottom: 1px solid var(--border);
    background: var(--panel);
}

.page-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.page-hero__breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s;
}

.page-hero__breadcrumb a:hover {
    color: var(--primary);
}

.page-hero__title {
    font-size: clamp(2.6rem, 5vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.05;
    margin-bottom: 16px;
}

.page-hero__sub {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.7;
}

#contact-page {
    padding: clamp(48px, 8vw, 100px) 0;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}

.contact-page-left {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
}

.contact-page-heading {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text);
    margin: 16px 0 32px;
}

.contact-page-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.contact-social-link {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 14px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s, border-color .2s;
}

.contact-social-link:hover {
    color: var(--primary);
    border-color: var(--primary-dim);
}

.contact-page-form-inner {
    border: 1px solid var(--border);
    padding: clamp(24px, 3.5vw, 48px);
    background: var(--panel);
}

.contact-page-form-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.contact-page-form-title {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.contact-page-form-note {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.contact-page-form-note strong {
    color: var(--primary);
}

@media (max-width: 900px) {
    .contact-page-grid {
        grid-template-columns: 1fr;
    }

    .contact-page-left {
        position: static;
    }

    .cf7-theme-form .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .page-hero__title {
        font-size: 2.2rem;
    }

    .contact-page-form-inner {
        padding: 20px;
    }
}

/* ══════════════════════════════════════════
   POLICY PAGES — Return policy / đổi trả
   ══════════════════════════════════════════ */
.page-main.page-main--policy {
    max-width: min(980px, 100% - 48px);
    margin: clamp(26px, 5vw, 56px) auto clamp(52px, 8vw, 92px);
    padding: clamp(22px, 3.5vw, 38px);
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel);
}

.page-main.page-main--policy>*:first-child {
    margin-top: 0;
}

.page-main.page-main--policy h2,
.page-main.page-main--policy h3 {
    margin: 1.25em 0 .55em;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: .01em;
}

.page-main.page-main--policy h2 {
    font-size: clamp(1.28rem, 2.3vw, 1.72rem);
}

.page-main.page-main--policy h3 {
    font-size: clamp(1.04rem, 1.7vw, 1.22rem);
    color: var(--primary);
}

.page-main.page-main--policy p {
    margin: 0 0 1em;
    color: var(--text);
    font-size: clamp(.95rem, 1.22vw, 1.03rem);
    line-height: 1.75;
    letter-spacing: .01em;
}

.page-main.page-main--policy ul,
.page-main.page-main--policy ol {
    margin: 0 0 1em;
    padding-left: 1.2em;
    color: var(--text);
}

.page-main.page-main--policy li {
    margin: .35em 0;
    line-height: 1.65;
}

@media (max-width: 640px) {
    .page-main.page-main--policy {
        max-width: calc(100% - 24px);
        padding: 16px;
        border-radius: 10px;
    }
}

/* ══════════════════════════════════════════
   WOOCOMMERCE — cart icon (header)
   ══════════════════════════════════════════ */

.cart-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    overflow: visible !important;
}

.cart-toggle:hover {
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -7px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--bg);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    display: none;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.cart-count.has-items {
    display: inline-flex;
}

body.cart-sheet-open {
    overflow: hidden;
}

.cart-sheet {
    position: fixed;
    inset: 0;
    z-index: 9300;
    pointer-events: none;
}

.cart-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 12, .62);
    opacity: 0;
    transition: opacity .25s;
}

.cart-sheet__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(440px, 94vw);
    height: 100%;
    background: var(--panel);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform .28s ease;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.cart-sheet.is-open {
    pointer-events: auto;
}

.cart-sheet.is-open .cart-sheet__backdrop {
    opacity: 1;
}

.cart-sheet.is-open .cart-sheet__panel {
    transform: translateX(0);
}

.cart-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--border);
}

.cart-sheet__head h3 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cart-sheet__close {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.cart-sheet__body {
    overflow: auto;
    padding: 12px 14px 16px;
}

.cart-sheet__item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.cart-sheet__thumb img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    display: block;
}

.cart-sheet__name {
    font-size: .86rem;
    color: var(--text);
    text-decoration: none;
}

.cart-sheet__line-price {
    margin-top: 4px;
    font-size: .8rem;
    color: var(--primary);
}

.cart-sheet__qty {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
}

.cart-sheet__qty-btn {
    width: 24px;
    height: 24px;
    border: 0;
    background: var(--bg2);
    color: var(--text);
    cursor: pointer;
}

.cart-sheet__qty-val {
    width: 26px;
    text-align: center;
    font-size: .74rem;
}

.cart-sheet__remove {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: .9rem;
    cursor: pointer;
    padding-top: 2px;
}

.cart-sheet__empty {
    text-align: center;
    padding: 52px 10px;
    color: var(--text-muted);
}

.cart-sheet__empty-icon {
    font-size: 38px;
    opacity: .35;
    margin: 0 0 6px;
}

.cart-sheet__foot {
    border-top: 1px solid var(--border);
    padding: 12px 14px 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* ══════════════════════════════════════════
   WOOCOMMERCE — single product standard layout
   ══════════════════════════════════════════ */
.woo-single-main {
    padding: clamp(30px, 5vw, 64px) 0 clamp(50px, 7vw, 90px);
}

.woo-single-wrap .woocommerce-breadcrumb {
    margin: 0 0 18px;
    font-size: 12px;
    color: var(--text-muted);
}

.woo-single-wrap .woocommerce-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.woo-single-wrap .woocommerce-breadcrumb a:hover {
    color: var(--primary);
}

.woo-single-wrap div.product.type-product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: clamp(24px, 4vw, 54px);
    margin-bottom: 40px;
    align-items: start;
}

.woo-single-wrap div.product.type-product>.images,
.woo-single-wrap div.product.type-product>.summary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.woo-single-wrap .woocommerce-product-gallery {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.woo-single-wrap span.onsale {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    margin: 0;
    min-width: auto;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .7rem;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(229, 62, 62, .95);
    color: #fff;
}

.woo-single-wrap .woocommerce-product-gallery__wrapper,
.woo-single-wrap .woocommerce-product-gallery__image,
.woo-single-wrap .woocommerce-product-gallery__image img {
    border-radius: 0;
    overflow: hidden;
}

.woo-single-wrap .woocommerce-product-gallery__wrapper img {
    display: block;
    width: 100%;
    height: auto;
}

.woo-single-wrap .flex-control-nav,
.woo-single-wrap .flex-control-thumbs {
    margin-top: 10px !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.woo-single-wrap .flex-control-thumbs li {
    margin: 0 !important;
}

.woo-single-wrap .flex-control-thumbs li img {
    border-radius: 0;
    border: 1px solid var(--border);
    overflow: hidden;
}

.woo-single-wrap .summary.entry-summary {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.woo-single-meta-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.woo-single-series {
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.woo-single-badge {
    font-size: .68rem;
    padding: 4px 8px;
    border: 1px solid rgba(var(--primary-rgb), .4);
    color: var(--primary);
    border-radius: 999px;
}

.woo-single-wrap .product_title {
    font-size: clamp(1.6rem, 3.2vw, 2.35rem);
    margin: 0 0 10px;
}

.woo-single-wrap .summary .price {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
}

.woo-single-wrap .summary .woocommerce-product-details__short-description {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 14px;
}

.woo-single-wrap .summary form.cart {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.woo-single-wrap .summary form.cart .woo-qty-wrap,
.woo-single-wrap .summary form.cart .quantity {
    border-radius: 0;
    overflow: hidden;
}

.woo-single-wrap .summary form.cart .woo-qty__btn {
    width: 34px;
    height: 40px;
    font-size: 18px;
}

.woo-single-wrap .summary form.cart .woo-qty__input,
.woo-single-wrap .summary form.cart .quantity .qty {
    height: 40px;
    min-width: 48px;
}

.woo-single-wrap .summary form.cart .single_add_to_cart_button,
.woo-single-wrap .summary form.cart button.single_add_to_cart_button,
.woo-single-wrap .summary form.cart .button.alt {
    border-radius: 0 !important;
    min-height: 40px;
    padding: 0 20px !important;
    line-height: 40px !important;
}

.woo-single-wrap .summary .product_meta {
    margin-top: 10px;
    line-height: 1.5;
}

.woo-single-wrap .summary .product_meta>span {
    display: block;
    margin: 0 0 2px;
}

.woo-single-share {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.woo-single-share__label {
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.woo-single-share__icons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.woo-single-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border2);
    background: transparent;
    color: var(--text);
    font-size: .82rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.woo-single-share-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary-rgb), .08);
}

.woo-single-wrap .woocommerce-tabs {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    background: var(--panel);
    clear: both;
    width: 100%;
    max-width: 100%;
    grid-column: 1 / -1;
}

.woo-single-wrap .woocommerce-tabs ul.tabs {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border: 0;
}

.woo-single-wrap .woocommerce-tabs ul.tabs li {
    list-style: none;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 12px;
    background: transparent;
}

.woo-single-wrap .woocommerce-tabs ul.tabs li.active {
    border-color: var(--primary);
}

.woo-single-wrap .woocommerce-tabs ul.tabs li a {
    color: var(--text);
    text-decoration: none;
    font-size: .78rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.woo-single-wrap .woocommerce-tabs .panel {
    margin: 0;
    padding: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.woo-single-wrap .woocommerce-tabs .panel h2:first-child {
    margin-top: 0;
    font-size: 1rem;
    color: var(--text);
}

.woo-single-wrap .related.products>h2 {
    margin: 0 0 14px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.woo-single-wrap .related.products ul.products {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 14px;
}

.woo-single-wrap .related.products ul.products>.product {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    background: var(--panel);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    width: auto !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
}

.woo-single-wrap .related.products ul.products>.product a {
    color: var(--text);
    text-decoration: none;
}

.woo-single-wrap .related.products ul.products>.product a img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    border: 1px solid var(--border);
    margin-bottom: 10px;
}

.woo-single-wrap .related.products ul.products>.product .woocommerce-loop-product__title {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--text);
    letter-spacing: .01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.35em * 2);
}

.woo-single-wrap .related.products ul.products>.product .price {
    display: block;
    margin: 0 0 10px;
    color: var(--primary);
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.3;
}

.woo-single-wrap .related.products ul.products>.product .button {
    margin-top: auto;
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--primary);
    color: var(--on-primary);
    background: var(--primary);
    padding: 0 12px;
}

.woo-single-wrap .related.products ul.products>.product .button:hover {
    filter: brightness(1.05);
}

/* ── Reviews tab styling ── */
.woo-single-wrap .woocommerce-Reviews {
    width: 100%;
}

.woo-single-wrap .woocommerce-Reviews-title {
    margin: 0 0 16px;
    font-size: 1.18rem;
    color: var(--text);
    letter-spacing: .01em;
}

.woo-single-wrap .woocommerce-Reviews .commentlist {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.woo-single-wrap .woocommerce-Reviews .commentlist li {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.woo-single-wrap .woocommerce-Reviews .commentlist li .comment_container {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.woo-single-wrap .woocommerce-Reviews .commentlist li img.avatar {
    width: 54px !important;
    height: 54px !important;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.woo-single-wrap .woocommerce-Reviews .commentlist li .meta {
    margin: 0 0 8px;
    color: var(--text-muted);
    font-size: .84rem;
}

.woo-single-wrap .woocommerce-Reviews .commentlist li .meta strong {
    color: var(--text);
    font-size: .95rem;
    letter-spacing: .01em;
}

.woo-single-wrap .woocommerce-Reviews .commentlist li .description p {
    margin: 0;
    color: var(--text);
    font-size: .97rem;
    line-height: 1.7;
}

.woo-single-wrap .woocommerce-Reviews .star-rating {
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
    color: rgba(255, 204, 102, .22);
    font-size: 15px;
    line-height: 1;
    letter-spacing: 2px;
}

.woo-single-wrap .woocommerce-Reviews .star-rating::before {
    content: "★★★★★";
}

.woo-single-wrap .woocommerce-Reviews .star-rating>span {
    position: absolute;
    inset: 0 auto 0 0;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0;
}

.woo-single-wrap .woocommerce-Reviews .star-rating>span::before {
    content: "★★★★★";
    display: block;
    color: #ffcc66;
    font-size: 15px;
    line-height: 1;
    letter-spacing: 2px;
}

.woo-single-wrap .woocommerce-Reviews .takeoff-rating-fraction {
    margin-left: 8px;
    color: #ffcc66;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .03em;
}

.woo-single-wrap #review_form_wrapper {
    margin-top: 10px;
}

.woo-single-wrap .comment-respond {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    background: rgba(var(--bg2-rgb), .45);
}

.woo-single-wrap #review_form .comment-reply-title {
    display: block;
    margin: 0 0 10px;
    color: var(--text);
    font-size: 1.02rem;
    font-weight: 700;
}

.woo-single-wrap #review_form #respond p {
    margin: 0 0 12px;
}

.woo-single-wrap #review_form #respond label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: .01em;
    font-weight: 500;
}

.woo-single-wrap #review_form #respond input[type="text"],
.woo-single-wrap #review_form #respond input[type="email"],
.woo-single-wrap #review_form #respond textarea,
.woo-single-wrap #review_form #respond select {
    width: 100% !important;
    border: 1px solid var(--border) !important;
    background: var(--bg2) !important;
    color: var(--text) !important;
    border-radius: 10px !important;
    padding: 11px 13px !important;
    font-family: var(--font-mono) !important;
    font-size: 13px !important;
    line-height: 1.45;
}

.woo-single-wrap #review_form #respond textarea {
    min-height: 170px;
    resize: vertical;
}

.woo-single-wrap #review_form #respond .form-submit input.submit {
    background: var(--primary) !important;
    color: var(--bg) !important;
    border: 0 !important;
    border-radius: 8px !important;
    padding: 10px 16px !important;
    font-size: 12px !important;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
}

.woo-single-wrap p.stars {
    display: inline-flex;
    gap: 4px;
    margin: 0 0 10px !important;
}

.woo-single-wrap p.stars a {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: #ffcc66 !important;
    text-decoration: none !important;
    font-size: 0;
    position: relative;
    background: rgba(var(--bg2-rgb), .35);
}

.woo-single-wrap p.stars a::before {
    content: "★";
    font-size: 14px;
    line-height: 1;
}

.woo-single-wrap p.stars a.active,
.woo-single-wrap p.stars a:hover {
    border-color: #ffcc66;
    background: rgba(255, 204, 102, .14);
}

.woo-single-wrap .takeoff-rating-selected {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    min-height: 28px;
    color: #ffcc66;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .03em;
}

html[data-theme="light"] .woo-single-wrap .woocommerce-tabs {
    background: #fff;
    border-color: #d7dde7;
}

html[data-theme="light"] .woo-single-wrap .woocommerce-Reviews .commentlist li .meta {
    color: #6b7280;
}

html[data-theme="light"] .woo-single-wrap .woocommerce-Reviews .commentlist li .meta strong,
html[data-theme="light"] .woo-single-wrap .woocommerce-Reviews .commentlist li .description p,
html[data-theme="light"] .woo-single-wrap #review_form .comment-reply-title {
    color: #111827;
}

html[data-theme="light"] .woo-single-wrap .comment-respond {
    background: #f8fafc;
    border-color: #d7dde7;
}

html[data-theme="light"] .woo-single-wrap #review_form #respond label {
    color: #4b5563;
}

html[data-theme="light"] .woo-single-wrap #review_form #respond input[type="text"],
html[data-theme="light"] .woo-single-wrap #review_form #respond input[type="email"],
html[data-theme="light"] .woo-single-wrap #review_form #respond textarea,
html[data-theme="light"] .woo-single-wrap #review_form #respond select {
    background: #fff !important;
    border-color: #cfd8e3 !important;
    color: #111827 !important;
}

.woo-single-wrap .related.products {
    margin-top: 36px;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 1200px) {
    .woo-single-wrap .related.products ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .woo-single-wrap div.product.type-product {
        grid-template-columns: 1fr;
    }

    .woo-single-wrap .related.products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .woo-single-wrap .related.products ul.products {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════
   WOOCOMMERCE — add to cart button + price
   ══════════════════════════════════════════ */

.takeoff-atc-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.takeoff-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.takeoff-price .woocommerce-Price-amount {
    color: inherit;
}

.takeoff-price del {
    opacity: 0.45;
    font-weight: 400;
    margin-right: 6px;
}

.add_to_cart_button.btn-filled,
a.add_to_cart_button,
.single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--bg) !important;
    border: 1px solid var(--primary);
    padding: 12px 28px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background .25s, color .25s;
}

a.add_to_cart_button:hover,
.single_add_to_cart_button:hover {
    background: transparent;
    color: var(--primary) !important;
}

a.add_to_cart_button.added::after {
    content: ' ✓';
}

/* Fix readability for product-card add-to-cart buttons */
.pcat-card__footer .add_to_cart_button,
.pcat-card__footer .btn.add_to_cart_button,
.pcat-card__footer a.add_to_cart_button {
    background: var(--primary) !important;
    color: var(--bg) !important;
    border-color: var(--primary) !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

.pcat-card__footer .add_to_cart_button:hover,
.pcat-card__footer .btn.add_to_cart_button:hover {
    background: transparent !important;
    color: var(--primary) !important;
}

/* ══════════════════════════════════════════
   WOOCOMMERCE — cart page
   ══════════════════════════════════════════ */

#woo-cart-page {
    padding: clamp(40px, 7vw, 90px) 0;
}

.woo-cart-empty {
    display: grid;
    place-items: center;
    padding: clamp(34px, 5vw, 72px) 0;
    position: relative;
    isolation: isolate;
}

.woo-cart-empty::before {
    content: "";
    position: absolute;
    inset: -20px 0 0;
    background:
        radial-gradient(circle at 50% 18%, rgba(var(--primary-rgb), .2), transparent 58%),
        repeating-linear-gradient(90deg,
            rgba(var(--primary-rgb), .05) 0 1px,
            transparent 1px 30px),
        repeating-linear-gradient(0deg,
            rgba(var(--primary-rgb), .04) 0 1px,
            transparent 1px 30px);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 82%);
    z-index: -1;
    pointer-events: none;
}

.woo-cart-empty__card {
    width: min(760px, 100%);
    text-align: center;
    padding: clamp(26px, 4vw, 44px);
    border: 1px solid var(--border);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(var(--primary-rgb), .06), rgba(var(--primary-rgb), .015)),
        var(--panel);
    box-shadow: 0 20px 70px rgba(0, 0, 0, .18);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(6px);
}

.woo-cart-empty__card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    border: 1px solid rgba(var(--primary-rgb), .12);
}

.woo-cart-empty__card::after {
    content: "";
    position: absolute;
    width: 180px;
    aspect-ratio: 1;
    left: 50%;
    top: 74px;
    transform: translateX(-50%);
    border-radius: 999px;
    border: 1px solid rgba(var(--primary-rgb), .26);
    box-shadow:
        0 0 0 20px rgba(var(--primary-rgb), .09),
        0 0 0 44px rgba(var(--primary-rgb), .045);
    opacity: .45;
    pointer-events: none;
    animation: cartPulse 2.8s ease-out infinite;
}

.woo-cart-empty__eyebrow {
    margin: 0 0 10px;
    font-size: .76rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(var(--text-rgb), .72);
}

.woo-cart-empty__icon {
    font-size: clamp(50px, 8vw, 84px);
    line-height: 1;
    opacity: .95;
    color: var(--primary);
    margin: 0 0 12px;
    text-shadow:
        0 0 14px rgba(var(--primary-rgb), .65),
        0 0 36px rgba(var(--primary-rgb), .25);
    animation: droneFloat 3.8s ease-in-out infinite;
}

.woo-cart-empty__title {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 3.6vw, 2.2rem);
    letter-spacing: .02em;
    color: var(--text);
    text-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

.woo-cart-empty__text {
    max-width: 62ch;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-muted);
}

.woo-cart-empty__actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.woo-cart-empty__actions .btn {
    min-width: 172px;
}

.woo-cart-empty__hint {
    margin: 18px 0 0;
    font-size: .8rem;
    color: rgba(var(--text-rgb), .62);
    letter-spacing: .03em;
}

html[data-theme="light"] .woo-cart-empty__card {
    box-shadow: 0 12px 30px rgba(18, 22, 28, .08);
    background:
        linear-gradient(180deg, rgba(var(--primary-rgb), .05), rgba(var(--primary-rgb), .01)),
        #fff;
}

html[data-theme="light"] .woo-cart-empty__eyebrow {
    color: rgba(var(--text-rgb), .68);
}

html[data-theme="light"] .woo-cart-empty::before {
    background:
        radial-gradient(circle at 50% 18%, rgba(var(--primary-rgb), .12), transparent 56%),
        repeating-linear-gradient(90deg,
            rgba(var(--primary-rgb), .03) 0 1px,
            transparent 1px 30px),
        repeating-linear-gradient(0deg,
            rgba(var(--primary-rgb), .025) 0 1px,
            transparent 1px 30px);
}

@media (max-width: 640px) {
    .woo-cart-empty__card {
        border-radius: 10px;
        padding: 22px 16px 20px;
    }

    .woo-cart-empty__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .woo-cart-empty__actions .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@keyframes droneFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes cartPulse {
    0% {
        opacity: .58;
        transform: translateX(-50%) scale(.95);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) scale(1.34);
    }
}

.woo-cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: clamp(24px, 4vw, 64px);
    align-items: start;
}

/* Cart items */
.woo-cart-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.woocommerce-cart-form.is-loading {
    opacity: .65;
    pointer-events: none;
    transition: opacity .18s;
}

.woo-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr 120px 140px 120px 36px;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.woo-cart-item:first-child {
    border-top: 1px solid var(--border);
}

.woo-cart-item__img img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
}

.woo-cart-item__name a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: color .2s;
}

.woo-cart-item__name a:hover {
    color: var(--primary);
}

.woo-cart-item__label {
    display: none;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.woo-cart-item__price,
.woo-cart-item__qty,
.woo-cart-item__subtotal {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.woo-cart-item__subtotal {
    color: var(--primary);
}

.woo-remove-item {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    transition: color .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
}

.woo-remove-item:hover {
    color: #e53e3e;
    border-color: rgba(229, 62, 62, 0.4);
}

/* Coupon + update */
.woo-cart-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 24px;
}

.woo-coupon {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.woo-coupon label {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

.woo-coupon__input {
    max-width: 200px;
}

.woo-update-cart:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Cart totals sidebar */
.woo-cart-totals {
    border: 1px solid var(--border);
    padding: clamp(20px, 3vw, 32px);
    background: var(--panel);
    position: sticky;
    top: calc(var(--nav-h) + 24px);
}

.woo-cart-totals__title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

/* WC cart totals table */
.cart_totals table,
.woocommerce-cart-totals table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.cart_totals th,
.cart_totals td {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}

.cart_totals th {
    color: var(--text-muted);
    font-weight: 400;
}

.cart_totals .order-total td {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* WC proceed to checkout button */
.wc-proceed-to-checkout .checkout-button,
.woocommerce a.checkout-button {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 16px;
    background: var(--primary);
    color: var(--bg) !important;
    border: 1px solid var(--primary);
    padding: 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .25s, color .25s;
    cursor: pointer;
}

.wc-proceed-to-checkout .checkout-button:hover {
    background: transparent;
    color: var(--primary) !important;
}

/* Qty input */
.woo-qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    overflow: hidden;
    width: fit-content;
}

.woo-qty__btn {
    width: 30px;
    height: 36px;
    background: var(--bg2);
    border: none;
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    transition: background .15s, color .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.woo-qty__btn:hover {
    background: var(--primary);
    color: var(--bg);
}

.woo-qty__input {
    width: 48px;
    height: 36px;
    text-align: center;
    background: var(--bg2);
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 13px;
    appearance: textfield;
    -moz-appearance: textfield;
}

.woo-qty__input::-webkit-outer-spin-button,
.woo-qty__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* ══════════════════════════════════════════
   WOOCOMMERCE — checkout page (rewritten)
   ══════════════════════════════════════════ */

#woo-checkout-page {
    padding: clamp(32px, 6vw, 72px) 0;
}

/* Layout 2 cột: form | summary */
.woo-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

/* ── Panels (form left + summary right) ── */
.woo-checkout-billing {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.woo-checkout-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 16px;
}

.woo-checkout-panel:last-child {
    margin-bottom: 0;
}

.woo-checkout-summary-inner {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: calc(var(--nav-h) + 20px);
}

/* ── Section title ── */
.woo-checkout-section {
    margin-bottom: 0;
}

.woo-checkout-section__title {
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

/* ── Form fields — all stacked (1 column) ── */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.woocommerce-input-wrapper {
    display: block;
    width: 100%;
}

/* Hidden country field */
.woocommerce-checkout .form-row.hidden {
    display: none !important;
}

/* Label */
.woocommerce-checkout .form-row {
    margin: 0;
    padding: 0;
    display: block !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
}

.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last,
.woocommerce-checkout .form-row-wide {
    float: none !important;
    width: 100% !important;
    clear: both !important;
}

.woocommerce-checkout .form-row.notes,
.woocommerce-checkout #order_comments_field {
    float: none !important;
    width: 100% !important;
    clear: both !important;
}

.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-checkout .woocommerce-additional-fields__field-wrapper,
.woocommerce-checkout #order_comments,
.woocommerce-checkout #order_comments_field .woocommerce-input-wrapper {
    width: 100% !important;
    max-width: 100% !important;
}

#woo-checkout-page .woocommerce-checkout .woocommerce-additional-fields #order_comments_field,
#woo-checkout-page .woocommerce-checkout .woocommerce-additional-fields #order_comments_field .woocommerce-input-wrapper,
#woo-checkout-page .woocommerce-checkout textarea#order_comments {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce-checkout .woocommerce-billing-fields>h3 {
    margin-bottom: 18px;
}

.woocommerce-checkout .form-row label {
    display: block;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.woocommerce-checkout .form-row label .required {
    color: var(--primary);
    margin-left: 2px;
}

/* Input / select / textarea */
.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row input[type="number"],
.woocommerce-checkout .form-row input[type="password"],
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    display: block !important;
    width: 100% !important;
    background: var(--bg2) !important;
    border: 1.5px solid var(--border) !important;
    color: var(--text) !important;
    border-radius: 8px !important;
    padding: 11px 13px !important;
    font-family: var(--font-mono) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
    outline: none !important;
    appearance: none;
    transition: border-color .18s, box-shadow .18s;
}

.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    border-color: rgba(var(--primary-rgb), .7) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .12) !important;
}

.woocommerce-checkout .form-row textarea {
    min-height: 80px;
    resize: vertical;
}

#billing_country_field,
#shipping_country_field {
    display: none !important;
}

/* ── Order summary table ── */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 0;
}

.woocommerce-checkout-review-order-table thead tr th {
    font-size: 10px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0 0 10px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.woocommerce-checkout-review-order-table thead th:last-child {
    text-align: right;
}

.woocommerce-checkout-review-order-table thead th:first-child {
    text-align: left;
}

.woocommerce-checkout-review-order-table tbody td {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
    font-size: 13px;
}

.woocommerce-checkout-review-order-table .product-name {
    color: var(--text);
}

.woocommerce-checkout-review-order-table .product-total {
    text-align: right;
    color: var(--text);
}

.woocommerce-checkout-review-order-table tbody td:first-child,
.woocommerce-checkout-review-order-table tfoot th:first-child {
    text-align: left;
}

.woocommerce-checkout-review-order-table tbody td:last-child,
.woocommerce-checkout-review-order-table tfoot td:last-child {
    text-align: right;
}

.woocommerce-checkout-review-order-table tfoot tr th {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.woocommerce-checkout-review-order-table tfoot tr td {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    text-align: right;
    font-size: 13px;
    color: var(--text);
}

.woocommerce-checkout-review-order-table tfoot .order-total th {
    color: var(--text);
    font-weight: 700;
}

.woocommerce-checkout-review-order-table tfoot .order-total td {
    color: var(--primary) !important;
    font-weight: 700;
    font-size: 15px;
}

/* ── Payment section ── */
.woocommerce-checkout #payment {
    background: transparent;
    border: none;
    margin-top: 16px;
    padding: 0;
}

.woocommerce-checkout #payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.woocommerce-checkout #payment ul.payment_methods li {
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: border-color .2s;
}

.woocommerce-checkout #payment ul.payment_methods li:has(input:checked) {
    border-color: rgba(var(--primary-rgb), .7);
    background: rgba(var(--primary-rgb), .05);
}

.woocommerce-checkout #payment .payment_box {
    background: var(--bg2);
    border-radius: 8px;
    padding: 10px 13px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-top: 6px;
}

.woocommerce-checkout #payment .woocommerce-privacy-policy-text {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

.woocommerce-checkout #payment .form-row.place-order {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.woo-checkout-coupon-zone {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.woo-checkout-coupon-zone .woocommerce-info {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
}

.woo-checkout-coupon-zone .woocommerce-info::before {
    display: none;
}

.woo-checkout-coupon-zone .woocommerce-info a,
.woo-checkout-coupon-zone a.showcoupon {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.woo-checkout-coupon-zone .checkout_coupon {
    margin: 0;
    padding: 10px 0 0;
    border: 0;
    display: none;
    /* mặc định ẩn, click "Nhập mã tại đây" mới mở */
}

/* Khi Woo mở form (inline style display:block), ép lại thành 1 hàng */
.woo-checkout-coupon-zone .checkout_coupon[style*="display: block"] {
    display: flex !important;
    align-items: stretch;
    gap: 8px;
}

.woo-checkout-coupon-zone .checkout_coupon p {
    margin: 0 !important;
    padding: 0 !important;
}

.woo-checkout-coupon-zone .checkout_coupon p.form-row-first,
.woo-checkout-coupon-zone .checkout_coupon p.form-row-last {
    float: none !important;
    width: auto !important;
    clear: none !important;
}

.woo-checkout-coupon-zone .checkout_coupon p.form-row-first {
    flex: 1 1 auto;
    min-width: 0;
}

.woo-checkout-coupon-zone .checkout_coupon p.form-row-last {
    flex: 0 0 46px;
}

.woo-checkout-coupon-zone input[name="coupon_code"] {
    width: 100% !important;
    background: var(--bg2) !important;
    border: 1.5px solid var(--border) !important;
    color: var(--text) !important;
    border-radius: 8px !important;
    padding: 11px 13px !important;
    font-family: var(--font-mono) !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

.woo-checkout-coupon-zone button.button,
.woo-checkout-coupon-zone .checkout_coupon .button,
.woo-checkout-coupon-zone .checkout_coupon button[type="submit"] {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: auto !important;
    display: block !important;
    background: var(--primary) !important;
    color: var(--bg) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0 !important;
    font-family: var(--font-mono) !important;
    font-size: 0 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    cursor: pointer !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
}

.woo-checkout-coupon-zone button.button:hover,
.woo-checkout-coupon-zone .checkout_coupon .button:hover,
.woo-checkout-coupon-zone .checkout_coupon button[type="submit"]:hover {
    opacity: .88;
}

.woo-checkout-coupon-zone .checkout_coupon .button::before,
.woo-checkout-coupon-zone .checkout_coupon button[type="submit"]::before {
    content: "➜";
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    color: var(--bg);
}

.woo-checkout-coupon-zone .checkout_coupon .clear,
.woo-checkout-coupon-zone .checkout_coupon::after,
.woo-checkout-coupon-zone .checkout_coupon::before {
    display: none !important;
}

/* Tắt spinner mặc định của Woo trên nút coupon (vòng tròn ở giữa) */
.woo-checkout-coupon-zone .checkout_coupon .button.loading::after,
.woo-checkout-coupon-zone .checkout_coupon button.loading::after {
    display: none !important;
}

.woo-checkout-coupon-zone .woocommerce-info a:hover,
.woo-checkout-coupon-zone a.showcoupon:hover {
    opacity: .86;
}

.woo-checkout-coupon-go-cart {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.woo-checkout-coupon-go-cart a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Place order button ── */
#place_order,
.woocommerce-checkout #payment #place_order {
    display: block !important;
    width: 100% !important;
    background: var(--primary) !important;
    color: var(--bg) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 15px 20px !important;
    font-family: var(--font-mono) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    margin-top: 0 !important;
    transition: opacity .2s, transform .15s !important;
    box-shadow: 0 4px 18px rgba(var(--primary-rgb), .3) !important;
}

#place_order:hover {
    opacity: .88 !important;
    transform: translateY(-1px) !important;
}

/* ── Login / coupon forms ── */
.woo-checkout-login {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ── Light mode overrides ── */
html[data-theme="light"] .woo-checkout-panel,
html[data-theme="light"] .woo-checkout-summary-inner {
    background: #fff;
    box-shadow: 0 4px 22px rgba(18, 24, 36, .07);
}

html[data-theme="light"] .woocommerce-checkout .form-row input[type="text"],
html[data-theme="light"] .woocommerce-checkout .form-row input[type="email"],
html[data-theme="light"] .woocommerce-checkout .form-row input[type="tel"],
html[data-theme="light"] .woocommerce-checkout .form-row input[type="number"],
html[data-theme="light"] .woocommerce-checkout .form-row input[type="password"],
html[data-theme="light"] .woocommerce-checkout .form-row select,
html[data-theme="light"] .woocommerce-checkout .form-row textarea {
    background: #f7f8fa !important;
    border-color: #d0d7e2 !important;
    color: #111 !important;
}

html[data-theme="light"] .woocommerce-checkout #payment ul.payment_methods li {
    border-color: #d0d7e2;
    color: #111;
}

html[data-theme="light"] .woocommerce-checkout #payment .payment_box {
    background: #f4f5f7;
    color: #666;
}

/* ══════════════════════════════════════════
   WOOCOMMERCE — thank you page
   ══════════════════════════════════════════ */

#woo-thankyou-page {
    padding: 0 0 clamp(44px, 7vw, 84px);
}

.woo-thankyou-hero {
    padding: clamp(38px, 7vw, 78px) 0 26px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 22px;
}

.woo-thankyou-overview {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.woo-thankyou-overview__item {
    border: 1px solid var(--border);
    background: var(--panel);
    padding: 12px 14px;
}

.woo-thankyou-overview__item .k {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.woo-thankyou-overview__item .v {
    font-size: .96rem;
    color: var(--text);
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.woo-thankyou-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 16px;
}

.woo-thankyou-card {
    border: 1px solid var(--border);
    background: var(--panel);
    padding: 16px 18px;
    overflow: hidden;
}

.woo-thankyou-card__title {
    margin: 0 0 10px;
    font-size: .86rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.woo-thankyou-card .woocommerce-table--order-details,
.woo-thankyou-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.woo-thankyou-card th,
.woo-thankyou-card td {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.woo-thankyou-card th {
    color: var(--text-muted);
    font-weight: 500;
}

.woo-thankyou-card address {
    margin: 0;
    white-space: pre-line;
    color: var(--text);
    font-style: normal;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.woo-thankyou-order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.woo-thankyou-order-table th,
.woo-thankyou-order-table td {
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.woo-thankyou-order-table thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    font-weight: 600;
}

.woo-thankyou-order-table th:last-child,
.woo-thankyou-order-table td:last-child {
    text-align: right;
}

.woo-thankyou-order-table th:first-child,
.woo-thankyou-order-table td:first-child {
    text-align: left;
}

.woo-thankyou-order-table tfoot th {
    text-align: left;
}

.woo-thankyou-order-table tfoot td {
    text-align: right;
}

.woo-thankyou-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── SePay QR on thankyou page (override plugin styles) ── */
#woo-thankyou-page .woocommerce-sepay-bank-details {
    margin-top: 14px;
}

#woo-thankyou-page .woocommerce-sepay-bank-details .sepay-box {
    border: 1px solid var(--border);
    background: var(--panel);
    border-radius: 14px;
    padding: 18px 16px;
}

#woo-thankyou-page .woocommerce-sepay-bank-details .box-title {
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

#woo-thankyou-page .woocommerce-sepay-bank-details .sepay-pay-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

#woo-thankyou-page .woocommerce-sepay-bank-details .qr-box,
#woo-thankyou-page .woocommerce-sepay-bank-details .manual-box {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg2);
    padding: 14px 14px;
}

#woo-thankyou-page .woocommerce-sepay-bank-details .qr-title,
#woo-thankyou-page .woocommerce-sepay-bank-details .manual-title {
    font-size: 11px;
    letter-spacing: .06em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
}

#woo-thankyou-page .woocommerce-sepay-bank-details .bank-info-cell,
#woo-thankyou-page .woocommerce-sepay-bank-details .bank-info-value,
#woo-thankyou-page .woocommerce-sepay-bank-details .note {
    color: var(--text);
}

#woo-thankyou-page .woocommerce-sepay-bank-details .qr-zone img.qr-image,
#woo-thankyou-page .woocommerce-sepay-bank-details .qr-image {
    width: 100%;
    max-width: 220px;
    height: auto;
    margin: 0 auto;
    display: block;
}

#woo-thankyou-page .woocommerce-sepay-bank-details .button-qr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(var(--primary-rgb), .55);
    color: var(--primary);
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none !important;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
}

#woo-thankyou-page .woocommerce-sepay-bank-details .button-qr:hover {
    background: rgba(var(--primary-rgb), .08);
}

#woo-thankyou-page .woocommerce-sepay-bank-details .sepay-pay-footer {
    margin-top: 12px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    color: var(--text-muted);
}

#woo-thankyou-page .woocommerce-sepay-bank-details .note {
    margin-top: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.55;
    font-size: 13px;
}

@media (max-width: 1080px) {
    .woo-thankyou-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .woo-thankyou-grid {
        grid-template-columns: 1fr;
    }

    #woo-thankyou-page .woocommerce-sepay-bank-details .sepay-pay-info {
        grid-template-columns: 1fr;
    }
}

/* WC notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 12px 16px;
    font-size: 13px;
    font-family: var(--font-mono);
    margin-bottom: 16px;
    border: 1px solid var(--border);
    list-style: none;
}

.woocommerce-message {
    border-color: var(--primary-dim);
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.woocommerce-error {
    border-color: rgba(229, 62, 62, 0.4);
    color: #e53e3e;
    background: rgba(229, 62, 62, 0.04);
}

.woocommerce-info {
    border-color: var(--border);
    color: var(--text-muted);
}

/* ══════════════════════════════════════════
   WOOCOMMERCE — psingle CTA wrap
   ══════════════════════════════════════════ */

.psingle-hero__cta-wrap {
    margin-top: 8px;
}

.psingle-hero__cta-wrap .takeoff-atc-wrap {
    flex-wrap: wrap;
}

/* ══════════════════════════════════════════
   WOOCOMMERCE — responsive
   ══════════════════════════════════════════ */

@media (max-width: 1024px) {

    .woo-cart-layout,
    .woo-checkout-layout {
        grid-template-columns: 1fr;
    }

    .woo-cart-totals,
    .woo-checkout-summary-inner {
        position: static;
    }
}

@media (max-width: 768px) {
    .woo-cart-item {
        grid-template-columns: 60px 1fr 28px;
        grid-template-rows: auto auto auto;
    }

    .woo-cart-item__img {
        grid-row: 1 / 3;
    }

    .woo-cart-item__name {
        grid-column: 2;
    }

    .woo-cart-item__remove {
        grid-column: 3;
        grid-row: 1;
    }

    .woo-cart-item__price,
    .woo-cart-item__qty,
    .woo-cart-item__subtotal {
        grid-column: 1 / -1;
    }

    .woo-cart-item__label {
        display: block;
    }

    .woocommerce-billing-fields__field-wrapper,
    .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════
   WC — single product summary (price + add-to-cart)
   ══════════════════════════════════════════ */
.psingle-purchase {
    margin-bottom: 28px;
}

.psingle-price,
.psingle-purchase .price,
.psingle-purchase p.price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.psingle-purchase .price ins {
    text-decoration: none;
}

.psingle-purchase .price del {
    font-size: 1rem;
    opacity: .5;
    margin-right: 8px;
}

.psingle-purchase form.cart {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.psingle-purchase .single_add_to_cart_button,
.psingle-purchase .button {
    background: var(--primary) !important;
    color: var(--bg) !important;
    border: none !important;
    padding: 14px 28px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    font-size: .95rem !important;
    letter-spacing: .06em !important;
    cursor: pointer !important;
    transition: opacity .2s !important;
}

.psingle-purchase .single_add_to_cart_button:hover,
.psingle-purchase .button:hover {
    opacity: .85 !important;
}

.psingle-purchase .product_meta {
    margin-top: 12px;
    font-size: .8rem;
    color: var(--text-muted);
}

.psingle-purchase .product_meta span {
    margin-right: 16px;
}

/* ── Archive card — price + footer ── */
.pcat-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.pcat-card__price,
.pcat-card__footer .price {
    font-weight: 700;
    color: var(--primary);
    font-size: .95rem;
}

.pcat-card__footer .price ins {
    text-decoration: none;
}

/* ── Small button variant ── */
.btn-sm {
    padding: 9px 18px;
    font-size: .8rem;
    letter-spacing: .07em;
}

/* WC pagination override */
.woocommerce-pagination {
    margin-top: 40px;
    text-align: center;
}

.woocommerce-pagination ul.page-numbers {
    display: inline-flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination ul.page-numbers li .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-size: .85rem;
    transition: border-color .2s, color .2s;
}

.woocommerce-pagination ul.page-numbers li .page-numbers.current,
.woocommerce-pagination ul.page-numbers li .page-numbers:hover {
    border-color: var(--primary);
    color: var(--primary);
}