/* Product Page Layout */
.product-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 2rem) 5vw 4rem;
    min-height: 70vh;
}

.prod-loading, .prod-error {
    text-align: center;
    padding: 3rem 0;
    font-family: 'DM Sans', sans-serif;
    color: var(--muted);
}
.prod-error a { color: var(--accent); text-decoration: underline; }

.prod-breadcrumb {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.75rem; font-family: 'DM Sans', sans-serif;
    color: var(--muted); margin-bottom: 1.5rem;
}
.prod-breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.prod-breadcrumb a:hover { color: var(--text); }
.prod-breadcrumb i, .prod-breadcrumb svg { width: 12px; height: 12px; }
.prod-breadcrumb span { color: var(--text); font-weight: 500; }

/* ─── 1. HERO SECTION ─────────────────────── */
.prod-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

@media (max-width: 900px) {
    .prod-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.prod-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.prod-main-img-box {
    position: relative;
    border-radius: 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    aspect-ratio: 1/1;
    display: flex; align-items: center; justify-content: center;
    padding: 0; /* Take all available space */
    overflow: hidden;
    cursor: crosshair;
}

.prod-main-img-box img {
    width: 100%; height: 100%; object-fit: contain;
    transition: transform 0.15s ease-out;
    pointer-events: none;
}

.prod-thumbnails {
    display: flex; gap: 0.75rem; overflow-x: auto;
    padding-bottom: 0.5rem;
}
.prod-thumbnails::-webkit-scrollbar { height: 3px; }
.prod-thumbnails::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.thumbnail-box {
    width: 60px; height: 60px; flex-shrink: 0;
    border-radius: 6px; background: var(--surface2);
    border: 1px solid var(--border); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0.4rem; transition: border-color 0.2s;
}
.thumbnail-box.active { border-color: var(--accent); }
.thumbnail-box img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Right Details */
.prod-hero-details { position: relative; }

.prod-series-tag {
    font-size: 0.65rem; font-weight: 700; font-family: 'Oxanium', sans-serif;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 0.25rem 0.6rem; border-radius: 4px; display: inline-block; margin-bottom: 0.75rem;
}
.prod-series-tag.gaming { background: #A4F93F; color: #000; }
.prod-series-tag.creatorx { background: #64b4ff; color: #000; }
.prod-series-tag.workstation { background: #ffa050; color: #000; }

.prod-badge {
    position: absolute; top: 0; right: 0;
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    padding: 0.25rem 0.5rem; border-radius: 4px;
    background: rgba(8, 12, 16, 0.85); border: 1px solid var(--border);
    backdrop-filter: blur(6px); display: inline-block;
}

.prod-title {
    font-family: 'Bebas Neue', sans-serif; font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1; color: var(--text); margin-bottom: 0.4rem; letter-spacing: 0.02em;
}

.prod-tagline {
    font-family: 'DM Sans', sans-serif; font-size: 0.95rem; color: var(--muted);
    line-height: 1.4; margin-bottom: 1rem;
}

.prod-price {
    font-family: 'Oxanium', sans-serif; font-size: 2rem; font-weight: 800;
    color: var(--accent); margin-bottom: 1.5rem;
    display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap;
}

.prod-original-price {
    font-family: 'Oxanium', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: line-through;
    opacity: 0.6;
}

/* 5. ADD-ONS */
.prod-addons { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; margin-bottom: 1.5rem; }
.addons-title { font-size: 0.85rem; font-family: 'Oxanium', sans-serif; margin-bottom: 0.75rem; color: var(--text); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.addon-label { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; }
.addon-label:last-child { border-bottom: none; padding-bottom: 0; }
.addon-left { display: flex; align-items: center; gap: 0.6rem; }
.addon-name { font-family: 'DM Sans', sans-serif; font-size: 0.85rem; color: var(--muted); }
.addon-label:hover .addon-name { color: var(--text); }
.addon-price { font-family: 'Oxanium', sans-serif; color: var(--text); font-size: 0.85rem; font-weight: 600; }

/* Custom Checkbox */
.addon-checkbox {
    appearance: none; width: 16px; height: 16px; border: 1px solid var(--border);
    border-radius: 3px; background: rgba(0,0,0,0.3); outline: none; cursor: pointer;
    position: relative; transition: all 0.2s;
}
.addon-checkbox:checked { background: var(--accent); border-color: var(--accent); }
.addon-checkbox:checked::after {
    content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px;
    border: solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* CTA */
.prod-cta-group { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.prod-cta-group button { 
    flex: 1; min-width: 160px; display: flex; align-items: center; justify-content: center;
    gap: 0.4rem; padding: 0.85rem; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
}
.prod-btn-primary { background: var(--accent); color: #000; border: none; }
.prod-btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(164, 249, 63, 0.15); }
.prod-btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.prod-btn-secondary:hover { background: var(--surface2); }

/* 8. TRUST */
.prod-trust { display: flex; flex-wrap: wrap; gap: 1rem; }
.trust-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; color: var(--muted); font-family: 'DM Sans', sans-serif; }
.trust-item i, .trust-item svg { width: 14px; height: 14px; color: var(--text); }

/* General Section Styling */
.prod-section { margin-bottom: 3rem; }
.section-title { font-family: 'Oxanium', sans-serif; font-size: 1.25rem; font-weight: 800; margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* TABLES */
.prod-table { width: 100%; border-collapse: collapse; font-family: 'DM Sans', sans-serif; text-align: left; }
.prod-table tr { border-bottom: 1px solid rgba(255,255,255,0.05); }
.prod-table tr:last-child { border-bottom: none; }
.prod-table td, .prod-table th { padding: 0.85rem 0.5rem; font-size: 0.85rem; color: var(--muted); }
.prod-table td:last-child { text-align: right; color: var(--text); font-family: 'Oxanium', sans-serif; font-weight: 600; }
.prod-table td i { width: 14px; height: 14px; color: var(--accent); margin-right: 0.5rem; vertical-align: middle; }
.fps-table th { font-family: 'Oxanium', sans-serif; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); padding-bottom: 0.5rem; font-weight: 700;}

.specs-hidden { display: none; }
.specs-expand-btn { background: transparent; color: var(--accent); border: none; font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 0.3rem; margin-top: 1rem; transition: color 0.2s; }
.specs-expand-btn:hover { color: #fff; }

/* 3. HIGHLIGHTS */
.highlights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.highlight-card { background: var(--surface2); padding: 1rem; border-radius: 8px; border: 1px solid var(--border); text-align: center; }
.highlight-icon { width: 32px; height: 32px; background: rgba(164, 249, 63, 0.1); color: var(--accent); display: flex; align-items: center; justify-content: center; border-radius: 50%; margin: 0 auto 0.75rem; }
.highlight-icon svg, .highlight-icon i { width: 16px; height: 16px; }
.highlight-card h3 { font-family: 'Oxanium', sans-serif; font-size: 0.85rem; margin-bottom: 0.4rem; color: var(--text); }
.highlight-card p { font-family: 'DM Sans', sans-serif; font-size: 0.75rem; color: var(--muted); line-height: 1.4; }

/* 7. RELATED PRODUCTS */
.related-grid { 
    display: flex; 
    gap: 1.5rem; 
    flex-wrap: wrap; 
    justify-content: flex-start; 
}
@media(max-width: 600px) { 
    .related-grid { 
        flex-wrap: nowrap;
        overflow-x: auto; 
        scroll-snap-type: x mandatory; 
        padding-bottom: 1rem; 
        -webkit-overflow-scrolling: touch; 
    }
    .related-grid::-webkit-scrollbar { height: 4px; }
    .related-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
    .related-grid > a { 
        flex: 0 0 auto; 
        scroll-snap-align: start; 
    }
}
