/*
 * Storefront shell. Static asset, no build step — this project ships no Vite
 * or npm pipeline for the client side.
 */

:root {
    --client-ink: #172033;
    --client-muted: #526078;
    --client-line: #e6eaf0;
    --client-accent: #2563eb;
    --client-shell: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--client-ink);
    font: 16px/1.65 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff;
}

img { max-width: 100%; height: auto; }

a { color: var(--client-accent); }

/* Persisted semantic heading overrides. These classes intentionally beat an
 * imported theme's utility size so changing H1/H2/etc. is visible as well as
 * correct in the DOM. "Default" removes them and returns to the theme. */
.client-content-heading-h1 { font-size: 2.5rem !important; line-height: 1.15 !important; font-weight: 700 !important; }
.client-content-heading-h2 { font-size: 2rem !important; line-height: 1.2 !important; font-weight: 650 !important; }
.client-content-heading-h3 { font-size: 1.625rem !important; line-height: 1.25 !important; font-weight: 600 !important; }
.client-content-heading-h4 { font-size: 1.375rem !important; line-height: 1.3 !important; font-weight: 600 !important; }
.client-content-heading-h5 { font-size: 1.125rem !important; line-height: 1.4 !important; font-weight: 600 !important; }
.client-content-heading-h6 { font-size: 1rem !important; line-height: 1.45 !important; font-weight: 600 !important; }
.client-content-format-p { font-size: 1rem !important; line-height: 1.65 !important; font-weight: 400 !important; }
.client-content-list-ul,
.client-content-list-ol { display: block !important; margin: .75rem 0 !important; padding-inline-start: 1.75rem !important; }
.client-content-list-ul { list-style: disc outside !important; }
.client-content-list-ol { list-style: decimal outside !important; }
.client-content-list-ul > li,
.client-content-list-ol > li { display: list-item !important; }

.client-shell {
    max-width: var(--client-shell);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header ------------------------------------------------------------------ */

.client-header {
    border-bottom: 1px solid var(--client-line);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 40;
}

.client-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
}

.client-brand {
    font-weight: 700;
    font-size: 19px;
    text-decoration: none;
    color: var(--client-ink);
    white-space: nowrap;
}

/* Navigation -------------------------------------------------------------- */

.client-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.client-nav-item { position: relative; }

.client-nav-item > a,
.client-nav-item > span {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--client-ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}

.client-nav-item > a:hover { background: #eef2ff; color: var(--client-accent); }

/* An item with no resolvable target is text, not a link. */
.client-nav-item > span { color: var(--client-muted); cursor: default; }

/* Submenus: hover on desktop, always stacked on narrow screens. */
.client-nav-list .client-nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    flex-direction: column;
    gap: 0;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--client-line);
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
    z-index: 50;
}

.client-nav-item:hover > .client-nav-list,
.client-nav-item:focus-within > .client-nav-list { display: flex; }

@media (max-width: 860px) {
    .client-header__inner { flex-direction: column; align-items: stretch; padding: 12px 0; }
    .client-nav-list { flex-direction: column; }
    .client-nav-list .client-nav-list {
        display: flex;
        position: static;
        border: 0;
        box-shadow: none;
        padding: 0 0 0 16px;
    }
}

/* Listing pages ----------------------------------------------------------- */

.client-page-head { padding: 48px 0 8px; }
.client-page-head h1 { font-size: 38px; line-height: 1.15; margin: 0 0 10px; }
.client-page-head p { color: var(--client-muted); margin: 0; max-width: 720px; }

.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    padding: 32px 0 56px;
}

.client-card {
    border: 1px solid var(--client-line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .18s ease, transform .18s ease;
}

.client-card:hover { box-shadow: 0 14px 34px rgba(15, 23, 42, .1); transform: translateY(-2px); }

.client-card__media {
    aspect-ratio: 4 / 3;
    background: #f4f6f9;
    display: block;
    object-fit: cover;
    width: 100%;
}

.client-card__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.client-card__title { font-size: 16px; font-weight: 600; margin: 0; }
.client-card__meta { color: var(--client-muted); font-size: 14px; margin: 0; }
.client-card__price { font-weight: 700; color: var(--client-accent); }

.client-empty {
    padding: 64px 0;
    text-align: center;
    color: var(--client-muted);
}

.client-pagination { padding: 0 0 56px; }
.client-pagination nav { display: flex; gap: 6px; flex-wrap: wrap; }

/* Footer ------------------------------------------------------------------ */

.client-footer {
    border-top: 1px solid var(--client-line);
    background: #f8fafc;
    padding: 40px 0 32px;
    margin-top: 24px;
}

.client-footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: flex-start;
}

.client-footer .client-nav-list { flex-direction: column; gap: 0; }
.client-footer .client-nav-list .client-nav-list { position: static; display: flex; border: 0; box-shadow: none; padding-left: 14px; }
.client-footer__note { color: var(--client-muted); font-size: 14px; margin: 0; max-width: 420px; }

/* Editable regions -------------------------------------------------------- */

/* Rendered only for an admin: a region emptied on purpose still needs a
   handle, or it can never be restored. */
.client-block-empty {
    min-height: 20px;
    min-width: 60px;
    display: inline-block;
}

/*
 * Section appearance tokens.
 *
 * `App\Support\SectionRegistry` maps a stored token to one of these classes, and
 * the database only ever holds the token. Repainting a token is therefore a
 * change here and nowhere else — no UPDATE across the rows that chose it.
 *
 * Every class the registry can emit must exist below. There is no build step on
 * the client side to notice a missing one, so SectionSettingsTest asserts it.
 */
.client-section--bg-light { background: #fff; }
.client-section--bg-muted { background: #f6f8fc; }
.client-section--bg-dark {
    background: var(--client-ink);
    color: #fff;
}
/* Reads the accent through the variable so a per-section colour, when one is
   picked, repaints this without a second rule. */
.client-section--bg-primary {
    background: var(--client-accent);
    color: #fff;
}
.client-section--bg-dark a,
.client-section--bg-primary a { color: #fff; }

.client-section--align-left { text-align: left; }
.client-section--align-center { text-align: center; }
.client-section--align-right { text-align: right; }

.client-section--pad-none { padding-block: 0; }
.client-section--pad-sm { padding-block: 16px; }
.client-section--pad-md { padding-block: 32px; }
.client-section--pad-lg { padding-block: 64px; }

/*
 * A colour the editor picked, arriving as an inline custom property because no
 * stylesheet can hold a rule for a value invented at pick time. Redefining the
 * theme's own variable inside the section is what makes links and the primary
 * background follow along without a rule per component.
 */
.client-section--accent { --client-accent: var(--client-section-accent, #2563eb); }

/*
 * A section an editor hid. Only ever rendered for an editor — a visitor gets no
 * element at all — so this is editor chrome and may say so loudly.
 */
.client-section--hidden {
    opacity: .42;
    outline: 1px dashed #97a4b8;
    outline-offset: 2px;
}

/*
 * Section variants: the shapes a section itself knows how to render. Scoped by
 * section name, so `boxed` in one section cannot restyle another's.
 *
 * There is no `--intro-plain` or `--features-stack` here on purpose. "The way the
 * template already does it" is the absence of a variant, so a class for it would
 * be a rule with nothing to say.
 *
 * These target `.client-section`, which every section-list emits, rather than any
 * one theme's own class names — a variant has to keep working when the markup
 * inside the section is replaced wholesale.
 */
.client-section--intro-boxed {
    border: 1px solid var(--client-line);
    border-radius: 12px;
    padding: 20px;
}
.client-section--features-grid { display: flow-root; }
.client-section--features-grid .client-section {
    display: inline-block;
    vertical-align: top;
    width: calc(50% - 6px);
}

/* =========================================================================
   STOREFRONT MOTION & MOBILE TOUCH PERFORMANCE
   ========================================================================= */
html {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

body {
    -webkit-overflow-scrolling: touch;
}

/* Enable smooth scrolling only for desktop browsers with fine pointer */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

.pdp-hero-spec {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Isolate hover micro-elevation to desktop fine-pointer devices */
@media (hover: hover) and (pointer: fine) {
    .pdp-hero-spec:hover {
        transform: translateY(-2px);
        border-color: #1464f4;
        box-shadow: 0 8px 18px rgba(20, 100, 244, 0.08);
    }
}

/* =========================================================================
   VINFAST SIGNATURE SHOWROOM STAGE & DIGITAL HUD ANIMATIONS
   ========================================================================= */

/* 1. Hero Floating Glassmorphism Badges */
.hero-floating-badges-container {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: calc(100% - 32px);
    max-width: 920px;
    pointer-events: none;
}

.hero-floating-badge {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 9999px;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: -0.01em;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease, border-color 0.3s ease;
    animation: hero-badge-float 4.5s ease-in-out infinite;
}

.hero-floating-badge:nth-child(2) {
    animation-delay: 1.5s;
}
.hero-floating-badge:nth-child(3) {
    animation-delay: 3.0s;
}

@keyframes hero-badge-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@media (hover: hover) and (pointer: fine) {
    .hero-floating-badge:hover {
        transform: translateY(-4px) scale(1.03);
        background: rgba(20, 100, 244, 0.88);
        border-color: rgba(255, 255, 255, 0.5);
    }
}

/* 2. Showcase Ambient Showroom Stage */
.showcase-stage-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    perspective: 1200px;
}

/* Ambient Spotlight Behind the Scooter */
.showcase-ambient-halo {
    position: absolute;
    width: 480px;
    height: 280px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    background: radial-gradient(ellipse at center, rgba(20, 100, 244, 0.18) 0%, rgba(14, 165, 233, 0.08) 45%, rgba(255, 255, 255, 0) 72%);
    border-radius: 50%;
    filter: blur(28px);
    pointer-events: none;
    z-index: 1;
    animation: showcase-halo-pulse 5s ease-in-out infinite alternate;
}

@keyframes showcase-halo-pulse {
    0% {
        transform: translate(-50%, -48%) scale(0.92);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -48%) scale(1.08);
        opacity: 1;
    }
}

/* Dynamic Ground Shadow */
.showcase-ground-shadow {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 26px;
    background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.32) 0%, rgba(15, 23, 42, 0.14) 42%, transparent 75%);
    border-radius: 50%;
    filter: blur(6px);
    pointer-events: none;
    z-index: 1;
    transition: transform 0.4s ease, width 0.4s ease;
}

/* Headlight Sweep Ignition Flare */
.showcase-headlight-flare {
    position: absolute;
    top: 26%;
    right: 26%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0%, rgba(56, 189, 248, 0.7) 35%, transparent 72%);
    filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    z-index: 15;
    mix-blend-mode: screen;
}

.showcase-headlight-flare.is-active {
    animation: headlight-ignite 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes headlight-ignite {
    0% {
        opacity: 0;
        transform: scale(0.3) translateX(15px);
    }
    28% {
        opacity: 1;
        transform: scale(1.4) translateX(0);
    }
    65% {
        opacity: 0.55;
        transform: scale(1.05) translateX(-6px);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateX(-14px);
    }
}

/* 3. Digital Cockpit HUD Spec Styling */
.hud-spec-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafd 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 12px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
}

.hud-spec-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background: linear-gradient(90deg, transparent, #1464f4, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hud-spec-card:hover {
    border-color: rgba(20, 100, 244, 0.4);
    box-shadow: 0 10px 24px rgba(20, 100, 244, 0.08);
    transform: translateY(-2px);
}

.hud-spec-card:hover::before {
    opacity: 1;
}

.hud-energy-bar {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 6px;
    position: relative;
}

.hud-energy-progress {
    height: 100%;
    background: linear-gradient(90deg, #1464f4, #00d2ff);
    border-radius: 9999px;
    transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}



