/* ==========================================================================
   VIBEROOM - UNIVERSAL PRODUCT PAGE STYLESHEET (product.css)
   ========================================================================== */

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

:root {
    --gold: #f3e5ab;
    --gold-dark: #c9b96e;
    --gold-glow: rgba(243, 229, 171, 0.18);
    --bg: #0a0a0f;
    --bg2: #12121a;
    --bg3: #1a1a26;
    --card: #16161f;
    --card2: #1e1e2e;
    --border: rgba(243, 229, 171, 0.15);
    --border2: rgba(255, 255, 255, 0.06);
    --text: #e8e8f0;
    --muted: #8888aa;
    --radius: 16px;
    --radius-sm: 10px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    transition: background 0.35s ease, color 0.35s ease;
    -webkit-font-smoothing: antialiased;
}

body.light {
    --bg: #f5f5f0;
    --bg2: #ebebeb;
    --bg3: #e0dfd8;
    --card: #ffffff;
    --card2: #f8f8f5;
    --border: rgba(180, 160, 80, 0.25);
    --border2: rgba(0, 0, 0, 0.07);
    --text: #1a1a22;
    --muted: #666677;
    --gold: #b8972a;
    --gold-dark: #8a6d1a;
    --gold-glow: rgba(180, 150, 30, 0.1);
}

/* ── TOP NAV ── */
.product-nav {
    position: sticky;
    top: 0;
    z-index: 500;
    background: rgba(10, 10, 15, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border2);
    padding: 0 16px;
    transition: background 0.35s;
}

body.light .product-nav {
    background: rgba(245, 245, 240, 0.88);
}

.product-nav-inner {
    max-width: 680px;
    margin: 0 auto;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.nav-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    background: var(--bg3);
    border: 1px solid var(--border2);
    transition: all 0.2s;
}

.nav-back-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.nav-logo-text {
    font-size: 18px;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 30%, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light .nav-logo-text {
    background: linear-gradient(135deg, #1a1a2e 30%, var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle-btn, .theme-btn-round {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: transform 0.2s, background 0.2s;
    color: var(--text);
}

.theme-toggle-btn:hover, .theme-btn-round:hover {
    transform: scale(1.08);
}

.nav-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 14px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
}

.nav-cart-badge {
    background: var(--gold);
    color: #000;
    font-size: 11px;
    font-weight: 900;
    border-radius: 100px;
    padding: 1px 7px;
    display: none;
}

.nav-cart-badge.show {
    display: inline-block;
}

/* ── LAYOUT & CONTAINER ── */
.container, .page-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px 16px 80px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--gold);
}

.breadcrumbs span {
    color: var(--gold);
    font-weight: 600;
}

/* ── BADGES ── */
.top-badges, .stock-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.badge, .badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.02em;
}

.badge-stock, .badge-green {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-out {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.badge-hit, .badge-gold {
    background: rgba(243, 229, 171, 0.15);
    color: var(--gold);
    border: 1px solid var(--border);
}

/* ── TITLES ── */
h1, .prod-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 8px;
}

.sub {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 18px;
}

/* ── GALLERY ── */
.gallery, .gallery-wrap {
    margin-bottom: 24px;
}

.main-photo-wrap, .main-photo-box {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border2);
    cursor: zoom-in;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-photo-wrap img, .main-photo-box img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s;
}

.main-photo-wrap:hover img, .main-photo-box:hover img {
    transform: scale(1.02);
}

.photo-zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 100px;
    pointer-events: none;
}

.thumb-strip, .gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.thumb, .thumb-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    border: 2px solid var(--border2);
    object-fit: cover;
    cursor: pointer;
    flex-shrink: 0;
    background: var(--card);
    transition: border-color 0.2s, transform 0.2s;
}

.thumb.active, .thumb-img.active, .thumb:hover, .thumb-img:hover {
    border-color: var(--gold);
    transform: scale(1.04);
}

/* ── PRICE BOX ── */
.price-box, .price-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.price-row, .price-top-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.price, .price-cur {
    font-size: 30px;
    font-weight: 900;
    color: var(--gold);
}

.price-old {
    font-size: 18px;
    color: var(--muted);
    text-decoration: line-through;
}

.discount-tag, .price-discount-tag {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
}

body.light .discount-tag, body.light .price-discount-tag {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

.qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.qty-label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn-box {
    width: 34px;
    height: 34px;
    border: none;
    background: none;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.qty-btn-box:hover {
    background: var(--border2);
}

.qty-val-box {
    min-width: 36px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

/* ── ACTION BUTTONS ── */
.action-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .action-btns {
        grid-template-columns: 1fr;
    }
}

.btn-buy-now, .btn-order-main {
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px var(--gold-glow);
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-buy-now:hover, .btn-order-main:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--gold-glow);
}

.btn-add-cart {
    padding: 14px 20px;
    background: var(--bg3);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    color: var(--gold);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-add-cart:hover {
    background: var(--border);
    color: #fff;
}

.btn-out-stock, .card-out-btn {
    width: 100%;
    grid-column: 1 / -1;
    padding: 16px;
    background: var(--bg3);
    border: 1.5px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: #fca5a5;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ── SOCIAL PROOF & TRUST CHIPS ── */
.social-proof {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.sp-box {
    background: var(--card);
    border: 1px solid var(--border2);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.sp-num {
    font-size: 20px;
    font-weight: 900;
    color: var(--gold);
}

.sp-label {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.trust-row, .trust-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.trust-chip, .trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    background: var(--bg3);
    border-radius: 8px;
    padding: 6px 12px;
    border: 1px solid var(--border2);
}

/* ── SECTIONS & SPECS ── */
.section-box, .section-card, .section-block {
    background: var(--card);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.section-box-title, .section-title, .section-heading {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.features ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.features li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    line-height: 1.5;
}

.features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 900;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border2);
    font-size: 13px;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-key {
    color: var(--muted);
}

.spec-val {
    font-weight: 600;
    text-align: right;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 10px 14px;
    font-size: 13px;
    border-bottom: 1px solid var(--border2);
    vertical-align: top;
}

.specs-table td:first-child {
    color: var(--muted);
    font-weight: 600;
    width: 45%;
}

.specs-table td:last-child {
    color: var(--text);
    font-weight: 500;
}

/* ── DESCRIPTION CONTENT (RICH & RESPONSIVE) ── */
.desc-text, .desc-block {
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
    overflow: hidden;
    word-break: break-word;
}

body.light .desc-text, body.light .desc-block {
    color: #4a4a58;
}

.desc-text p, .desc-block p {
    margin-bottom: 12px;
}

.desc-text strong, .desc-block strong {
    color: var(--text);
}

.desc-text img, .desc-block img, .section-card img, .section-block img, .section-box img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 18px auto !important;
    border-radius: 12px !important;
    border: 1px solid var(--border2) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
    object-fit: contain !important;
}

.desc-text table, .desc-block table, .section-card table, .section-block table, .section-box table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
    margin: 14px 0 !important;
    overflow-x: auto !important;
    display: block !important;
}

.desc-text iframe, .desc-block iframe, .desc-text video, .desc-block video {
    max-width: 100% !important;
    border-radius: 12px !important;
    margin: 16px auto !important;
    display: block !important;
}

/* ── INSTAGRAM BLOCK ── */
.insta-block {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.1), rgba(243, 229, 171, 0.06));
    border: 1px solid rgba(225, 48, 108, 0.3);
    border-radius: var(--radius);
    padding: 18px;
    text-decoration: none;
    color: var(--text);
    margin-bottom: 24px;
}

.insta-qr {
    width: 75px;
    height: 75px;
    border-radius: 10px;
    flex-shrink: 0;
}

.insta-handle {
    font-size: 16px;
    font-weight: 800;
    color: #f472b6;
}

.insta-desc {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.4;
}

/* ── CART SIDEBAR ── */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    background: var(--card);
    border-left: 1px solid var(--border);
    z-index: 1001;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cart-header-title {
    font-size: 18px;
    font-weight: 800;
}

.cart-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--muted);
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border2);
}

.cart-item-img {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg2);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--gold);
    margin-top: 2px;
}

.cart-item-remove {
    color: var(--muted);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    border: none;
    background: none;
}

.cart-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 14px;
}

.cart-total-price {
    color: var(--gold);
}

.cart-checkout-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    font-size: 14px;
    font-weight: 800;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
}

/* ── MOBILE STICKY BOTTOM BAR ── */
.mobile-sticky-bar, .floating-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 10px 14px;
    z-index: 600;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body.light .mobile-sticky-bar, body.light .floating-bar {
    background: rgba(255, 255, 255, 0.96);
}

.msb-price, .sticky-price {
    font-size: 18px;
    font-weight: 900;
    color: var(--gold);
}

.msb-price-old {
    font-size: 11px;
    color: var(--muted);
    text-decoration: line-through;
}

.msb-btns {
    display: flex;
    gap: 8px;
}

.msb-cart-btn {
    padding: 10px 12px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--gold);
    cursor: pointer;
}

.msb-buy-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    font-size: 13px;
    font-weight: 800;
    border-radius: 8px;
    text-decoration: none;
}

@media (max-width: 600px) {
    .mobile-sticky-bar, .floating-bar {
        display: flex;
    }
    .container, .page-wrap {
        padding-bottom: 90px;
    }
}

/* ── LIGHTBOX ZOOM MODAL ── */
.lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-modal.open {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
}

/* ── TOAST NOTIFICATION ── */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #1f2937;
    color: #fff;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    z-index: 9999;
    transition: transform 0.3s;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: #065f46;
}

/* ── NOT FOUND ── */
.not-found-box {
    text-align: center;
    padding: 80px 20px;
}

.not-found-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.not-found-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.not-found-sub {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 24px;
}
