/* ==========================================================================
   VYXRA CYBERPUNK SHOP ENGINE - ULTRA-WIDE PURPLE EDITION
   ========================================================================== */

/* Full-Width Canvas Override */
.vyxra-shop-container.layout-fullwidth {
    width: 100% !important;
    max-width: 100% !important;
    padding: 60px 4% !important; /* Spreads elements out to edge viewing zones */
    background-color: #030205;
    position: relative;
    box-sizing: border-box;
    min-height: 100vh;
}

.shop-grid-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.neon-glow-core {
    position: absolute;
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(circle, rgba(188, 19, 254, 0.18) 0%, rgba(0,0,0,0) 75%);
    filter: blur(70px);
}

.vyxra-shop-showcase {
    position: relative;
    z-index: 2;
}

/* Typography Overrides: Deep Neon Purple Hex Values (#bc13fe) */
.shop-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.shop-glitch-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 6px;
    color: #bc13fe; /* Dynamic Purple Core Headline Color */
    text-shadow: 0 0 20px rgba(188, 19, 254, 0.4);
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.shop-subtitle {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    color: #7d6b8c;
    letter-spacing: 2px;
    margin: 0 0 35px 0;
    text-transform: uppercase;
}

/* Search Dashboard Framework */
.vyxra-search-frame {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.vyxra-search-frame input[type="text"] {
    width: 100%;
    background: #0b0710;
    border: 1px solid #231336;
    padding: 16px 110px 16px 20px;
    box-sizing: border-box;
    color: #fff;
    font-family: monospace;
    font-size: 13px;
    letter-spacing: 1px;
    outline: none;
    border-radius: 4px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.vyxra-search-frame input[type="text"]:focus {
    border-color: #bc13fe;
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.3);
}

.search-status-indicator {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-family: monospace;
    font-size: 10px;
    font-weight: bold;
    color: #bc13fe;
    letter-spacing: 1px;
    border-left: 1px solid #231336;
    padding-left: 15px;
}

.loading-pulse {
    animation: statusPulse 0.8s infinite ease-in-out;
}
@keyframes statusPulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; color: #ff00ea; }
    100% { opacity: 0.4; }
}

/* 4-Column Full-Width Flexbox Grid Row Layout */
.vyxra-products-grid {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 24px;
}

/* Product Card Architecture */
.vyxra-product-card {
    flex: 0 1 calc(25% - 18px); /* Changes grid ratio cleanly to 4 items across wide viewports */
    min-width: 270px;
    background: #09050d;
    border: 1px solid #160d22;
    border-radius: 12px; /* Smooth card edges */
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}

.vyxra-product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(188, 19, 254, 0.4);
    box-shadow: 0 10px 30px rgba(188, 19, 254, 0.1);
}

/* Image Frames - Upgraded to Smaller 5:4 Tech Blueprint Aspect Ratio */
.product-thumb-frame {
    position: relative;
    width: calc(100% - 24px); /* Scales frame space downward inside the card container */
    margin: 12px auto 0 auto;  /* Centers and floats it inside the wrapper boundary line */
    padding-top: 80%;          /* Calculated perfect 5:4 Aspect Box Ratio (Height = 80% of Width) */
    background: #040206;
    border-radius: 8px;        /* Internal element smooth corner styling rules */
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: scale-down;
    aspect-ratio: 5/4;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.vyxra-product-card:hover .product-image {
    transform: scale(1.05);
}

/* New Glowing Limited Edition Purple Badges */
.product-badge {
    position: absolute;
    top: 12px; right: 12px;
    font-family: monospace;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    z-index: 3;
    box-shadow: 0 0 10px rgba(188, 19, 254, 0.2);
    border: 1px solid rgba(188, 19, 254, 0.4);
	color: #656565;
}


.neutral-badge { 
    background: rgba(255, 255, 255, 0.04); 
    color: #666; 
    border: 1px solid rgba(255, 255, 255, 0.08); 
}

/* Card Content Typography Assets */
.product-card-meta {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff; /* Name matches the purple brand identity focus layout */
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes layout data left, and cart icon right */
    gap: 6px;
    margin-top: auto; /* Locks placement seamlessly to the card base floor */
}

.price-text-group {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.product-price-row .currency {
    font-family: monospace;
    font-size: 10px;
    color: gray;
}

.product-price-row .price-val {
    font-family: 'Barlow', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: gray; /* Shifting price matrix to soft violet accents */
}

.product-card-actions {
    margin-top: 0;
}

/* Ensure the button floats at the bottom-right corner of the image frame */
.product-thumb-frame .vyxra-neon-action-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    z-index: 4; /* Keeps it above the image and floating badges */
    
    /* Maintains your compact cyberpunk circular parameters */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #11071c;
    border: 1px solid #bc13fe; /* Gives it a sharp purple base outline */
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* Subtle micro-interaction lift when hovering over the action point */
.product-thumb-frame .vyxra-neon-action-btn:hover {
    transform: scale(1.1);
    background-color: #bc13fe !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.8);
}

/* Optional clean layout adjustment for the price row underneath */
.product-card-meta .product-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 4px; /* Eliminates the wide whitespace gap since the button moved */
}

/* Injects the Cart Glyph Icon cleanly via standard CSS unicode rules */
.vyxra-neon-action-btn::before {
    content: "\f174"; 
    font-family: dashicons;
    font-weight: 900;
    font-size: 14px;
}

/* Action Hover state changes entire button canvas footprint to full purple */
.vyxra-neon-action-btn:hover {
    background-color: #bc13fe !important;
    border-color: #bc13fe !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.6);
}

/* System Engine Dynamic States Tracking Elements */
.shop-system-loading, .shop-no-results {
    color: #4b3d5a;
    font-family: monospace;
    letter-spacing: 2px;
    text-align: center;
    width: 100%;
    padding: 100px 0;
    box-sizing: border-box;
}

.shop-no-results {
    border: 1px dashed #231336;
    border-radius: 8px;
    color: #7d6b8c;
    font-size: 12px;
}

/* Responsive Adaptive Layout Scale Mechanics */
@media (max-width: 1300px) {
    .vyxra-product-card {
        flex: 0 1 calc(33.333% - 16px); /* Drops smoothly down to three grids on laptop viewports */
    }
}

@media (max-width: 900px) {
    .vyxra-products-grid {
        gap: 16px; /* Tighter layout compression parameters for tablet systems */
    }
    .vyxra-product-card {
        flex: 0 1 calc(33.333% - 11px); /* Force exactly 3 products across on tablet viewports */
        min-width: 0; /* Unlocks card sizing restrictions */
    }
    .shop-glitch-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 580px) {
    .vyxra-shop-container.layout-fullwidth {
        padding: 40px 12px !important;
    }
    .vyxra-products-grid {
        gap: 12px; /* Adaptive compact smartphone gap */
    }
    .vyxra-product-card {
        flex: 0 1 calc(50% - 6px); /* Force exactly 2 products across on mobile rows */
        min-width: 0; /* Prevents overflow matrix breaks */
        border-radius: 8px;
    }
    .product-card-meta {
        padding: 12px; /* Sleeker structural cell padding for small interfaces */
    }
    .product-title {
        font-size: 1.1rem;
    }
    .product-price-row .price-val {
        font-size: 1.1rem;
    }
    .vyxra-neon-action-btn {
        width: 36px;
        height: 36px; /* Scales down circular parameters slightly on mobiles */
    }
}