/* ============================================
   Gaming Zone - PRODUCT DETAIL v1.0
   Two-Column Layout: Gallery | Purchase Info
   ============================================ */

.product-page {
    padding: 40px 0 60px;
    min-height: 70vh;
}

/* -----------------------------------
   TWO-COLUMN LAYOUT
   ----------------------------------- */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* -----------------------------------
   GALLERY — Left Column
   ----------------------------------- */
.product-gallery {
    position: sticky;
    top: 120px;
}

.main-image-portal {
    border-radius: 24px;
    overflow: hidden;
    background: rgba(6, 8, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(34, 211, 238, 0.06);
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(34, 211, 238, 0.03);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.main-image-portal:hover {
    border-color: rgba(34, 211, 238, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(34, 211, 238, 0.06);
}

.main-image-portal img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 500px;
}

.portal-glow {
    display: none;
}

.thumbnail-nexus {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.thumb-node {
    width: 72px;
    height: 54px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.3s ease, transform 0.3s ease;
    opacity: 0.6;
}

.thumb-node:hover,
.thumb-node.active {
    border-color: #22d3ee;
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.15);
}

.thumb-node img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -----------------------------------
   PRODUCT CORE — Right Column
   ----------------------------------- */
.product-core {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-header-block {
    margin-bottom: 24px;
}

.product-header-block h1 {
    font-family: 'Outfit', 'Chakra Petch', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.25;
    margin-bottom: 16px;
}

.product-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.stat-item i.filled {
    color: #fbbf24;
}

.stat-item span {
    font-weight: 700;
    color: #e2e8f0;
}

.stat-item small {
    color: #64748b;
    font-size: 0.78rem;
}

/* -----------------------------------
   PRICE NEXUS
   ----------------------------------- */
.price-nexus {
    background: linear-gradient(145deg, rgba(34, 211, 238, 0.03), rgba(43, 80, 188, 0.05));
    border: 1px solid rgba(34, 211, 238, 0.1);
    border-radius: 18px;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.price-nexus::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.2), transparent);
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-display .amount {
    font-family: 'Outfit', 'Rajdhani', sans-serif;
    font-size: 2.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #22d3ee, #2b50bc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.3));
}

.price-display .currency {
    font-size: 1rem;
    color: #64748b;
    font-weight: 600;
}

.price-display .price-old {
    font-size: 0.95rem;
    color: #ef4444;
    text-decoration: line-through;
    margin-inline-start: 10px;
    opacity: 0.7;
}

.stock-ticker {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stock-ticker.in-stock {
    color: #22c55e;
}

.stock-ticker.in-stock i {
    color: #22c55e;
    font-size: 0.5rem;
    animation: pulse-dot 2s infinite;
}

.stock-ticker.out-of-stock {
    color: #ef4444;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* -----------------------------------
   DIVIDER
   ----------------------------------- */
.divider-neon {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.15), rgba(168, 85, 247, 0.1), transparent);
    margin: 10px 0 20px;
    box-shadow: 0 0 5px rgba(34, 211, 238, 0.1);
}

/* -----------------------------------
   VARIATION MATRIX
   ----------------------------------- */
.variation-nexus {
    margin-bottom: 10px;
}

.v-segment {
    margin-bottom: 16px;
}

.v-segment .filter-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: block;
}

/* ========================================/* ============================================
   VARIATION MATRIX (ULTRA-PREMIUM HUD)
   ============================================ */
.variation-nexus {
    perspective: 1000px;
}

.v-grid-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
}

/* Base Variant Tile with 3D & Holographic FX */
.v-tile {
    position: relative;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(15px) saturate(1.8);
    -webkit-backdrop-filter: blur(15px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), 
                background 0.3s ease, 
                border-color 0.3s ease;
    overflow: hidden;
    transform-style: preserve-3d;
}

/* Reactive Holographic Ripple */
.v-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--m-x, 50%) var(--m-y, 50%), 
        rgba(255, 255, 255, 0.12) 0%, 
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.v-tile:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(-5deg);
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
}

.v-tile:hover::before {
    opacity: 1;
}

/* Circuit Tracing Border (Active) */
.v-tile.active {
    background: rgba(43, 80, 188, 0.15);
    border-color: #2b50bc;
    box-shadow: 0 0 30px rgba(43, 80, 188, 0.25);
}

.v-tile.active::after {
    content: '';
    position: absolute;
    inset: -2px;
    border: 2px solid transparent;
    border-radius: 20px;
    background: linear-gradient(90deg, transparent, var(--v-color), transparent) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: circuit-trace 3s linear infinite;
    z-index: 4;
}

@keyframes circuit-trace {
    0% { clip-path: inset(0 0 95% 0); }
    25% { clip-path: inset(0 0 0 95%); }
    50% { clip-path: inset(95% 0 0 0); }
    75% { clip-path: inset(0 95% 0 0); }
    100% { clip-path: inset(0 0 95% 0); }
}

/* HUD Corner Accents */
.v-tile .hud-corner {
    position: absolute;
    width: 6px;
    height: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 5;
    transition: all 0.3s ease;
}

.hud-corner.tl { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.hud-corner.tr { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.hud-corner.bl { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.hud-corner.br { bottom: 12px; right: 12px; border-left: none; border-top: none; }

.v-tile.active .hud-corner {
    border-color: var(--v-color);
    width: 10px;
    height: 10px;
}

/* Tile Content Scaling */
.tile-icon {
    font-size: 2.8rem;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 15px;
    transition: all 0.4s ease;
    z-index: 2;
    transform: translateZ(20px);
}

.v-tile.active .tile-icon {
    color: #fff;
    filter: drop-shadow(0 0 12px var(--v-color));
    transform: translateZ(40px) scale(1.1);
}

.tile-label {
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #94a3b8;
    transition: all 0.4s ease;
    z-index: 2;
    transform: translateZ(10px);
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.v-tile.active .tile-label {
    color: #fff;
}

/* Variation Specific Themes */
.v-tile[data-platform*="PS"], .v-tile[data-platform*="PlayStation"] { --v-color: #00439c; --v-rgb: 0, 67, 156; }
.v-tile[data-platform*="Xbox"] { --v-color: #107c10; --v-rgb: 16, 124, 16; }
.v-tile[data-platform*="PC"], .v-tile[data-platform*="Steam"] { --v-color: #1b2838; --v-rgb: 27, 40, 56; }

/* Energy Pulse Pills (Protocol) */
.v-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.v-pill {
    position: relative;
    flex: 1;
    min-width: 200px;
    padding: 20px 25px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 15px;
}

.v-pill.active {
    background: rgba(var(--v-rgb), 0.1);
    border-color: var(--v-color);
    box-shadow: inset 0 0 20px rgba(var(--v-rgb), 0.1);
}

.v-pill .pill-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(var(--v-rgb), 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.v-pill.active .pill-glow {
    opacity: 1;
    animation: breathing-glow 4s infinite ease-in-out;
}

@keyframes breathing-glow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.pill-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 950;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
}

.pill-desc {
    font-size: 0.7rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    z-index: 2;
}

.v-pill.active .pill-desc {
    color: var(--v-color);
}

/* Scanning Animation Overlay */
.v-pill[data-type*="primary"], .v-pill[data-type*="أساسي"] { --v-color: #2b50bc; --v-rgb: 43, 80, 188; }
.v-pill[data-type*="secondary"], .v-pill[data-type*="ثانوي"] { --v-color: #8b5cf6; --v-rgb: 139, 92, 246; }

/* Digitize Animation for Price & Image */
.digitize-fx {
    animation: digitize 0.5s steps(4) forwards;
}

@keyframes digitize {
    0% { filter: contrast(2) brightness(2) blur(5px); opacity: 0; transform: skewX(-20deg) scaleY(0.5); }
    100% { filter: none; opacity: 1; transform: none; }
}

/* -----------------------------------
   ACTION BUTTONS
   ----------------------------------- */
.action-nexus .btn-premium {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 14px;
    transition: transform 0.2s, opacity 0.2s, background-color 0.2s, border-color 0.2s;
}

.action-nexus .btn-premium.primary {
    background: #2b50bc;
    color: #000;
    border: none;
    cursor: pointer;
}

.action-nexus .btn-premium.primary:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(34, 211, 238, 0.08);
    transform: translateY(-2px);
}

.login-prompt {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.5);
}

/* -----------------------------------
   DELIVERY SHIELD
   ----------------------------------- */
.delivery-shield {
    display: flex;
    gap: 20px;
    margin-top: 24px;
}

.shield-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.shield-item i {
    color: #22d3ee;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.3));
}

.shield-item strong {
    display: block;
    font-size: 0.85rem;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.shield-item p {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
}

/* -----------------------------------
   DESCRIPTION / REVIEWS TABS
   ----------------------------------- */
.product-intel {
    margin-top: 50px;
    padding-bottom: 40px;
}

.intel-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 0;
}

.intel-tab {
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    color: #64748b;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s, background-color 0.2s, border-color 0.2s;
}

.intel-tab:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
}

.intel-tab.active {
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.06);
    border-color: rgba(34, 211, 238, 0.15);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.05);
}

.intel-content {
    display: none;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0 12px 12px 12px;
    background: rgba(15, 23, 42, 0.4);
}

.intel-content.active {
    display: block;
}

.desc-text {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.8;
}

/* Reviews */
.review-node {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.review-node:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.reviewer {
    font-weight: 700;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.review-stars i {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.15);
}

.review-stars i.filled {
    color: #fbbf24;
}

.review-date {
    font-size: 0.75rem;
    color: #64748b;
    margin-inline-start: auto;
}

.review-comment {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.6;
}

.no-intel {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.no-intel i {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.3;
}

/* -----------------------------------
   RESPONSIVE
   ----------------------------------- */
@media (max-width: 900px) {
    .product-page {
        padding: 20px 0 40px;
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-gallery {
        position: static;
    }

    .delivery-shield {
        flex-direction: column;
        gap: 14px;
    }

    .product-intel {
        margin-top: 30px;
    }
}

@media (max-width: 600px) {
    .product-page {
        padding: 10px 0 100px; /* bottom space for sticky CTA */
    }

    .product-page .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    /* ── Gallery ── */
    .main-image-portal {
        border-radius: 14px;
    }

    .main-image-portal img {
        max-height: 300px;
    }

    .thumbnail-nexus {
        gap: 8px;
        margin-top: 10px;
    }

    .thumb-node {
        width: 56px;
        height: 42px;
        border-radius: 8px;
    }

    /* ── Product Header ── */
    .product-header-block {
        margin-bottom: 16px;
    }

    .product-header-block h1 {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }

    .product-stats {
        gap: 12px;
    }

    .stat-item {
        font-size: 0.78rem;
    }

    /* ── Price ── */
    .price-nexus {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 16px 18px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .price-display {
        justify-content: space-between;
        width: 100%;
    }

    .price-display .amount {
        font-size: 1.7rem;
    }

    .price-display .currency {
        font-size: 0.85rem;
    }

    .stock-ticker {
        font-size: 0.72rem;
    }

    /* ── Divider ── */
    .divider-neon {
        margin: 6px 0 14px;
    }

    /* ── Variations ── */
    .variation-nexus {
        margin-bottom: 6px;
    }

    .v-segment {
        margin-bottom: 10px;
    }

    .v-segment .filter-label {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }

    .v-grid-tiles {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .v-tile {
        padding: 18px 12px !important;
        border-radius: 16px;
    }

    .tile-icon {
        font-size: 1.6rem !important;
        margin-bottom: 8px;
    }

    .tile-label {
        font-size: 0.72rem;
        letter-spacing: 1px;
    }

    .v-pill-group {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .v-pill {
        padding: 16px;
        border-radius: 14px;
    }

    .pill-text {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .pill-desc {
        font-size: 0.68rem;
    }

    /* ── Action Buttons ── */
    .action-nexus {
        padding: 5px 0;
        margin-top: 15px;
    }

    .action-nexus .btn-premium {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    .login-prompt {
        border-radius: 12px;
    }

    /* ── Delivery Shields ── */
    .delivery-shield {
        gap: 10px;
        margin-top: 16px;
    }

    .shield-item {
        gap: 8px;
    }

    .shield-item i {
        font-size: 0.95rem;
    }

    .shield-item strong {
        font-size: 0.78rem;
    }

    .shield-item p {
        font-size: 0.7rem;
    }

    /* ── Description / Reviews Tabs ── */
    .product-intel {
        margin-top: 24px;
        padding-bottom: 24px;
    }

    .intel-tabs {
        gap: 2px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .intel-tab {
        padding: 10px 14px !important;
        font-size: 0.72rem !important;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .intel-content {
        padding: 18px 14px;
        border-radius: 0 8px 8px 8px;
    }

    .desc-text {
        font-size: 0.88rem;
        line-height: 1.7;
    }

    /* Reviews */
    .review-node {
        padding: 14px 0;
    }

    .reviewer {
        font-size: 0.82rem;
    }

    .review-comment {
        font-size: 0.82rem;
    }

    .review-date {
        font-size: 0.7rem;
    }
}

@media (max-width: 380px) {
    .product-header-block h1 {
        font-size: 1.1rem;
    }

    .price-display .amount {
        font-size: 1.5rem;
    }

    .v-grid-tiles {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .v-tile {
        padding: 14px 10px !important;
    }

    .tile-icon {
        font-size: 1.3rem !important;
    }

    .tile-label {
        font-size: 0.65rem;
    }
}
