/* ==========================================================================
   1. Brand Variable & Ecosystem Architecture
   ========================================================================== */
:root {
    --bg-color:              #06020b;
    --panel-bg:              rgba(15, 8, 24, 0.45);
    --panel-border:          rgba(255, 255, 255, 0.04);
    --text-main:             #f3effa;
    --text-muted:            #958a9e;
    --text-dark:             #06020b;
    --brand-purple:          #9d4edd;
    --active-accent:         #9d4edd;
    --active-accent-rgb:     157, 78, 221;
    --ff-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* ── Fluid spacing tokens ─────────────────────────────────────────────── */
    --space-2xs: clamp(6px,   1vw,    10px);
    --space-xs:  clamp(10px,  1.5vw,  16px);
    --space-sm:  clamp(16px,  2vw,    24px);
    --space-md:  clamp(24px,  3vw,    40px);
    --space-lg:  clamp(32px,  4vw,    60px);
    --space-xl:  clamp(40px,  5vw,    80px);

    /* ── Fluid radius tokens ─────────────────────────────────────────────── */
    --radius-sm:   10px;
    --radius-md:   clamp(14px, 1.5vw, 20px);
    --radius-lg:   clamp(20px, 2.5vw, 32px);
    --radius-pill: 100px;
}

/* ==========================================================================
   2. Atmospheric Canvas Scenery
   ========================================================================== */
.bg-scene {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 15% 15%, rgba(var(--active-accent-rgb), 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(30, 10, 60, 0.4) 0%, transparent 50%),
        #06020b;
    overflow: hidden;
}

.bg-scene::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
    mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 90%);
}

#vyxra-main{
	background: var(--bg);
}

/* Hide the default WooCommerce dynamic "View Cart" link */
.product-info .added_to_cart {
    display: none !important;
}

.glow-overlay {
    position: fixed;
    top: 40%;
    left: 30%;
    transform: translate(-50%, -50%);
    width:  min(550px, 80vw);
    height: min(550px, 80vw);
    background: var(--active-accent);
    filter: blur(120px);
    opacity: 0.10;
    z-index: -1;
    transition: background 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    will-change: background;
}

/* ==========================================================================
   3. Main Premium Layout Framework
   ========================================================================== */
.product-container {
    width: min(1240px, calc(100% - clamp(24px, 5vw, 120px)));
    margin: var(--space-xl) auto;
    padding: var(--space-lg);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-lg);
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    box-sizing: border-box;
}

/* ==========================================================================
   4a. Enhanced Mobile Touch Swipe Track Carousel
   ========================================================================== */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}

.image-swipe-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    z-index: 1;
}

.image-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: clamp(10px, 2vw, 20px);
}

.image-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--active-accent);
    box-shadow: 0 0 8px var(--active-accent);
    width: 14px;
    border-radius: var(--radius-pill);
}

/* ==========================================================================
   4. Left Showcase Side (Media Hub & Hover Animations)
   ========================================================================== */
.main-display-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    min-width: 0;
}

.product-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: var(--radius-md);
    padding: clamp(20px, 3vw, 40px);
    background: radial-gradient(circle at center, rgba(255,255,255,0.02) 0%, transparent 70%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
    overflow: hidden;
}

.product-image-wrapper::before {
    content: "";
    position: absolute;
    width: 80%;
    height: 80%;
    background: var(--active-accent);
    filter: blur(60px);
    opacity: 0.10;
    border-radius: 50%;
    z-index: 0;
    transition: background 0.8s ease;
}

.product-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    z-index: 1;
    border-radius: var(--radius-sm);
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.6));
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    backface-visibility: hidden;
}

/* --- Gallery (Flexible Row for Desktop Viewports) ------------------------- */
.product-gallery-row {
    display: flex;
    flex-wrap: wrap; /* Allows natural wrapping if desktop drops down */
    gap: clamp(8px, 1.2vw, 14px);
    overflow: visible;
    padding: 4px 4px 10px;
    min-width: 0;
}

.gallery-thumb {
    width:  clamp(65px, 8vw, 85px);
    height: clamp(65px, 8vw, 85px);
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    border-radius: calc(var(--radius-sm) - 2px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-thumb.active {
    border-color: var(--active-accent);
    background: rgba(var(--active-accent-rgb), 0.1);
    box-shadow: 0 0 15px rgba(var(--active-accent-rgb), 0.35);
    transform: scale(1.2) translateY(-4px);
}

/* ==========================================================================
   5. Right Panel Details Side (Typography & Content)
   ========================================================================== */
.product-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}

.product-tagline {
    align-self: flex-start;
    font-size: 0.78rem;
    font-family: var(--ff-sans);
    font-weight: 700;
    color: var(--active-accent);
    background: rgba(var(--active-accent-rgb), 0.08);
    border: 1px solid rgba(var(--active-accent-rgb), 0.2);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.product-title {
    font-size: clamp(2rem, 3.7vw, 3.8rem);
    font-weight: 800;
    font-family: var(--ff-sans);
    color: white;
    line-height: 1.15;
    margin: 0 0 var(--space-xs) 0;
    letter-spacing: -0.5px;
    text-shadow: 0 0 30px rgba(157, 78, 221, 0.2);
    overflow-wrap: break-word;
    hyphens: auto;
}

.product-price {
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    font-weight: 700;
    font-family: var(--ff-sans);
    color: gray;
    margin-bottom: var(--space-md);
}

.product-description {
    font-size: clamp(0.93rem, 1.4vw, 1.05rem);
    line-height: 1.75;
    font-family: var(--ff-sans);
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: var(--space-sm);
    overflow-wrap: break-word;
}

/* ==========================================================================
   6. Dynamic Attribute Framework
   ========================================================================== */
.attributes-section {
    margin-bottom: var(--space-md);
    font-family: var(--ff-sans);
}

.attributes-heading {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-main);
    margin-bottom: var(--space-xs);
    opacity: 0.85;
}

.attributes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.attribute-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-muted);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}

.attribute-card strong {
    color: var(--text-main);
}

/* ==========================================================================
   7. Cyber Action Purchase CTA
   ========================================================================== */
.buy-now-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    background: var(--active-accent);
    color: var(--text-dark);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 700;
    font-family: var(--ff-sans);
    padding: clamp(14px, 2vw, 20px) clamp(24px, 3vw, 40px);
    border-radius: var(--radius-md);
    text-decoration: none;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition:
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform   0.2s ease,
        filter      0.2s ease;
    box-shadow:
        0 10px 30px rgba(var(--active-accent-rgb), 0.25),
        0 0 0 0 rgba(var(--active-accent-rgb), 0);
}

.buy-now-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.55s ease;
    pointer-events: none;
}

.buy-now-button:hover::before {
    left: 160%;
}

.buy-now-button:hover {
    box-shadow:
        0 16px 40px rgba(var(--active-accent-rgb), 0.40),
        0 0 0 3px rgba(var(--active-accent-rgb), 0.15);
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.buy-now-button:active {
    transform: translateY(1px);
    filter: brightness(0.88);
    box-shadow: 0 6px 16px rgba(var(--active-accent-rgb), 0.20);
}

.buy-now-button:focus-visible {
    outline: 2.5px solid var(--active-accent);
    outline-offset: 3px;
}

/* ==========================================================================
   8. Pointer-Only Hover States
   ========================================================================== */
@media (hover: hover) {
    .product-container:hover .product-image-wrapper img {
        transform: scale(1.04);
    }

    .gallery-thumb:hover {
        border-color: var(--active-accent);
        box-shadow: 0 10px 24px rgba(var(--active-accent-rgb), 0.25);
        transform: translateY(-4px);
    }

    .gallery-thumb:hover img {
        transform: scale(1.08);
    }

    .attribute-card:hover {
        border-color: rgba(var(--active-accent-rgb), 0.3);
        background: rgba(255, 255, 255, 0.04);
        transform: translateY(-1px);
    }
}

/* ==========================================================================
   9. Responsive Tier Configurations
   ========================================================================== */

/* ── Large Laptop / Landscape Tablet ≤1100px ──────────────────────────── */
@media (max-width: 1100px) {
    .product-container {
        grid-template-columns: 1fr;
    }

    .product-image-wrapper {
        aspect-ratio: 4 / 3;
        max-height: 460px;
    }
}

/* ── Mid Tablet / Large Phone Landscape ≤900px ─────────────────────────── */
@media (max-width: 900px) {
    .product-image-wrapper {
        aspect-ratio: 3 / 2;
        max-height: 380px;
    }

    .product-title {
        font-size: clamp(1.9rem, 5.5vw, 3rem);
    }

    /* Target gallery row on mid tablets to split grid items at 4 per row maximum */
    .product-gallery-row {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        justify-content: center;
        justify-items: center; /* Centers thumbnails in their assigned slots */
    }
    
    .gallery-thumb {
        width: 100%; /* Fill out their structural columns up to desktop cap */
        max-width: 85px; 
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .attributes-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ── Mobile & Portrait Tablet ≤768px ──────────────────────────────────── */
@media (max-width: 768px) {
    .product-container {
        width: 90%;
        margin: 16px auto;
        padding: clamp(18px, 5vw, 28px) clamp(14px, 4vw, 22px);
        border-radius: var(--radius-md);
        gap: var(--space-md);
    }

    .product-image-wrapper {
        aspect-ratio: 1 / 1;
        max-height: 340px;
        padding: 16px;
    }

    /* Target gallery row on regular mobile screens to enforce strict 4 item rows */
    .product-gallery-row {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        justify-content: center;
        justify-items: center;
    }

    .gallery-thumb {
        width: 100%;
        max-width: 75px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .product-description {
        font-size: 0.93rem;
    }

    .attributes-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 8px;
    }

    .attribute-card {
        text-align: center;
        padding: 10px 8px;
    }

    .attribute-card strong {
        display: block;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 3px;
        opacity: 0.65;
    }
}

/* ── Small Mobile ≤480px ──────────────────────────────────────────────── */
@media (max-width: 480px) {
    .product-container {
        width: 90%;
        margin: 12px auto;
        padding: 16px 14px;
        border-radius: 18px;
    }

    .product-image-wrapper {
        max-height: 280px;
        padding: 12px;
    }

    /* Maintain strict 4 column grids even on ultra compact mobile panels */
    .product-gallery-row {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        justify-content: center;
        justify-items: center;
    }
    
    .gallery-thumb {
        width: 100%;
        max-width: 65px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .product-title {
        font-size: clamp(1.8rem, 7.5vw, 2.1rem);
        letter-spacing: -0.25px;
    }

    .product-price {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
    }

    .attributes-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .buy-now-button {
        padding: 14px 20px;
        font-size: 1rem;
        border-radius: var(--radius-sm);
    }

    .glow-overlay {
        filter: blur(80px);
        opacity: 0.08;
        width:  70vw;
        height: 70vw;
    }
}

<!-- ========================================== -->
<!-- NEW: Cyberpunk Toggle Interactive Styles   -->
<!-- ========================================== -->

    :root {
        --purple-core: #8a2be2;
        --purple-glow: rgba(138, 43, 226, 0.4);
        --border-dim: rgba(255, 255, 255, 0.15);
    }

    /* Base State: Empty / "Without Effect" */
    .cyber-effect-card {
        position: relative;
        background: rgba(15, 8, 24, 0.6);
        border: 1px solid var(--border-dim);
        padding: 16px 20px;
        cursor: pointer;
        border-radius: 20px;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        user-select: none;
		width: 200px;
    }

    /* Subtle Hover Effect on Untoggled State */
    .cyber-effect-card:hover {
        border-color: rgba(138, 43, 226, 0.5);
        background: rgba(25, 14, 38, 0.7);
    }

    .card-content-matrix {
        display: flex;
        align-items: center;
        gap: 12px;
        position: relative;
        z-index: 2;
    }

    /* Indicator dot customization */
    .status-indicator-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #555;
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
    }

    .effect-label-text {
        color: #fff;
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 18px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
    }

    /* ACTIVE STATE: Filled Purple with Custom Effect Glow Matrix */
    .cyber-effect-card.is-active {
        background: var(--active-accent);
        border-color: #c792ea;
        box-shadow: 0 0 20px var(--purple-glow), inset 0 0 12px rgba(255, 255, 255, 0.2);
    }

    .cyber-effect-card.is-active .status-indicator-dot {
        background: #fff;
        box-shadow: 0 0 8px #fff;
        border-color: #fff;
    }

    .cyber-effect-card.is-active .effect-label-text {
        font-weight: 700;
        letter-spacing: 1px;
    }