/*
Theme Name: YYDS Cyberpunk Theme
Theme URI: http://example.com/yyds-cyberpunk
Author: YYDS Vape
Author URI: http://example.com
Description: A standalone, high-performance Cyberpunk theme with native React Homepage and WooCommerce support.
Version: 3.8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yyds-cyberpunk
Tags: e-commerce, two-columns, custom-colors
*/

/* ==========================================================================
   1. Global Reset & Typography
   ========================================================================== */
:root {
    --yyds-neon-pink: #ff00ff;
    --yyds-neon-blue: #00ffff;
    --yyds-neon-green: #39ff14;
    --yyds-neon-yellow: #f0f006;
    --yyds-cyber-black: #050505;
    --yyds-cyber-gray: #121212;
    --yyds-border: #27272a;
    --yyds-text: #e4e4e7;
}

body {
    background-color: var(--yyds-cyber-black);
    color: var(--yyds-text);
    font-family: 'Rajdhani', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    color: var(--yyds-neon-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--yyds-neon-pink);
}

/* ==========================================================================
   2. Layout
   ========================================================================== */
.site-header {
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid var(--yyds-neon-blue);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 80vh;
}

.site-footer {
    background: var(--yyds-cyber-gray);
    border-top: 1px solid var(--yyds-border);
    padding: 2rem;
    text-align: center;
    color: #666;
}

/* ==========================================================================
   3. WooCommerce Overrides (Dark Mode)
   ========================================================================== */
/* Wrappers */
.woocommerce-page .site-content {
    background: var(--yyds-cyber-black);
}

/* Buttons */
.woocommerce button.button,
.woocommerce a.button,
.woocommerce #respond input#submit,
.woocommerce input.button {
    background-color: var(--yyds-neon-blue) !important;
    color: #000 !important;
    font-family: 'Orbitron', sans-serif !important;
    text-transform: uppercase;
    border-radius: 0 !important;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    font-weight: bold;
    border: none;
    transition: all 0.3s ease;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce input.button:hover {
    background-color: var(--yyds-neon-pink) !important;
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--yyds-neon-pink);
}

/* ==========================================================================
   3. WooCommerce Overrides (Aggressive Cyberpunk)
   ========================================================================== */

/* Page Padding for Fixed Navbar */
.woocommerce-page .site-content,
.archive.woocommerce .site-content,
.single-product.woocommerce .site-content {
    padding-top: 140px !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    background: transparent !important;
}

body.woocommerce-page {
    background: #000 !important;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 0, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.05) 0%, transparent 40%) !important;
    background-attachment: fixed !important;
}

/* Hide breadcrumbs */
.woocommerce-breadcrumb {
    display: none !important;
}

.woocommerce-page,
.woocommerce {
    color: #e0e0e0 !important;
}

.woocommerce-products-header__title {
    font-family: 'Orbitron', sans-serif !important;
    font-size: clamp(3rem, 8vw, 5rem) !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    color: #fff !important;
    text-align: center !important;
    margin-bottom: 3rem !important;
    letter-spacing: -3px !important;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.6) !important;
    position: relative;
}

/* Hide Native WooCommerce Loop if it leaks through hooks */
.woocommerce ul.products:not(.yyds-react-grid-wrapper ul),
.woocommerce-page ul.products:not(.yyds-react-grid-wrapper ul) {
    display: none !important;
}

/* Force React Grid Mounting Point */
.yyds-react-grid-wrapper {
    margin-top: 2rem;
    display: block !important;
    clear: both !important;
    width: 100% !important;
    animation: fadeIn 1s ease-out;
}

/* Grid for the React components - FORCE 4 COLUMNS on Desktop */
.yyds-shop-grid-inner {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    width: 100% !important;
    margin-top: 2rem;
}

.yyds-shop-card-item {
    min-height: 520px !important;
    background: rgba(15, 15, 20, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.yyds-shop-card-item:hover {
    border-color: var(--yyds-neon-blue);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

@media (max-width: 1200px) {
    .yyds-shop-grid-inner {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .yyds-shop-grid-inner {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .yyds-shop-grid-inner {
        grid-template-columns: 1fr !important;
    }
}

/* Clean up Single Product page overlapping issues */
.single-product .summary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback/Legacy Shop List Styles (if React doesn't load) */
.woocommerce ul.products li.product {
    background: rgba(10, 10, 10, 0.8) !important;
    border: 1px solid #222 !important;
    padding: 2rem !important;
    transition: all 0.4s ease !important;
}

.woocommerce ul.products li.product:hover {
    border-color: var(--yyds-neon-blue) !important;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2) !important;
    transform: translateY(-5px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Orbitron', sans-serif !important;
    color: #fff !important;
}

/* ==========================================================================
   Single Product Page - DEEP SYNC
   ========================================================================== */
.single-product div.product {
    background: rgba(10, 10, 15, 0.95) !important;
    border: 1px solid #1a1a1a !important;
    padding: 3rem !important;
    position: relative !important;
    margin-top: 2rem !important;
}

.single-product div.product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--yyds-neon-blue), var(--yyds-neon-pink)) !important;
    z-index: 10;
}

.single-product .product_title {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 3rem !important;
    font-weight: 900 !important;
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.4) !important;
}

.single-product .price {
    font-family: 'Share Tech Mono', monospace !important;
    font-size: 2.5rem !important;
    color: var(--yyds-neon-green) !important;
}

.single-product .woocommerce-product-details__short-description {
    border-left: 2px solid var(--yyds-neon-blue) !important;
    padding-left: 20px !important;
    font-size: 1.1rem !important;
    color: #aaa !important;
}

/* Style Add to Cart button in Single Product */
.single-product .single_add_to_cart_button {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid var(--yyds-neon-pink) !important;
    height: 60px !important;
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    padding: 0 40px !important;
}

.single-product .single_add_to_cart_button:hover {
    background: var(--yyds-neon-pink) !important;
    color: #000 !important;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.6) !important;
}

/* Quantity Input */
.quantity input {
    background: #000 !important;
    color: var(--yyds-neon-blue) !important;
    border: 1px solid #333 !important;
    height: 60px !important;
}

/* Tabs & Other Details */
.woocommerce-tabs ul.tabs {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid #333 !important;
    border-radius: 0 !important;
}

.woocommerce-tabs ul.tabs li.active {
    border-bottom: 2px solid var(--yyds-neon-blue) !important;
}

.woocommerce-tabs ul.tabs li a {
    color: #888 !important;
    font-family: 'Orbitron', sans-serif !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--yyds-neon-blue) !important;
}

/* CART & CHECKOUT PAGES */
.woocommerce-cart table.cart,
.woocommerce-checkout form.checkout {
    background: rgba(10, 10, 15, 0.8) !important;
    border: 1px solid #222 !important;
    padding: 2rem !important;
}

.woocommerce table.shop_table {
    border: 1px solid #222 !important;
    border-radius: 0 !important;
}

.woocommerce table.shop_table th {
    background: #000 !important;
    color: var(--yyds-neon-blue) !important;
    text-transform: uppercase !important;
    font-family: 'Orbitron' !important;
}

.woocommerce table.shop_table td {
    border-top: 1px solid #222 !important;
    color: #fff !important;
}

/* Notifications / Notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    border-top: 3px solid var(--yyds-neon-blue) !important;
    background: #050510 !important;
    color: #fff !important;
    font-family: 'Share Tech Mono', monospace !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--yyds-neon-blue) !important;
}

/* Sale Badge */
.woocommerce span.onsale {
    background: var(--yyds-neon-pink) !important;
    color: #fff !important;
    border-radius: 0 !important;
    font-family: 'Share Tech Mono', monospace;
    padding: 5px 10px !important;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1 !important;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%, 0% 20%);
}

/* ==========================================================================
   5. React Shop Grid Wrapper
   ========================================================================== */
.yyds-react-grid-wrapper {
    background: transparent;
    padding: 2rem 0;
}

/* Ensure proper spacing for WooCommerce notices above grid */
.woocommerce-notices-wrapper {
    margin-bottom: 2rem;
}

/* ==========================================================================
   6. Single Product Page Cyberpunk Styles
   ========================================================================== */

/* Product Main Container */
.single-product .product {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid #1a1a1a;
    border-radius: 0;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 1);
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.single-product .product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--yyds-neon-blue), var(--yyds-neon-pink), transparent);
    z-index: 10;
}

/* Diagonal Decorative Corner */
.single-product .product::after {
    content: 'MODEL_PRO_V3';
    position: absolute;
    top: -10px;
    right: -40px;
    background: var(--yyds-neon-pink);
    color: #000;
    padding: 15px 50px 5px;
    transform: rotate(45deg);
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    z-index: 20;
}

/* Product Images Container */
.single-product .woocommerce-product-gallery {
    border: 1px solid #333;
    background: #050505;
    padding: 1rem;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.single-product .woocommerce-product-gallery::before {
    content: '';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--yyds-neon-blue);
    border-bottom: 2px solid var(--yyds-neon-blue);
}

.single-product .woocommerce-product-gallery__image img {
    border-radius: 0 !important;
    transition: transform 0.5s ease;
}

.single-product .woocommerce-product-gallery__image:hover img {
    transform: scale(1.05);
}

/* Product Summary Area */
.single-product .summary {
    background: transparent;
    padding: 1rem 2rem;
}

.single-product .product_title {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 3rem !important;
    font-weight: 900 !important;
    color: #fff !important;
    text-transform: uppercase;
    margin-bottom: 0.5rem !important;
    letter-spacing: -1px;
    line-height: 1.1 !important;
    position: relative;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.4);
}

.single-product .price {
    font-family: 'Share Tech Mono', monospace !important;
    font-size: 2.2rem !important;
    color: var(--yyds-neon-green) !important;
    margin-bottom: 2rem !important;
    display: flex;
    align-items: center;
    gap: 15px;
}

.single-product .price del {
    font-size: 1.3rem !important;
    opacity: 0.4;
    color: #fff !important;
}

.single-product .price ins {
    text-decoration: none !important;
}

/* Short Description */
.woocommerce-product-details__short-description {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 2.5rem;
    padding-left: 15px;
    border-left: 2px solid var(--yyds-neon-blue);
}

/* Add to Cart Section */
.single-product .cart {
    background: rgba(20, 20, 20, 0.8);
    padding: 2.5rem;
    border: 1px dashed #444;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 20px;
}

.single-product .quantity {
    margin-bottom: 0 !important;
}

.single-product .quantity input {
    background: #000 !important;
    color: var(--yyds-neon-blue) !important;
    border: 1px solid var(--yyds-neon-blue) !important;
    height: 60px !important;
    font-family: 'Share Tech Mono', monospace !important;
    font-weight: bold !important;
    padding: 0 15px !important;
    width: 80px !important;
    font-size: 1.2rem !important;
}

.single-product .single_add_to_cart_button {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid var(--yyds-neon-pink) !important;
    border-radius: 0 !important;
    padding: 0 40px !important;
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    height: 60px !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.2) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-product .single_add_to_cart_button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--yyds-neon-pink);
    z-index: -1;
    transition: left 0.3s ease;
}

.single-product .single_add_to_cart_button:hover {
    color: #000 !important;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.6) !important;
}

.single-product .single_add_to_cart_button:hover::before {
    left: 0;
}

/* Tabs */
.woocommerce-tabs ul.tabs {
    padding: 0 !important;
    margin: 4rem 0 0 !important;
    border: none !important;
    display: flex !important;
    background: transparent !important;
}

.woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid #333 !important;
    margin: 0 !important;
    padding: 15px 30px !important;
    border-radius: 0 !important;
}

.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.woocommerce-tabs ul.tabs li a {
    color: #666 !important;
    font-family: 'Orbitron', sans-serif !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px;
}

.woocommerce-tabs ul.tabs li.active {
    border-bottom: 3px solid var(--yyds-neon-pink) !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--yyds-neon-pink) !important;
}

.woocommerce-Tabs-panel {
    background: rgba(15, 15, 15, 0.5);
    padding: 3rem !important;
    border: 1px solid #1a1a1a;
    border-top: none;
    color: #bbb;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Related Products */
.related.products {
    margin-top: 6rem !important;
    border-top: 1px solid #222;
    padding-top: 4rem;
}

.related.products h2 {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 2rem !important;
    color: #fff !important;
    text-transform: uppercase;
    margin-bottom: 3rem !important;
    text-align: center;
}

/* Fix Notice Colors */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    border-top: 3px solid var(--yyds-neon-green) !important;
    background: #050510 !important;
    color: #fff !important;
    font-family: 'Share Tech Mono', monospace !important;
    border-radius: 0 !important;
}

.woocommerce-message a.button {
    background: var(--yyds-neon-green) !important;
    color: #000 !important;
    border-radius: 0 !important;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
}

/* Product Meta */
.single-product .product_meta {
    background: #000;
    padding: 1rem;
    border: 1px solid #333;
    margin-top: 2rem;
    font-family: 'Rajdhani', sans-serif;
}

.single-product .product_meta>span {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #222;
    color: #888;
}

.single-product .product_meta>span:last-child {
    border-bottom: none;
}

.single-product .product_meta a {
    color: var(--yyds-neon-blue) !important;
    text-decoration: none;
}

.single-product .product_meta a:hover {
    color: var(--yyds-neon-pink) !important;
}

/* Add to Cart Button on Single Product */
.single-product .single_add_to_cart_button {
    width: 100% !important;
    padding: 1.5rem !important;
    font-size: 1.2rem !important;
    margin-top: 1.5rem !important;
    background: var(--yyds-neon-green) !important;
    color: #000 !important;
    border: none !important;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%) !important;
    transition: all 0.3s ease !important;
}

.single-product .single_add_to_cart_button:hover {
    background: var(--yyds-neon-pink) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 0 20px var(--yyds-neon-pink) !important;
}

/* Quantity Input */
.single-product .quantity input {
    background: #000 !important;
    border: 1px solid var(--yyds-neon-blue) !important;
    color: #fff !important;
    padding: 0.5rem !important;
    text-align: center;
    font-family: 'Share Tech Mono', monospace;
}

/* Product Tabs */
.single-product .woocommerce-tabs {
    background: #0a0a0a;
    border: 1px solid #333;
    margin-top: 3rem;
    padding: 0;
}

.single-product .woocommerce-tabs ul.tabs {
    background: #000 !important;
    border-bottom: 2px solid var(--yyds-neon-blue) !important;
    padding: 0 !important;
    margin: 0 !important;
}

.single-product .woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
}

.single-product .woocommerce-tabs ul.tabs li a {
    color: #888 !important;
    font-family: 'Orbitron', sans-serif !important;
    text-transform: uppercase;
    padding: 1rem 2rem !important;
    border: none !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a {
    color: var(--yyds-neon-blue) !important;
    background: rgba(0, 255, 255, 0.1) !important;
}

.single-product .woocommerce-tabs .panel {
    background: #0a0a0a;
    padding: 2rem;
    color: #ccc;
    font-family: 'Rajdhani', sans-serif;
}

/* Related Products */
.single-product .related.products {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #333;
}

.single-product .related.products h2 {
    font-family: 'Orbitron', sans-serif !important;
    color: var(--yyds-neon-pink) !important;
    text-transform: uppercase;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
    font-family: 'Share Tech Mono', monospace !important;
    color: #666 !important;
    padding: 1rem 0;
    font-size: 0.9rem;
}

.woocommerce-breadcrumb a {
    color: var(--yyds-neon-blue) !important;
}

.woocommerce-breadcrumb a:hover {
    color: var(--yyds-neon-pink) !important;
}