/* HavanCloud — Premium Vapes & Cuban Cigars */
:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #fafbfd;
    --card-bg: #ffffff;
    --primary: #ffffff;
    --primary-light: #ffffff;
    --text: #0f172a;
    --text-muted: #667085;
    --border: #e4e7ec;
    --accent: #1a3a5c;
    --accent-hover: #12293f;
    --gold: #c9963a;
    --gold-light: #f0c060;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.04);
    --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .container {
    min-height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    color: var(--accent);
    text-decoration: none;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}
.nav { display: flex; gap: 22px; align-items: center; }
.nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}
.nav a:hover { color: var(--accent); }
.cart-link {
    background: var(--accent);
    color: #fff !important;
    border-radius: 8px;
    padding: 8px 14px;
}
.cart-link span {
    margin-left: 4px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    padding: 2px 7px;
    border-radius: 6px;
}

/* 语言切换器 */
.lang-switcher { display: flex; align-items: center; gap: 4px; }
.lang-btn {
    background: none; border: none; cursor: pointer; font-size: .85rem;
    color: var(--text-muted); padding: 4px 8px; border-radius: 6px;
    font-family: inherit; font-weight: 500; transition: color .2s, background .2s;
}
.lang-btn:hover { color: var(--text); background: rgba(0,0,0,.05); }
.lang-btn.active { color: var(--gold); font-weight: 700; }
.lang-sep { color: var(--border); font-size: .8rem; }

/* ─── Logo 品牌名 accent 色 ────────────────────────────────────────────────── */
.logo-accent { color: var(--gold); }

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: 80px 0;
}
.hero-bg-img {
    position: absolute;
    inset: 0;
    background: url('../images/havancloud-hero.jpg') center center / cover no-repeat;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 20, 35, 0.82) 0%,
        rgba(20, 12, 5, 0.75) 50%,
        rgba(30, 18, 5, 0.70) 100%
    );
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}
.hero-eyebrow {
    display: inline-block;
    background: rgba(201, 150, 58, 0.18);
    border: 1px solid rgba(201, 150, 58, 0.45);
    color: var(--gold-light);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: 3.2rem;
    line-height: 1.18;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.hero-highlight {
    color: var(--gold-light);
    position: relative;
}
.hero p {
    font-size: 1.08rem;
    color: rgba(255,255,255,0.82);
    max-width: 620px;
    margin: 0 auto 28px;
    line-height: 1.7;
}
.hero-cta-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.btn-hero-primary {
    background: var(--gold);
    color: #fff;
    padding: 14px 36px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background .2s, transform .15s;
    display: inline-block;
}
.btn-hero-primary:hover { background: #b8832a; transform: translateY(-2px); }
.btn-hero-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.35);
    padding: 14px 36px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background .2s, border-color .2s;
    display: inline-block;
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.6);
}
.trust-badges {
    margin-top: 0;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.trust-badges span {
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    backdrop-filter: blur(4px);
}

/* ── 走马灯 ── */
.marquee-bar {
    background: linear-gradient(90deg, #0a1420 0%, #1a0d05 50%, #0a1420 100%);
    border-top: 1px solid rgba(201,150,58,.25);
    border-bottom: 1px solid rgba(201,150,58,.25);
    padding: 0;
    overflow: hidden;
    position: relative;
    height: 44px;
    display: flex;
    align-items: center;
}
.marquee-bar::before,
.marquee-bar::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.marquee-bar::before {
    left: 0;
    background: linear-gradient(90deg, #0a1420, transparent);
}
.marquee-bar::after {
    right: 0;
    background: linear-gradient(-90deg, #0a1420, transparent);
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 38s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-content {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    padding: 0 16px;
}
.marquee-content span {
    font-size: .8rem;
    font-weight: 600;
    color: rgba(240,192,96,.9);
    letter-spacing: .03em;
    padding: 0 18px;
    line-height: 44px;
    transition: color .2s;
}
.marquee-content span:not(.marquee-dot):hover { color: #fff; }
.marquee-dot {
    color: rgba(201,150,58,.4) !important;
    font-size: .65rem !important;
    padding: 0 4px !important;
}

.products-section { padding: 60px 0 72px; }
.products-section h2 {
    margin-bottom: 8px;
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
}
.products-section .section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: .95rem;
    margin-bottom: 40px;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    transition: box-shadow .25s ease, transform .25s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(99,102,241,.13);
}
.product-card-image,
.product-card > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.product-card-image { position: relative; background: #f2f4f7; aspect-ratio: 4/3; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card-overlay { display: none; }
.btn-quick-view { display: none; }

/* 产品徽章行 */
.product-card-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.product-badge {
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.product-badge-flavors {
    background: #eef2ff;
    color: var(--accent);
}
.product-badge-ship {
    background: #ecfdf5;
    color: #059669;
}
.product-badge-min {
    background: #fff7ed;
    color: #c2410c;
}

.product-card-content {
    padding: 20px 20px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-card-content h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.35;
}
.product-card-tagline {
    color: var(--text-muted);
    font-size: .88rem;
    line-height: 1.55;
    margin-bottom: 14px;
    flex: 1;
}
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.product-card-footer .price {
    color: var(--accent);
    font-weight: 800;
    font-size: 1.25rem;
}
.product-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}
.product-card-actions .btn-add-cart {
    width: 100%;
    text-align: center;
}
.product-card-actions .btn-view {
    width: 100%;
    text-align: center;
    display: block;
}

.video-section {
    padding: 10px 0 56px;
}
.video-section h2 {
    margin-bottom: 18px;
    font-size: 1.5rem;
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.video-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    overflow: hidden;
}
.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}
.video-card-body {
    padding: 12px;
}
.video-card-body h3 {
    font-size: .96rem;
    margin-bottom: 4px;
}
.video-card-body p {
    color: var(--text-muted);
    font-size: .84rem;
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(2, 6, 23, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.video-modal.hidden {
    display: none;
}
.video-modal-content {
    width: min(980px, 100%);
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.video-close {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 2;
    border: none;
    background: rgba(15,23,42,.7);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    font-size: 18px;
    cursor: pointer;
}
.video-modal-content video {
    width: 100%;
    max-height: 80vh;
    display: block;
    background: #000;
}

.btn-primary,
.btn-add-cart {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .86rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary:hover,
.btn-add-cart:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-add-cart.added { background: #157347; border-color: #157347; }
.btn-secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .86rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.btn-secondary:hover { background: #f8fafc; }
.btn-full { width: 100%; }
.btn-add-large { padding: 12px 20px; font-size: .95rem; }

.product-page { padding: 28px 0 48px; }
.product-detail { background: transparent; }
.breadcrumb { color: var(--text-muted); font-size: .88rem; margin-bottom: 18px; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.product-detail-main {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 26px;
}
/* 防止 grid 子列被 24 张缩略图撑开（CSS Grid min-width:auto 陷阱） */
.product-gallery,
.product-info {
    min-width: 0;
}
.product-gallery-main {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 460px;
}
.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
/* ── 画廊缩略图条 ── */
.product-gallery-strip {
    position: relative;
    margin-top: 10px;
    width: 100%;
    overflow: hidden;
}
.product-gallery-thumbs {
    display: flex;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 2px 6px;
    scrollbar-width: none;
}
.product-gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
    width: 68px;
    height: 68px;
    border: 2px solid var(--border);
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .18s, transform .18s, box-shadow .18s;
    background: var(--surface);
}
.gallery-thumb:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(201,150,58,.25); }
.gallery-thumb.active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,150,58,.2); transform: translateY(-2px); }
/* 左右箭头 */
.gallery-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: .85rem;
    color: var(--text);
    z-index: 2;
    transition: background .15s, border-color .15s, opacity .2s;
    opacity: .85;
    padding: 0;
}
.gallery-arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); opacity: 1; }
.gallery-arrow.arrow-prev { left: -14px; }
.gallery-arrow.arrow-next { right: -14px; }
.gallery-arrow.hidden { opacity: 0; pointer-events: none; }
.product-info {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    min-width: 0;
    overflow: hidden;
}
.product-info h1 { font-size: 1.7rem; margin-bottom: 10px; }
.product-info .price { color: var(--accent); font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; display: block; }
.product-info .description { color: var(--text-muted); margin-bottom: 6px; font-size: .9rem; line-height: 1.65; }
.desc-collapsed { max-height: 72px; overflow: hidden; position: relative; }
.desc-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 28px;
    background: linear-gradient(transparent, var(--surface));
    pointer-events: none;
}
.desc-toggle {
    background: none;
    border: none;
    color: var(--accent);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-bottom: 12px;
    font-family: inherit;
}
.desc-toggle:hover { text-decoration: underline; }

/* 产品详情页信任徽章条 */
.pd-trust-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 0;
    margin-top: 14px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(201,150,58,.07), rgba(201,150,58,.04));
    border: 1px solid rgba(201,150,58,.2);
    border-radius: 10px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
}
.pd-trust-bar span { white-space: nowrap; padding: 0 6px; }
.pd-trust-sep { color: rgba(201,150,58,.4) !important; padding: 0 2px !important; }

/* 产品详情页信任徽章条 */
.pd-trust-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 4px;
    margin-top: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f9f5ee, #fdf8f0);
    border: 1px solid rgba(201,150,58,.25);
    border-radius: 10px;
    font-size: .76rem;
    font-weight: 600;
    color: #6b4e1a;
}
.pd-trust-sep {
    color: rgba(201,150,58,.4);
    font-size: .7rem;
}
.quantity-selector { margin-bottom: 16px; }
.quantity-selector label { display: block; font-size: .9rem; margin-bottom: 6px; color: var(--text-muted); }
.quantity-selector input {
    width: 90px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    font-size: 1rem;
}

.related-products { margin-top: 34px; }
.related-products h2 { font-size: 1.2rem; margin-bottom: 14px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.related-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    overflow: hidden;
}
.related-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.related-card h3 { font-size: .9rem; padding: 10px 10px 4px; }
.related-card .price { color: var(--accent); padding: 0 10px 10px; font-weight: 700; font-size: .9rem; }

.cart-page,
.checkout-page,
.page-content { padding: 40px 0 48px; }
.cart-page h1,
.checkout-page h1,
.page-content h1 { margin-bottom: 20px; font-size: 1.8rem; }

.cart-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}
.cart-item img { width: 76px; height: 76px; border-radius: 8px; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-info .price { color: var(--accent); font-weight: 700; }
.cart-item-qty input {
    width: 56px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
}
.cart-item-remove { color: #b42318; cursor: pointer; font-size: .85rem; }

.cart-footer,
.order-summary,
.checkout-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.cart-footer {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.cart-footer-actions { display: flex; gap: 8px; }
.cart-total { font-size: 1.15rem; }
.cart-empty {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    text-align: center;
    padding: 28px;
    color: var(--text-muted);
}
.cart-empty a { color: var(--accent); text-decoration: none; }

.checkout-content { display: grid; grid-template-columns: 1fr 380px; gap: 16px; }
.checkout-form { padding: 18px; }
.checkout-form h2, .order-summary h2 { margin-bottom: 12px; font-size: 1.2rem; }
.checkout-form label {
    display: block;
    color: var(--text-muted);
    font-size: .86rem;
    margin: 10px 0 5px;
}
.checkout-form input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: .92rem;
}
.checkout-form select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: .92rem;
    background: #fff;
}
.order-summary { padding: 18px; align-self: start; }
.order-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eef1f5;
    padding: 8px 0;
    font-size: .9rem;
}
.order-total { margin: 14px 0; font-size: 1.05rem; }

.usdt-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.usdt-modal.hidden { display: none; }
.usdt-modal-content {
    width: 92%;
    max-width: 460px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}
.usdt-modal-content h2 { margin-bottom: 6px; }
.usdt-amount { color: var(--accent); font-weight: 700; font-size: 1.1rem; margin: 14px 0; }
.usdt-address input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px;
    margin: 8px 0;
}
.usdt-qr { margin: 12px 0; text-align: center; }
.usdt-qr img { width: 180px; height: 180px; border: 1px solid var(--border); border-radius: 8px; }
.usdt-note { font-size: .84rem; color: var(--text-muted); }
.usdt-warning { font-size: .8rem; color: #b42318; margin: 10px 0 14px; }

/* 支付弹窗底部双按钮 */
.modal-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}
.modal-btn-confirm {
    flex: 1.4;
    background: linear-gradient(135deg, #1a3a5c, #0f2540);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px 16px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    font-family: inherit;
}
.modal-btn-confirm:hover { opacity: .88; transform: translateY(-1px); }
.modal-btn-later {
    flex: 1;
    background: transparent;
    color: #667085;
    border: 1.5px solid #d0d5dd;
    border-radius: 10px;
    padding: 13px 16px;
    font-size: .93rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s, color .18s, border-color .18s, transform .15s;
    font-family: inherit;
    white-space: nowrap;
}
.modal-btn-later:hover {
    background: #f9fafb;
    border-color: #98a2b3;
    color: #344054;
    transform: translateY(-1px);
}
.modal-later-hint {
    text-align: center;
    font-size: .75rem;
    color: #98a2b3;
    margin-top: 10px;
    margin-bottom: 0;
}

.footer {
    margin-top: 36px;
    border-top: 1px solid var(--border);
    background: var(--surface-soft);
    padding: 28px 0 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 16px;
}
.footer-col h4 { font-size: .92rem; margin-bottom: 8px; }
.footer-col p,
.footer-col a {
    color: var(--text-muted);
    font-size: .84rem;
    text-decoration: none;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 10px;
    text-align: center;
    font-size: .8rem;
    color: var(--text-muted);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translate(-50%, 120%);
    background: #111827;
    color: #fff;
    border-radius: 999px;
    font-size: .86rem;
    padding: 9px 14px;
    z-index: 9999;
    opacity: 0;
    transition: all .25s ease;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.page-content .lead { color: var(--text-muted); margin-bottom: 16px; }
.content-block { margin-bottom: 20px; }
.content-block h2 { font-size: 1rem; margin-bottom: 6px; }
.content-block ul { margin-left: 18px; }
.content-block li { margin-bottom: 6px; }

.age-gate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.86);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.age-gate-overlay.hidden { display: none; }
.age-gate-modal {
    width: 92%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    text-align: center;
}
.age-gate-modal h1 { font-size: 1.5rem; margin-bottom: 6px; }
.age-gate-modal p { color: var(--text-muted); font-size: .9rem; margin-bottom: 8px; }
.age-warning { margin-top: 2px !important; }
.age-gate-buttons { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }

.hidden { display: none !important; }

/* ─── 口味选择器 ──────────────────────────────────────────────────────────── */
.flavor-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.flavor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
}
.flavor-label {
    font-weight: 700;
    font-size: .95rem;
    color: var(--text);
}
.flavor-required-hint {
    font-size: .78rem;
    color: #b42318;
    display: none;
}
.flavor-required-hint.show { display: inline; }
.flavor-selected-badge {
    font-size: .8rem;
    font-weight: 600;
    color: var(--accent);
    background: #eef2ff;
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}
.flavor-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}
.flavor-track::-webkit-scrollbar { width: 4px; }
.flavor-track::-webkit-scrollbar-track { background: transparent; }
.flavor-track::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* 每个口味的外层容器 */
.flavor-chip-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* 每个口味的 +/- 数量控件 */
.flavor-chip-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--surface);
    border: 1.5px solid var(--accent);
    border-radius: 999px;
    padding: 2px 4px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--accent);
}
.flavor-chip-qty.hidden { display: none; }

.fq-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    padding: 0 4px;
    border-radius: 50%;
    transition: background .12s;
}
.fq-btn:hover { background: #eef2ff; }
.fq-val {
    min-width: 18px;
    text-align: center;
}

/* 已选口味摘要栏 */
.flavor-summary { margin-top: 10px; }
.flavor-summary-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.flavor-summary-tag {
    background: #eef2ff;
    color: var(--accent);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: .78rem;
    font-weight: 600;
}
.flavor-summary-total {
    font-size: .8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 4px;
}

.flavor-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 5px 5px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
    width: 100%;
    transition: border-color .15s, background .15s, transform .12s;
    font-size: .68rem;
    font-weight: 500;
    color: var(--text);
    text-align: center;
    line-height: 1.2;
    position: relative;
}
.flavor-chip:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}
.flavor-chip.selected {
    border-color: var(--accent);
    background: #eef2ff;
}
.flavor-chip.selected::after {
    content: '✓';
    position: absolute;
    top: 3px;
    right: 5px;
    font-size: .65rem;
    color: var(--accent);
    font-weight: 700;
}
.flavor-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
    border: 1.5px solid rgba(0,0,0,.08);
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.flavor-chip-img {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,.06);
}
.flavor-chip-name {
    word-break: break-word;
    hyphens: auto;
}

/* 购物车口味标签 */
.cart-flavor-tag {
    display: inline-block;
    font-size: .75rem;
    color: var(--accent);
    background: #eef2ff;
    border-radius: 999px;
    padding: 1px 8px;
    margin-top: 3px;
    font-weight: 500;
}

@media (max-width: 900px) {
    .product-detail-main { grid-template-columns: 1fr; }
    .product-gallery-main { max-height: 340px; aspect-ratio: 4/3; }
    .checkout-content { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .flavor-track { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 700px) {
    .container { padding: 0 14px; }
    .hero { padding: 56px 0; min-height: 420px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: .95rem; }
    .hero-cta-row { flex-direction: column; align-items: center; gap: 10px; }
    .btn-hero-primary, .btn-hero-secondary { width: 220px; text-align: center; }
    .product-grid { grid-template-columns: 1fr; gap: 20px; }
    .products-section { padding: 40px 0 48px; }
    .product-card-image { aspect-ratio: 16/9; }
    .product-card-content { padding: 16px; }
    .header .container {
        display: block;
        position: relative;
        min-height: auto;
        padding: 10px 0;
    }
    .logo {
        display: inline-block;
        margin-top: 2px;
    }
    .nav {
        margin-top: 12px;
        padding-right: 80px;
        display: flex;
        gap: 10px;
        overflow-x: auto;
        white-space: nowrap;
        font-size: .82rem;
    }
    .nav .cart-link {
        position: absolute;
        top: 8px;
        right: 0;
        padding: 7px 10px;
    }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .products-section h2 { font-size: 1.5rem; }
    .products-section .section-sub { font-size: .88rem; margin-bottom: 24px; }
    .video-grid { grid-template-columns: 1fr; }
    .cart-item {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .cart-item-info {
        width: calc(100% - 92px);
    }
    .cart-item-qty,
    .cart-item-subtotal,
    .cart-item-remove {
        margin-left: 92px;
    }
    .usdt-modal-content {
        padding: 16px;
        max-height: 90vh;
        overflow-y: auto;
    }
}
