/* USA Vape - Minimal Business Style */
:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #fafbfd;
    --card-bg: #ffffff;
    --primary: #ffffff;
    --primary-light: #ffffff;
    --text: #0f172a;
    --text-muted: #667085;
    --border: #e4e7ec;
    --accent: #1f3b63;
    --accent-hover: #193250;
    --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.3rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.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;
}

.hero {
    background: linear-gradient(180deg, #f8faff 0%, #f5f7fb 100%);
    border-bottom: 1px solid var(--border);
    padding: 64px 0;
    text-align: center;
}
.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}
.hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}
.trust-badges {
    margin-top: 22px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.trust-badges span {
    padding: 6px 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.products-section { padding: 48px 0 56px; }
.products-section h2 {
    margin-bottom: 24px;
    font-size: 1.7rem;
    font-weight: 700;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.product-card-image,
.product-card > img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.product-card-image { position: relative; background: #f2f4f7; }
.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-content { padding: 16px; }
.product-card-content h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    line-height: 1.35;
}
.product-card-content p {
    color: var(--text-muted);
    font-size: .86rem;
    min-height: 38px;
    margin-bottom: 14px;
}
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.product-card-footer .price {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.05rem;
}

.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;
}
.product-gallery-main {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
}
.product-gallery-main img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.product-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery-thumb {
    width: 60px;
    height: 60px;
    border: 1px solid var(--border);
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
}
.gallery-thumb.active { border-color: var(--accent); }
.product-info {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.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: 16px; }
.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; }

.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: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 每个口味的外层容器 */
.flavor-chip-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

/* 每个口味的 +/- 数量控件 */
.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: 5px;
    padding: 8px 8px 7px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
    min-width: 76px;
    max-width: 88px;
    transition: border-color .15s, background .15s, transform .12s;
    font-size: .75rem;
    font-weight: 500;
    color: var(--text);
    text-align: center;
    line-height: 1.25;
    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: 54px;
    height: 54px;
    border-radius: 8px;
    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; }
    .checkout-content { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .container { padding: 0 14px; }
    .hero { padding: 44px 0; }
    .hero h1 { font-size: 1.9rem; }
    .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: 12px; }
    .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;
    }
}
