/* ══════════════════════════════════════════════════════════════
   PREMIUM PRODUCT VIEW v2.0 — STYLESHEET
   Aesthetics: Apple / NZXT / Cyberpunk-Modern
   ══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Rajdhani:wght@500;600;700;800&display=swap');

:root {
    --p-bg: #0A0A0A;
    --p-card: #141414;
    --p-accent: #E31E24;
    --p-accent-rgb: 227, 30, 36;
    --p-text: #FFFFFF;
    --p-text-muted: #9CA3AF;
    --p-border: rgba(255, 255, 255, 0.08);
    --p-glass: rgba(255, 255, 255, 0.03);
    --p-font-main: 'Inter', sans-serif;
    --p-font-display: 'Rajdhani', sans-serif;
}

/* Light Theme Overrides */
[data-theme="light"] {
    --p-bg: #F9FAFB;
    --p-card: #FFFFFF;
    --p-text: #111827;
    --p-text-muted: #6B7280;
    --p-border: rgba(0, 0, 0, 0.08);
    --p-glass: rgba(0, 0, 0, 0.02);
}

.premium-product-wrapper {
    font-family: var(--p-font-main);
    color: var(--p-text);
    background: var(--p-bg);
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
}

/* ─── HERO SECTION ────────────────────────────── */
.premium-hero-section {
    margin-bottom: 40px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Gallery Styles */
.hero-gallery-side {
    position: sticky;
    top: 100px;
}

.gallery-container {
    display: flex;
    gap: 20px;
}

.thumbnail-slider {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thumb-wrapper {
    width: 80px;
    height: 80px;
    background: var(--p-card);
    border: 2px solid var(--p-border);
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumb-wrapper.active, .thumb-wrapper:hover {
    border-color: var(--p-accent);
    box-shadow: 0 0 15px rgba(var(--p-accent-rgb), 0.2);
    transform: scale(1.05);
}

.main-preview {
    flex: 1;
    height: 550px;
    background: var(--p-card);
    border-radius: 24px;
    border: 1px solid var(--p-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#premium-main-image {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    z-index: 2;
    transition: transform 0.5s ease;
}

.main-preview::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--p-accent);
    filter: blur(120px);
    opacity: 0.1;
    z-index: 1;
}

/* Info Panel Styles */
.info-glass-card {
    background: var(--p-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--p-border);
    border-radius: 32px;
    padding: 35px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.product-badge {
    color: var(--p-accent);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.product-title {
    font-family: var(--p-font-display);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.stars { color: #F59E0B; font-size: 0.9rem; }
.rating-value { font-weight: 700; font-size: 1.1rem; }
.review-link { color: var(--p-text-muted); font-size: 0.9rem; cursor: pointer; }

.price-box {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 30px;
}

.currency { font-size: 1.5rem; font-weight: 700; color: var(--p-accent); }
.amount { font-family: var(--p-font-display); font-size: 4rem; font-weight: 800; color: var(--p-text); }
.mrp { color: var(--p-text-muted); text-decoration: line-through; font-size: 1.2rem; }
.discount-tag { background: var(--p-accent); color: white; padding: 4px 10px; border-radius: 8px; font-weight: 800; font-size: 0.8rem; }

.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 30px;
}
.stock-status.in-stock { color: #10B981; }
.stock-status.out-of-stock { color: #EF4444; }

.variants-selector {
    margin-bottom: 30px;
}

.selector-label { font-size: 0.9rem; font-weight: 600; margin-bottom: 12px; }
.color-options { display: flex; gap: 12px; }

.color-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.color-dot.active { border-color: var(--p-accent); transform: scale(1.1); box-shadow: 0 0 10px rgba(var(--p-accent-rgb), 0.3); }

.purchase-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.qty-control {
    display: flex;
    align-items: center;
    background: var(--p-card);
    border: 1px solid var(--p-border);
    border-radius: 16px;
    padding: 0 10px;
}

.qty-btn { background: none; border: none; color: var(--p-text); font-size: 1.5rem; width: 35px; cursor: pointer; }
#purchase-qty { background: none; border: none; color: var(--p-text); width: 45px; text-align: center; font-weight: 700; font-size: 1.1rem; }

.btn-buy-now {
    flex: 1;
    height: 56px;
    background: var(--p-text);
    color: var(--p-bg);
    border: none;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-add-to-cart {
    width: 100%;
    height: 64px;
    background: linear-gradient(135deg, var(--p-accent), #C1171D);
    color: white;
    border: none;
    border-radius: 16px;
    font-family: var(--p-font-display);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(var(--p-accent-rgb), 0.3);
    transition: all 0.3s;
}

.btn-add-to-cart:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(var(--p-accent-rgb), 0.5); }

.utility-actions {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--p-border);
    padding-top: 20px;
}

.util-btn {
    background: none;
    border: none;
    color: var(--p-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}
.util-btn:hover { color: var(--p-accent); }

/* ─── HIGHLIGHTS BAR ──────────────────────────── */
.premium-highlights-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.highlight-item {
    background: var(--p-card);
    border: 1px solid var(--p-border);
    padding: 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 0.95rem;
}

.highlight-item i { color: var(--p-accent); font-size: 1.4rem; }

/* ─── TABS SECTION ───────────────────────────── */
.premium-tabs-section {
    margin-bottom: 80px;
}

.tabs-header {
    display: flex;
    gap: 40px;
    border-bottom: 1px solid var(--p-border);
    margin-bottom: 40px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--p-text-muted);
    font-family: var(--p-font-display);
    font-size: 1.4rem;
    font-weight: 700;
    padding: 15px 0;
    cursor: pointer;
    position: relative;
    text-transform: uppercase;
}

.tab-btn.active { color: var(--p-text); }
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--p-accent);
}

.tab-pane-fade { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Description Pane */
.description-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.description-layout h3 { font-family: var(--p-font-display); font-size: 2.2rem; margin-bottom: 20px; }
.description-layout p { color: var(--p-text-muted); line-height: 1.8; font-size: 1.1rem; margin-bottom: 30px; }

.feature-bullets { list-style: none; padding: 0; }
.feature-bullets li { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; font-weight: 600; }
.feature-bullets li i { color: var(--p-accent); width: 20px; text-align: center; }

.image-showcase img { width: 100%; border-radius: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); }

/* Specs Pane */
.specs-table-premium { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.spec-group h4 { font-family: var(--p-font-display); font-size: 1.3rem; margin-bottom: 20px; color: var(--p-accent); text-transform: uppercase; }
.spec-item { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--p-border); font-size: 0.95rem; }
.spec-item span { color: var(--p-text-muted); }

/* Reviews Pane */
.reviews-layout { display: grid; grid-template-columns: 350px 1fr; gap: 60px; }
.reviews-summary-card { background: var(--p-card); border: 1px solid var(--p-border); padding: 40px; border-radius: 24px; height: fit-content; text-align: center; }
.overall-rating h2 { font-family: var(--p-font-display); font-size: 5rem; line-height: 1; margin-bottom: 10px; }
.stars-large { color: #F59E0B; font-size: 1.5rem; margin-bottom: 10px; }

.rating-bars { margin: 30px 0; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.85rem; }
.bar-bg { flex: 1; height: 6px; background: var(--p-border); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--p-accent); }

.btn-write-review { width: 100%; padding: 15px; background: var(--p-accent); color: white; border: none; border-radius: 12px; font-weight: 800; cursor: pointer; }

.premium-review-card { background: var(--p-glass); border: 1px solid var(--p-border); padding: 30px; border-radius: 20px; margin-bottom: 20px; }
.review-header { display: flex; justify-content: space-between; margin-bottom: 15px; }
.user-meta { display: flex; gap: 15px; align-items: center; }
.user-initials { width: 45px; height: 45px; background: var(--p-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.review-date { color: var(--p-text-muted); font-size: 0.85rem; }

/* ─── RELATED PRODUCTS ────────────────────────── */
.premium-related-section .section-title { font-family: var(--p-font-display); font-size: 2.5rem; margin-bottom: 40px; text-transform: uppercase; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }

.related-card { background: var(--p-card); border: 1px solid var(--p-border); border-radius: 20px; overflow: hidden; cursor: pointer; transition: all 0.3s; }
.related-card:hover { transform: translateY(-8px); border-color: var(--p-accent); }
.card-img { height: 200px; padding: 20px; display: flex; align-items: center; justify-content: center; background: var(--p-glass); }
.card-img img { max-width: 90%; max-height: 90%; object-fit: contain; }
.card-body { padding: 20px; }
.card-cat { color: var(--p-accent); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; }
.card-body h4 { font-size: 1.1rem; margin: 8px 0 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { display: flex; justify-content: space-between; align-items: center; }
.card-price { font-family: var(--p-font-display); font-size: 1.3rem; font-weight: 800; }
.card-stars { font-weight: 700; color: #F59E0B; }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
    .hero-layout { grid-template-columns: 1fr; }
    .hero-gallery-side { position: static; }
    .premium-highlights-bar { grid-template-columns: 1fr; }
    .description-layout { grid-template-columns: 1fr; }
    .reviews-layout { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .product-title { font-size: 2.5rem; }
    .amount { font-size: 3rem; }
    .gallery-container { flex-direction: column-reverse; }
    .thumbnail-slider { flex-direction: row; }
    .thumb-wrapper { width: 70px; height: 70px; }
    .main-preview { height: 400px; }
}
.product-premium-modal-content { max-width: 1400px !important; width: 95% !important; max-height: 90vh !important; background: var(--p-bg) !important; padding: 0 !important; overflow-y: auto !important; border: 1px solid var(--p-border) !important; border-radius: 32px !important; }

/* --- MODALS & LIGHTBOX --- */
.premium-lightbox { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; }
.lightbox-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.9); backdrop-filter: blur(10px); }
.lightbox-content { position: relative; z-index: 1; max-width: 90%; max-height: 90%; }
.lightbox-content img { max-width: 100%; max-height: 90vh; border-radius: 12px; }
.close-lightbox { position: absolute; top: -50px; right: 0; background: none; border: none; color: white; font-size: 2rem; cursor: pointer; }

.review-form-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); }
.review-modal-card { position: relative; z-index: 1; background: var(--p-card); width: 500px; border-radius: 24px; border: 1px solid var(--p-border); padding: 30px; animation: modalIn 0.3s ease; }
@keyframes modalIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.modal-header h3 { font-family: var(--p-font-display); font-size: 1.8rem; margin: 0; }
.close-modal { background: none; border: none; color: var(--p-text-muted); font-size: 1.2rem; cursor: pointer; }
.star-picker { font-size: 1.8rem; color: #F59E0B; cursor: pointer; margin-top: 10px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; margin-bottom: 8px; color: var(--p-text-muted); }
.form-group textarea { width: 100%; height: 120px; background: var(--p-bg); border: 1px solid var(--p-border); border-radius: 12px; color: white; padding: 12px; resize: none; }
.upload-area { border: 2px dashed var(--p-border); border-radius: 12px; padding: 20px; text-align: center; color: var(--p-text-muted); cursor: pointer; }
.submit-review-btn { width: 100%; padding: 16px; background: var(--p-accent); color: white; border: none; border-radius: 12px; font-weight: 800; cursor: pointer; }
