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

:root {
    --blue: #7c3aed;
    --blue-light: #faf7ff;
    --green: #10b981;
    --orange: #f59e0b;
    --purple: #a855f7;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0, 0, 0, .08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .10);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-800);
    background: #faf7ff;
}

body {
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

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

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    height: 60px;
    display: flex;
    align-items: center;
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
}

.navbar-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar-inner > * {
    min-width: 0;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-900);
    font-size: 16px;
    white-space: nowrap;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 24px color-mix(in srgb, var(--blue) 18%, transparent);
}

.navbar-nav {
    display: flex;
    gap: 4px;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.nav-link {
    padding: 6px 16px;
    border-radius: 8px;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 14px;
    transition: all .15s;
}

.nav-link:hover {
    color: var(--blue);
    background: var(--blue-light);
}

.nav-link.active {
    color: var(--blue);
    font-weight: 600;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-shrink: 0;
}

.member-menu {
    position: relative;
    display: none;
}

.member-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}

.member-trigger:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.member-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 150px;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    padding: 6px;
    display: none;
    z-index: 1200;
}

.member-menu.open .member-dropdown {
    display: block;
}

.member-item {
    width: 100%;
    display: block;
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--gray-700);
    font-size: 13px;
}

.member-item:hover {
    background: var(--blue-light);
    color: var(--blue);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--gray-100);
    border-radius: 8px;
    padding: 7px 12px;
    min-width: 0;
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    color: var(--gray-700);
    font-size: 13px;
    width: 130px;
    min-width: 0;
}

.icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--gray-500);
    transition: all .15s;
    position: relative;
}

.icon-btn:hover {
    background: var(--gray-100);
}

.cart-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 14px;
    height: 14px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid var(--gray-100);
    padding: 10px 0;
}

.breadcrumb-bar .container {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-400);
}

.breadcrumb-bar a {
    color: var(--gray-500);
    transition: color .15s;
}

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

.breadcrumb-bar span:last-child {
    color: var(--gray-700);
    font-weight: 500;
}

.sep {
    color: var(--gray-300);
}

/* ===== PRODUCT TOP ===== */
.product-top {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 36px;
    padding-top: 28px;
    padding-bottom: 28px;
    align-items: stretch;
}

.product-top,
.product-info,
.option-group,
.tabs-section,
.rich-section,
.faq-item {
    min-width: 0;
}

/* Gallery */
.product-gallery {
    height: 100%;
}

.main-image-wrap {
    width: 100%;
    aspect-ratio: auto;
    min-height: 420px;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    background: #0d9488;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.main-image:hover {
    transform: scale(1.02);
}

.thumb-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    border: 2px solid var(--gray-200);
    object-fit: cover;
    cursor: pointer;
    transition: border-color .15s;
    flex-shrink: 0;
}

.thumb:hover,
.thumb.active {
    border-color: var(--blue);
}

.placeholder-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    border: 2px solid var(--gray-200);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}

.placeholder-thumb:hover {
    border-color: var(--blue);
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
    justify-content: space-between;
}

.product-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}

.product-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.product-meta-label {
    font-size: 13px;
    color: var(--gray-500);
    white-space: nowrap;
}

.product-meta-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tag-mini {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--gray-200);
    font-size: 11px;
    color: var(--gray-600);
    background: #fff;
}

.product-title {
    font-size: 22px;
    font-weight: 800;
    color: #1f1633;
    line-height: 1.3;
}

.title-sub {
    font-size: 16px;
    font-weight: 600;
    color: #7b6d96;
}

.price-block {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-now {
    font-size: 32px;
    font-weight: 800;
    color: #dc2626;
}

.price-old {
    font-size: 15px;
    color: var(--gray-400);
    text-decoration: line-through;
}

.badge-year {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
}

.sold-count {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--gray-500);
}

/* Options */
.option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}

.option-hint {
    font-weight: 400;
    color: var(--gray-400);
}

.option-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    padding: 7px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    font-size: 13px;
    color: var(--gray-600);
    cursor: pointer;
    transition: all .15s;
    user-select: none;
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
}

.pill:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.pill.active {
    border-color: var(--blue);
    background: var(--blue-light);
    color: var(--blue);
    font-weight: 600;
}

.pill-static {
    cursor: default;
}

.pill-static:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.email-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--gray-200);
    border-radius: 9px;
    padding: 9px 14px;
    transition: border-color .15s;
    background: #fff;
}

.email-input-wrap:focus-within {
    border-color: var(--blue);
}

.email-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 13.5px;
    color: var(--gray-700);
    background: none;
}

@supports (-webkit-touch-callout: none) {
    .email-input-wrap input,
    .search-box input {
        font-size: 16px;
    }
}

.quantity-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.qty-ctrl {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--gray-200);
    border-radius: 9px;
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--gray-500);
    transition: all .15s;
}

.qty-btn:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.qty-val {
    width: 44px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    color: var(--gray-900);
    border-left: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
    line-height: 36px;
}

.qty-note {
    font-size: 12px;
    color: var(--gray-400);
}

/* CTA */
.cta-row {
    display: flex;
    gap: 12px;
    min-width: 0;
}

.product-risk-inline {
    margin-top: 2px;
    padding: 14px 16px;
    border: 1px solid rgba(244, 114, 182, 0.24);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 241, 242, 0.96), rgba(255, 247, 237, 0.96));
}

.product-risk-inline h3 {
    font-size: 14px;
    font-weight: 700;
    color: #be123c;
}

.product-risk-inline p {
    margin-top: 6px;
    color: var(--gray-600);
    font-size: 13px;
    line-height: 1.7;
}

.cta-row > * {
    min-width: 0;
}

.btn-cart {
    flex: 1;
    padding: 13px;
    border: 2px solid var(--blue);
    color: var(--blue);
    border-radius: 11px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all .15s;
}

.btn-cart:hover {
    background: var(--blue-light);
}

.btn-buy {
    flex: 1.4;
    padding: 13px;
    background: var(--blue);
    color: #fff;
    border-radius: 11px;
    font-weight: 700;
    font-size: 14px;
    transition: all .2s;
}

.btn-buy:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, .35);
}

.btn-buy:active {
    transform: translateY(0);
}

/* Trust */
.trust-row {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--gray-100);
    margin-top: 4px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: var(--gray-500);
}

/* ===== TABS ===== */
.tabs-section {
    padding-bottom: 60px;
}

.tabs-header {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-bottom: 2px solid var(--gray-200);
}

.tab-btn {
    padding: 14px 28px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--gray-500);
    border-bottom: 2.5px solid transparent;
    margin-bottom: -2px;
    transition: all .15s;
}

.tab-btn:hover {
    color: var(--blue);
}

.tab-btn.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

.tab-content {
    display: none;
    padding-top: 28px;
}

.tab-content.active {
    display: block;
    animation: fadeIn .25s ease;
}

/* ===== RICH TEXT SECTIONS ===== */
.rich-section {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 16px;
}

.rich-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.rich-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rich-icon.blue {
    background: var(--blue);
}

.rich-icon.purple {
    background: var(--purple);
}

.rich-icon.orange {
    background: var(--orange);
}

.rich-icon.green {
    background: var(--green);
}

.rich-para {
    font-size: 14px;
    line-height: 1.75;
    color: var(--gray-600);
}

#product-rich-description {
    color: var(--gray-700);
    font-size: 14px;
    line-height: 1.75;
}

#product-rich-description > :first-child {
    margin-top: 0;
}

#product-rich-description > :last-child {
    margin-bottom: 0;
}

#product-rich-description h1,
#product-rich-description h2,
#product-rich-description h3,
#product-rich-description h4,
#product-rich-description h5,
#product-rich-description h6 {
    color: var(--gray-900);
    font-weight: 800;
    line-height: 1.4;
    margin: 1.1em 0 0.45em;
}

#product-rich-description h1 {
    font-size: 24px;
}

#product-rich-description h2 {
    font-size: 20px;
}

#product-rich-description h3 {
    font-size: 17px;
}

#product-rich-description h4,
#product-rich-description h5,
#product-rich-description h6 {
    font-size: 15px;
}

#product-rich-description p {
    margin: 0 0 0.7em;
    color: var(--gray-600);
}

#product-rich-description strong {
    color: var(--gray-900);
    font-weight: 700;
}

#product-rich-description ol,
#product-rich-description ul {
    margin: 0.75em 0 0.95em;
    padding-left: 1.5em;
}

#product-rich-description ol {
    list-style: decimal;
}

#product-rich-description ul {
    list-style: disc;
}

#product-rich-description li {
    margin: 0;
    line-height: 1.75;
    color: var(--gray-600);
}

#product-rich-description li + li {
    margin-top: 0.35em;
}

#product-rich-description ol li::marker,
#product-rich-description ul li::marker {
    color: var(--gray-500);
    font-weight: 600;
}

#product-rich-description a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--gray-700);
}

.feature-item svg {
    flex-shrink: 0;
}

/* Steps */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.step-body strong {
    display: block;
    font-size: 14px;
    color: var(--gray-900);
    margin-bottom: 3px;
}

.step-body p {
    font-size: 13.5px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* FAQ Accordion */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .15s;
}

.faq-item:hover {
    border-color: var(--blue);
}

.faq-q {
    width: 100%;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    text-align: left;
    transition: background .15s;
}

.faq-q:hover {
    background: var(--gray-50);
}

.faq-q.open {
    color: var(--blue);
    background: var(--blue-light);
}

.faq-arrow {
    transition: transform .25s;
    flex-shrink: 0;
}

.faq-q.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s;
    padding: 0 16px;
    font-size: 13.5px;
    color: var(--gray-600);
    line-height: 1.7;
}

.faq-a.open {
    max-height: 300px;
    padding: 12px 16px;
    border-top: 1px solid var(--gray-100);
}

/* Terms */
.terms-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 0;
}

.terms-list li {
    font-size: 13.5px;
    color: var(--gray-600);
    line-height: 1.7;
    padding-left: 20px;
    position: relative;
}

.terms-list li::before {
    content: '•';
    position: absolute;
    left: 6px;
    color: var(--orange);
    font-weight: 700;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    margin-top: 48px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 44px 24px 36px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #fff;
    font-size: 15px;
}

.footer-desc {
    font-size: 13px;
    line-height: 1.65;
    color: var(--gray-500);
}

.footer-col h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 8px;
    transition: color .15s;
    word-break: break-word;
}

.footer-col a:hover {
    color: #fff;
}

.footer-col .link-text {
    display: block;
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 8px;
    word-break: break-word;
}

.social-icons {
    display: flex;
    gap: 8px;
}

.social-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
    display: inline-block;
    position: relative;
    color: var(--gray-400);
    transition: all .15s;
    padding: 0;
    line-height: 0;
}

.social-btn svg {
    position: absolute;
    inset: 0;
    margin: auto;
    display: block;
    width: 18px;
    height: 18px;
}

.social-btn:hover {
    background: var(--blue);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .07);
    padding: 14px 24px;
    text-align: center;
    font-size: 12.5px;
    color: var(--gray-500);
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    top: 60vh;
    left: 50%;
    right: auto;
    bottom: auto;
    background: var(--gray-900);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    max-width: min(88vw, 420px);
    text-align: center;
    transform: translate(-50%, -12px);
    opacity: 0;
    pointer-events: none;
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
    z-index: 999;
}

.toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

@media (max-width: 980px) {
    .navbar-inner {
        gap: 12px;
        padding: 0 14px;
    }

    .product-top {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-top: 16px;
    }

    .product-gallery {
        max-width: 560px;
        width: 100%;
        margin: 0 auto;
        height: auto;
    }

    .main-image-wrap {
        aspect-ratio: 1;
        min-height: 0;
        height: auto;
    }

    .product-info {
        height: auto;
        justify-content: flex-start;
    }

    .tabs-section {
        padding-bottom: 36px;
    }

    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 430px) {
    .container {
        padding: 0 14px;
    }

    .breadcrumb-bar {
        padding: 6px 0;
    }

    .breadcrumb-bar .container {
        gap: 4px;
        font-size: 11px;
        white-space: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .breadcrumb-bar .container::-webkit-scrollbar {
        display: none;
    }

    .navbar {
        height: auto;
        padding: 8px 0;
    }

    .navbar-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 8px;
        row-gap: 8px;
    }

    .navbar-logo {
        width: auto;
        display: flex;
        justify-content: flex-start;
        min-width: 0;
        flex: 1 1 auto;
        font-size: 15px;
    }

    .logo-text {
        min-width: 0;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .navbar-nav {
        grid-row: 2;
        grid-column: 1 / -1;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        gap: 2px;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .navbar-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        font-size: 12px;
        padding: 6px 10px;
        flex: 0 0 auto;
    }

    .navbar-actions {
        display: flex;
        grid-row: 1;
        grid-column: 2;
        justify-self: end;
        margin-left: 0;
        min-width: max-content;
        gap: 6px;
        flex-wrap: nowrap;
    }

    .icon-btn {
        width: 34px;
        height: 34px;
        flex: 0 0 auto;
    }

    .btn-outline,
    .btn-primary {
        padding: 6px 9px;
        font-size: 11.5px;
        line-height: 1.1;
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .member-trigger {
        padding: 6px 9px;
        font-size: 12px;
    }

    .member-dropdown {
        right: auto;
        left: 0;
        min-width: 136px;
    }

    .btn-outline,
    .btn-primary {
        padding: 6px 10px;
        font-size: 12px;
    }

    .product-top {
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 16px;
    }

    .main-image-wrap {
        max-height: 220px;
        min-height: 220px;
        border-radius: 12px;
    }

    .product-info {
        gap: 10px;
    }

    .product-title {
        font-size: 18px;
        line-height: 1.2;
    }

    .title-sub {
        font-size: 13px;
    }

    .price-block {
        gap: 8px;
    }

    .price-now {
        font-size: 24px;
    }

    .product-meta-row {
        flex-wrap: wrap;
        gap: 6px;
    }

    .product-meta-label {
        font-size: 12px;
    }

    .pill {
        padding: 5px 9px;
        font-size: 12px;
        width: 100%;
    }

    .option-group {
        gap: 6px;
    }

    .option-label {
        font-size: 12px;
        line-height: 1.35;
    }

    .email-input-wrap {
        gap: 8px;
        padding: 8px 12px;
    }

    .email-input-wrap input {
        font-size: 13px;
    }

    @supports (-webkit-touch-callout: none) {
        .email-input-wrap input {
            font-size: 16px;
        }
    }

    .quantity-row {
        gap: 10px;
    }

    .qty-btn {
        width: 34px;
        height: 34px;
    }

    .qty-val {
        width: 42px;
        line-height: 34px;
        font-size: 14px;
    }

    .qty-note {
        display: none;
    }

    .cta-row {
        flex-direction: column;
        gap: 10px;
    }

    .btn-cart,
    .btn-buy {
        width: 100%;
    }

    .btn-buy {
        padding: 11px;
        font-size: 13px;
        border-radius: 10px;
    }

    .trust-row {
        gap: 8px;
        padding: 8px 0 0;
        margin-top: 0;
    }

    .tabs-header {
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .tabs-header::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        flex: 0 0 auto;
        padding: 12px 16px;
        font-size: 13px;
    }

    .rich-section {
        padding: 14px;
        border-radius: 12px;
    }

    .rich-section-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        margin-top: 12px;
    }

    .faq-q {
        padding: 12px;
        font-size: 13px;
    }

    .faq-a,
    .terms-list li,
    .step-body p {
        font-size: 12.5px;
    }

    .footer {
        margin-top: 28px;
    }

    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 12px;
        padding: 22px 14px 18px;
        align-items: start;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-logo {
        margin-bottom: 10px;
    }

    .footer-desc {
        font-size: 12px;
        line-height: 1.55;
    }

    .footer-col h4 {
        font-size: 12.5px;
        margin-bottom: 8px;
    }

    .footer-col a,
    .footer-col .link-text {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .social-icons {
        gap: 6px;
    }

    .social-btn {
        width: 32px;
        height: 32px;
    }

    .footer-bottom {
        padding: 10px 14px;
        font-size: 11.5px;
    }

    .toast {
        max-width: calc(100vw - 28px);
        top: 60vh;
    }
}

@media (max-width: 390px) {
    .container {
        padding: 0 10px;
    }

    .breadcrumb-bar {
        padding: 5px 0;
    }

    .navbar-inner {
        gap: 6px;
        padding: 0 10px;
    }

    .navbar-logo {
        font-size: 14px;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
        flex: 0 0 auto;
    }

    .navbar-actions {
        gap: 4px;
        min-width: 0;
    }

    .navbar-actions .btn-outline,
    .navbar-actions .btn-primary {
        padding: 5px 6px;
        font-size: 11px;
        line-height: 1.15;
    }

    .navbar-nav {
        scrollbar-width: none;
        gap: 1px;
    }

    .navbar-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        flex: 0 0 auto;
        font-size: 11.5px;
        padding: 5px 8px;
    }

    .product-top {
        gap: 8px;
        padding-top: 8px;
        padding-bottom: 14px;
    }

    .main-image-wrap {
        min-height: 190px;
        max-height: 190px;
    }

    .product-info {
        gap: 8px;
    }

    .product-title {
        font-size: 17px;
    }

    .thumb,
    .placeholder-thumb {
        width: 62px;
        height: 62px;
    }

    .price-now {
        font-size: 22px;
    }

    .option-group {
        gap: 5px;
    }

    .email-input-wrap {
        padding: 7px 10px;
    }

    .qty-btn {
        width: 32px;
        height: 32px;
    }

    .qty-val {
        width: 40px;
        line-height: 32px;
    }

    .cta-row {
        gap: 8px;
    }

    .btn-buy {
        padding: 10px;
        font-size: 12.5px;
    }

    .trust-row {
        gap: 6px;
        padding-top: 6px;
    }

    .trust-item {
        font-size: 11.5px;
    }
}

@media (max-width: 375px) {
    .navbar-actions {
        gap: 4px;
    }

    .icon-btn {
        width: 32px;
        height: 32px;
    }

    .btn-outline,
    .btn-primary {
        font-size: 11.5px;
        padding: 5px 8px;
    }
}

@media (max-width: 375px) {
    .product-info {
        gap: 7px;
    }

    .product-title {
        font-size: 16px;
    }

    .tab-btn {
        padding: 11px 14px;
    }

    .step-item {
        gap: 10px;
    }

    .step-num {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: #fff;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    z-index: 1200;
    transition: all .2s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: var(--blue);
    color: var(--blue);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
}

.theme-toggle-label {
    font-size: 12px;
    font-weight: 600;
}

/* ===== DARK MODE ===== */
[data-theme='dark'] body {
    background: #0b1220;
    color: #d6deed;
}

[data-theme='dark'] .navbar,
[data-theme='dark'] .breadcrumb-bar,
[data-theme='dark'] .rich-section,
[data-theme='dark'] .faq-item,
[data-theme='dark'] .email-input-wrap,
[data-theme='dark'] .search-box,
[data-theme='dark'] .theme-toggle {
    background: #121b2d;
    border-color: #273248;
}

[data-theme='dark'] .main-image-wrap,
[data-theme='dark'] .thumb,
[data-theme='dark'] .placeholder-thumb,
[data-theme='dark'] .pill,
[data-theme='dark'] .qty-ctrl,
[data-theme='dark'] .tabs-header {
    border-color: #273248;
}

[data-theme='dark'] .product-title,
[data-theme='dark'] .step-body strong,
[data-theme='dark'] .rich-section-title,
[data-theme='dark'] .faq-q,
[data-theme='dark'] .qty-val,
[data-theme='dark'] .navbar-logo {
    color: #f1f5ff;
}

[data-theme='dark'] .title-sub,
[data-theme='dark'] .sold-count,
[data-theme='dark'] .product-meta-label,
[data-theme='dark'] .option-label,
[data-theme='dark'] .option-hint,
[data-theme='dark'] .qty-note,
[data-theme='dark'] .rich-para,
[data-theme='dark'] .step-body p,
[data-theme='dark'] .feature-item,
[data-theme='dark'] .faq-a,
[data-theme='dark'] .terms-list li,
[data-theme='dark'] .footer-desc,
[data-theme='dark'] .footer-col a,
[data-theme='dark'] .footer-col .link-text,
[data-theme='dark'] .footer-bottom,
[data-theme='dark'] .tab-btn,
[data-theme='dark'] .nav-link,
[data-theme='dark'] .search-box input {
    color: #9fb0cb;
}

[data-theme='dark'] .nav-link:hover,
[data-theme='dark'] .nav-link.active,
[data-theme='dark'] .tab-btn.active,
[data-theme='dark'] .faq-q.open,
[data-theme='dark'] .pill.active,
[data-theme='dark'] .pill:hover,
[data-theme='dark'] .thumb:hover,
[data-theme='dark'] .thumb.active,
[data-theme='dark'] .placeholder-thumb:hover,
[data-theme='dark'] .email-input-wrap:focus-within,
[data-theme='dark'] .faq-item:hover {
    border-color: #3b82f6;
    color: #bfdbfe;
    background: #1b2740;
}

[data-theme='dark'] .email-input-wrap input {
    color: #d6deed;
}

[data-theme='dark'] .tag-mini {
    background: rgba(18, 28, 46, .92);
    border-color: rgba(94, 130, 187, .30);
    color: #d6deed;
}

[data-theme='dark'] .qty-btn:hover,
[data-theme='dark'] .faq-q:hover {
    background: #1b2740;
}

[data-theme='dark'] .footer {
    background: #060b16;
}

[data-theme='dark'] .social-btn {
    background: rgba(148, 163, 184, .12);
}

[data-theme='dark'] .member-trigger,
[data-theme='dark'] .member-dropdown {
    background: rgba(17, 24, 39, 0.92);
    border-color: rgba(75, 85, 99, 0.65);
    color: #e5e7eb;
}

[data-theme='dark'] .member-item {
    color: #e5e7eb;
}

[data-theme='dark'] .member-item:hover {
    background: rgba(37, 99, 235, 0.18);
    color: #bfdbfe;
}

@media (max-width: 640px) {
    .theme-toggle {
        right: 14px;
        bottom: 14px;
        padding: 8px 10px;
    }

    .theme-toggle-label {
        font-size: 11px;
    }
}

/* ===== DARK MODE VISUAL DIRECTION ===== */
[data-theme='dark'] body {
    background:
        radial-gradient(circle at 8% -20%, rgba(37, 99, 235, .20), transparent 38%),
        radial-gradient(circle at 92% 2%, rgba(16, 185, 129, .08), transparent 32%),
        linear-gradient(180deg, #09101d 0%, #0b1322 44%, #0a1220 100%);
}

[data-theme='dark'] .navbar {
    background: rgba(10, 18, 33, .82);
    border-bottom-color: rgba(94, 130, 187, .26);
    backdrop-filter: blur(10px);
}

[data-theme='dark'] .breadcrumb-bar,
[data-theme='dark'] .rich-section,
[data-theme='dark'] .faq-item,
[data-theme='dark'] .email-input-wrap,
[data-theme='dark'] .search-box,
[data-theme='dark'] .theme-toggle {
    background: linear-gradient(180deg, rgba(18, 28, 46, .92), rgba(16, 25, 41, .92));
    border-color: rgba(94, 130, 187, .30);
}

[data-theme='dark'] .theme-toggle {
    box-shadow: 0 14px 36px rgba(4, 9, 18, .50);
}

[data-theme='dark'] .faq-item:hover,
[data-theme='dark'] .email-input-wrap:focus-within,
[data-theme='dark'] .pill.active,
[data-theme='dark'] .pill:hover,
[data-theme='dark'] .thumb.active,
[data-theme='dark'] .thumb:hover,
[data-theme='dark'] .placeholder-thumb:hover {
    border-color: rgba(89, 155, 255, .52);
}

[data-theme='dark'] .toast {
    background: #0f1d33;
    border: 1px solid rgba(94, 130, 187, .38);
}

.toast {
    top: 60vh;
}

@media (max-width: 640px) {
    .toast {
        top: 60vh;
    }
}

.pay-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
}

.pay-confirm-modal.open {
    display: block;
}

.pay-confirm-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

.pay-confirm-card {
    position: relative;
    width: min(92vw, 420px);
    margin: 16vh auto 0;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    padding: 22px 22px 18px;
}

.pay-confirm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.pay-confirm-head h3 {
    font-size: 18px;
    color: var(--gray-900);
}

.pay-confirm-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: var(--gray-500);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pay-confirm-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.pay-confirm-message {
    color: var(--gray-600);
    line-height: 1.7;
}

.pay-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.pay-confirm-primary-btn,
.pay-confirm-secondary-btn {
    min-width: 132px;
    height: 44px;
    border-radius: 12px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 700;
    transition: transform .15s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.pay-confirm-primary-btn {
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 12px 24px rgba(37, 99, 235, .22);
}

.pay-confirm-primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(37, 99, 235, .28);
}

.pay-confirm-secondary-btn {
    color: #1d4ed8;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid rgba(59, 130, 246, .28);
    box-shadow: 0 10px 20px rgba(148, 163, 184, .14);
}

.pay-confirm-secondary-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
    box-shadow: 0 14px 24px rgba(148, 163, 184, .18);
}

.pay-confirm-primary-btn:active,
.pay-confirm-secondary-btn:active {
    transform: translateY(0);
}

[data-theme='dark'] .pay-confirm-card {
    background: linear-gradient(180deg, rgba(18, 28, 46, .98), rgba(16, 25, 41, .98));
    border: 1px solid rgba(94, 130, 187, .30);
}

[data-theme='dark'] .pay-confirm-head h3,
[data-theme='dark'] .pay-confirm-close {
    color: #d6deed;
}

[data-theme='dark'] .pay-confirm-message {
    color: #9fb0cb;
}

[data-theme='dark'] .pay-confirm-close:hover {
    background: #1b2740;
    color: #bfdbfe;
}

[data-theme='dark'] .pay-confirm-primary-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 16px 28px rgba(37, 99, 235, .30);
}

[data-theme='dark'] .pay-confirm-secondary-btn {
    color: #bfdbfe;
    background: linear-gradient(180deg, rgba(29, 78, 216, .28), rgba(30, 64, 175, .42));
    border-color: rgba(96, 165, 250, .26);
    box-shadow: 0 14px 24px rgba(4, 9, 18, .30);
}

@media (max-width: 640px) {
    .pay-confirm-card {
        margin-top: 22vh;
        padding: 18px 16px 16px;
        border-radius: 16px;
    }

    .pay-confirm-actions {
        flex-direction: column-reverse;
    }

    .pay-confirm-actions .pay-confirm-secondary-btn,
    .pay-confirm-actions .pay-confirm-primary-btn {
        width: 100%;
        justify-content: center;
    }
}

.pay-sheet-modal {
    position: fixed;
    inset: 0;
    z-index: 1210;
    display: none;
}

.pay-sheet-modal.open {
    display: block;
}

.pay-sheet-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
}

.pay-sheet-card {
    position: relative;
    width: min(92vw, 430px);
    margin: 8vh auto 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(191, 219, 254, .9);
    border-radius: 24px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, .24);
    padding: 22px;
    text-align: center;
}

.pay-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    text-align: left;
}

.pay-sheet-kicker {
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pay-sheet-head h3 {
    margin-top: 4px;
    font-size: 22px;
    line-height: 1.3;
    color: var(--gray-900);
}

.pay-sheet-close {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: var(--gray-500);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pay-sheet-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.pay-sheet-order {
    margin-top: 10px;
    color: var(--gray-500);
    font-size: 13px;
}

.pay-sheet-qr-wrap {
    margin: 18px auto 0;
    width: 240px;
    height: 240px;
    border-radius: 24px;
    padding: 14px;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid rgba(147, 197, 253, .9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.pay-sheet-qr-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    background: #fff;
}

.pay-sheet-open-link {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 15px;
    font-weight: 700;
}

.pay-sheet-open-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

[data-theme='dark'] .pay-sheet-card {
    background: linear-gradient(180deg, rgba(18, 28, 46, .98), rgba(16, 25, 41, .98));
    border-color: rgba(94, 130, 187, .30);
}

[data-theme='dark'] .pay-sheet-head h3 {
    color: #f1f5ff;
}

[data-theme='dark'] .pay-sheet-order {
    color: #9fb0cb;
}

[data-theme='dark'] .pay-sheet-close {
    color: #d6deed;
}

[data-theme='dark'] .pay-sheet-close:hover {
    background: #1b2740;
    color: #bfdbfe;
}

[data-theme='dark'] .pay-sheet-qr-wrap {
    background: linear-gradient(180deg, rgba(29, 78, 216, .22), rgba(30, 64, 175, .38));
    border-color: rgba(89, 155, 255, .52);
}

@media (max-width: 640px) {
    .pay-sheet-card {
        margin-top: 10vh;
        padding: 18px 16px 20px;
        border-radius: 18px;
    }

    .pay-sheet-head h3 {
        font-size: 18px;
    }

    .pay-sheet-qr-wrap {
        width: 220px;
        height: 220px;
        padding: 12px;
    }
}
