@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Space+Grotesk:wght@400;500;700&family=Inter:wght@400;500;600&display=swap');

:root {
    --cyber-bg: #07090e;
    --cyber-bg-alt: #0d1117;
    --cyber-card-bg: rgba(13, 17, 23, 0.75);
    --cyber-cyan: #00f0ff;
    --cyber-cyan-glow: rgba(0, 240, 255, 0.35);
    --cyber-orange: #ff6b00;
    --cyber-orange-glow: rgba(255, 107, 0, 0.45);
    --cyber-text: #abb2bf;
    --cyber-text-white: #ffffff;
    --cyber-text-muted: #5c6370;
    --cyber-border: rgba(0, 240, 255, 0.18);
    --cyber-border-hover: rgba(0, 240, 255, 0.75);
}

/* ==========================================================================
   1. Theme & Container Overrides (Bypassing theme limits)
   ========================================================================== */
body, 
.site, 
#page,
.site-content {
    background-color: var(--cyber-bg) !important;
    background-image: linear-gradient(rgba(0, 240, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 240, 255, 0.02) 1px, transparent 1px) !important;
    background-size: 40px 40px !important;
    color: var(--cyber-text) !important;
    font-family: 'Inter', sans-serif !important;
}

/* Remove all white backgrounds in core theme wrappers */
#primary,
#main,
.ast-container,
.site-content,
#content {
    background-color: transparent !important;
}

/* Break out of standard theme container widths on Home */
body.home .site-content .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
}
body.home #primary {
    margin: 0 !important;
    padding: 0 !important;
}
body.home .entry-content {
    margin: 0 !important;
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title,
.woocommerce-loop-product__title,
.woocommerce-column__title,
.widget-title {
    font-family: 'Orbitron', sans-serif !important;
    color: var(--cyber-text-white) !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

/* Header & Navigation custom tech bar */
.site-header,
.main-header-bar,
.ast-menu-toggle {
    background-color: rgba(7, 9, 14, 0.95) !important;
    border-bottom: 2px solid var(--cyber-border) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.main-navigation a,
.main-header-menu a,
.ast-site-identity .site-title a {
    color: var(--cyber-text-white) !important;
    font-family: 'Space Grotesk', sans-serif !important;
    transition: all 0.3s ease !important;
}

.main-navigation a:hover,
.main-header-menu a:hover {
    color: var(--cyber-cyan) !important;
    text-shadow: 0 0 8px var(--cyber-cyan-glow) !important;
}

/* Specific reset for Astra search button and fields to prevent floating */
.ast-search-menu-item input[type="submit"],
.search-form input[type="submit"],
.ast-search-box input[type="submit"],
.widget_search input[type="submit"] {
    background: var(--cyber-orange) !important;
    color: var(--cyber-text-white) !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    height: auto !important;
    width: auto !important;
    font-size: 12px !important;
    box-shadow: none !important;
    line-height: 1.2 !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700 !important;
    position: static !important;
    margin: 0 !important;
    border: none !important;
}

.ast-search-menu-item .search-form,
.ast-search-menu-item {
    display: flex !important;
    align-items: center !important;
}

/* ==========================================================================
   2. Interactive Slider Hero Banner (Homepage)
   ========================================================================== */
.cyber-homepage {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

.cyber-slider-hero {
    position: relative;
    height: 580px;
    background-color: var(--cyber-bg-alt) !important;
    border: 2px solid var(--cyber-border) !important;
    border-radius: 24px !important;
    margin: 40px 0 60px 0 !important;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6) !important;
}

/* Slides track */
.cyber-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cyber-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.2s ease-in-out;
}

.cyber-slide.active {
    opacity: 1;
    z-index: 2;
}

.cyber-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(7, 9, 14, 0.6) 0%, rgba(7, 9, 14, 0.85) 100%) !important;
    z-index: 3;
}

.cyber-slider-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0.15) 0px, rgba(0,0,0,0.15) 1px, transparent 1px, transparent 3px) !important;
    z-index: 4;
    pointer-events: none;
}

/* Overlaid Content */
.cyber-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    max-width: 820px;
    width: 90%;
    text-align: center;
}

.cyber-glitch-title {
    font-size: 58px !important;
    font-weight: 900 !important;
    color: var(--cyber-text-white) !important;
    text-shadow: 0 0 15px var(--cyber-cyan-glow), 0 0 30px rgba(0, 240, 255, 0.2) !important;
    letter-spacing: 5px !important;
    margin-bottom: 15px !important;
}

.cyber-subtitle {
    font-family: 'Space Grotesk', sans-serif !important;
    color: var(--cyber-cyan) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    letter-spacing: 6px !important;
    margin-bottom: 25px !important;
    text-transform: uppercase;
}

.cyber-badge-container {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
    margin-bottom: 25px !important;
}

.cyber-badge {
    padding: 8px 18px !important;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 30px !important;
    letter-spacing: 1px !important;
    display: inline-block !important;
}

.badge-cyan {
    background: rgba(0, 240, 255, 0.1) !important;
    border: 1px solid var(--cyber-cyan) !important;
    color: var(--cyber-cyan) !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.2) !important;
}

.badge-orange {
    background: rgba(255, 107, 0, 0.1) !important;
    border: 1px solid var(--cyber-orange) !important;
    color: var(--cyber-orange) !important;
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.2) !important;
}

.cyber-description {
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: var(--cyber-text-white) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8) !important;
    max-width: 700px !important;
    margin: 0 auto 35px auto !important;
}

.cyber-hero-buttons {
    display: flex !important;
    justify-content: center !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
}

/* Dots Navigation */
.cyber-slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    gap: 12px;
}

.cyber-slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--cyber-cyan);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px var(--cyber-cyan-glow);
}

.cyber-slider-dots .dot.active {
    background: var(--cyber-cyan);
    box-shadow: 0 0 12px var(--cyber-cyan);
    transform: scale(1.15);
}

/* ==========================================================================
   3. Interactive Features Grid
   ========================================================================== */
.cyber-features {
    margin-bottom: 85px !important;
}

.cyber-section-header {
    text-align: center;
    margin: 60px 0 40px 0;
}

.cyber-section-header h2 {
    font-size: 24px !important;
    letter-spacing: 3px !important;
    margin-bottom: 15px !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.cyber-divider {
    display: inline-block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cyber-cyan), transparent);
    box-shadow: 0 0 8px var(--cyber-cyan);
}

.cyber-features-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    margin-top: 30px !important;
}

.cyber-feature-card {
    background: var(--cyber-card-bg) !important;
    border: 2px solid var(--cyber-border) !important;
    border-radius: 20px !important;
    padding: 35px 25px !important;
    text-align: center !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 12px 35px rgba(0,0,0,0.5) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.cyber-feature-card:hover {
    border-color: var(--cyber-cyan) !important;
    box-shadow: 0 0 20px var(--cyber-cyan-glow) !important;
    transform: translateY(-5px) !important;
}

.cyber-feature-card .feature-icon {
    font-size: 42px !important;
    margin-bottom: 20px !important;
    filter: drop-shadow(0 0 8px var(--cyber-cyan-glow));
}

.cyber-feature-card h3 {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 18px !important;
    color: var(--cyber-text-white) !important;
    margin-bottom: 12px !important;
    letter-spacing: 1px !important;
}

.cyber-feature-card p {
    font-size: 14px !important;
    color: var(--cyber-text) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* ==========================================================================
   4. Custom Product Catalog & Grid Layout
   ========================================================================== */
.cyber-catalog {
    margin-bottom: 80px !important;
}

.cyber-product-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    margin-top: 40px !important;
}

.cyber-product-card {
    position: relative !important;
    background: var(--cyber-card-bg) !important;
    border: 2px solid var(--cyber-border) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 12px 35px rgba(0,0,0,0.5) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    display: flex !important;
    flex-direction: column !important;
}

.cyber-product-card:hover {
    border-color: var(--cyber-cyan) !important;
    box-shadow: 0 0 30px var(--cyber-cyan-glow) !important;
    transform: translateY(-8px) !important;
}

.cyber-product-image-wrapper {
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-bottom: 2px solid rgba(0, 240, 255, 0.1) !important;
    min-height: 240px !important;
}

.cyber-product-image {
    max-height: 200px !important;
    width: auto !important;
    object-fit: contain !important;
    transition: all 0.5s ease !important;
}

.cyber-product-card:hover .cyber-product-image {
    transform: scale(1.06) !important;
}

.cyber-product-info {
    padding: 25px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.cyber-product-sku {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 11px !important;
    color: var(--cyber-orange) !important;
    letter-spacing: 1px !important;
    margin-bottom: 10px !important;
    display: block !important;
    text-shadow: 0 0 5px var(--cyber-orange-glow);
}

.cyber-product-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    min-height: 48px !important;
    line-height: 1.4 !important;
}

.cyber-product-title a {
    color: var(--cyber-text-white) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.cyber-product-title a:hover {
    color: var(--cyber-cyan) !important;
    text-shadow: 0 0 8px var(--cyber-cyan-glow);
}

.cyber-product-price {
    font-size: 22px !important;
    margin-bottom: 20px !important;
}

.cyber-product-price .price,
.cyber-product-price ins,
.cyber-product-price ins .amount {
    color: var(--cyber-cyan) !important;
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 700 !important;
    text-shadow: 0 0 8px var(--cyber-cyan-glow) !important;
    text-decoration: none !important;
}

.cyber-product-price del,
.cyber-product-price del .amount {
    color: var(--cyber-text-muted) !important;
    font-size: 14px !important;
    margin-right: 8px !important;
}

.cyber-product-actions {
    display: flex !important;
    gap: 12px !important;
    margin-top: auto !important;
}

/* ==========================================================================
   5. Premium Overrides for WooCommerce Buttons (Site Content Only)
   ========================================================================== */
.site-content .button, 
.site-content .btn, 
.woocommerce-button,
.add_to_cart_button, 
.single_add_to_cart_button,
.checkout-button,
.woocommerce input[type="submit"],
.woocommerce-page input[type="submit"],
.cyber-homepage .button,
#order_review input[type="submit"],
.woocommerce-cart-form input[type="submit"] {
    background: linear-gradient(135deg, var(--cyber-orange), #ff9e00) !important;
    color: var(--cyber-text-white) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    padding: 14px 28px !important;
    box-shadow: 0 4px 18px var(--cyber-orange-glow) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center;
}

.site-content .button:hover, 
.site-content .btn:hover, 
.woocommerce-button:hover,
.add_to_cart_button:hover, 
.single_add_to_cart_button:hover,
.checkout-button:hover,
.woocommerce input[type="submit"]:hover,
.woocommerce-page input[type="submit"]:hover,
.cyber-homepage .button:hover,
#order_review input[type="submit"]:hover,
.woocommerce-cart-form input[type="submit"]:hover {
    background: linear-gradient(135deg, #ff9e00, var(--cyber-orange)) !important;
    box-shadow: 0 0 25px var(--cyber-orange-glow) !important;
    transform: translateY(-2px) !important;
    color: var(--cyber-text-white) !important;
}

.cyber-card-btn {
    background: transparent !important;
    border: 2px solid var(--cyber-cyan) !important;
    color: var(--cyber-cyan) !important;
    box-shadow: none !important;
    padding: 12px 18px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
}

.cyber-card-btn:hover {
    background: rgba(0, 240, 255, 0.12) !important;
    box-shadow: 0 0 15px var(--cyber-cyan-glow) !important;
    color: var(--cyber-text-white) !important;
}

.cyber-product-actions .add_to_cart_button {
    flex-grow: 1 !important;
    padding: 12px 18px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
}

.cyber-no-products {
    background: rgba(255, 107, 0, 0.05) !important;
    border: 2px dashed var(--cyber-orange) !important;
    border-radius: 12px !important;
    padding: 40px !important;
    text-align: center !important;
    max-width: 600px !important;
    margin: 40px auto !important;
}

.cyber-warning-text {
    font-family: 'Orbitron', sans-serif !important;
    color: var(--cyber-orange) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    margin-bottom: 10px !important;
}

/* ==========================================================================
   5. WooCommerce Single Product Layout Override
   ========================================================================== */
.single-product div.product {
    background: var(--cyber-card-bg) !important;
    border: 2px solid var(--cyber-border) !important;
    border-radius: 24px !important;
    padding: 40px !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6) !important;
    margin-top: 40px !important;
}

.single-product div.product .summary {
    border-left: 3px solid var(--cyber-cyan) !important;
    padding-left: 35px !important;
}

.single-product div.product .product_title {
    font-size: 34px !important;
    line-height: 1.3 !important;
    margin-bottom: 20px !important;
    text-shadow: 0 0 15px var(--cyber-cyan-glow) !important;
}

.single-product div.product .price,
.single-product div.product .price .amount {
    font-size: 28px !important;
    color: var(--cyber-cyan) !important;
    text-shadow: 0 0 12px var(--cyber-cyan-glow) !important;
    margin-bottom: 25px !important;
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 700;
}

.single-product div.product .woocommerce-product-details__short-description {
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: var(--cyber-text) !important;
    margin-bottom: 30px !important;
}

/* Quantity selector and Cart alignment */
.single-product div.product form.cart {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 40px !important;
}

.single-product div.product form.cart .quantity input.qty {
    background-color: var(--cyber-bg-alt) !important;
    border: 2px solid var(--cyber-border) !important;
    border-radius: 8px !important;
    color: var(--cyber-text-white) !important;
    height: 52px !important;
    width: 70px !important;
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 700 !important;
    text-align: center !important;
}

.single-product div.product form.cart .single_add_to_cart_button {
    height: 52px !important;
    margin-top: 0 !important;
    flex-grow: 1 !important;
}

/* Metadata lists */
.single-product div.product .product_meta {
    border-top: 1px dashed var(--cyber-border) !important;
    padding-top: 20px !important;
    font-size: 13px !important;
    color: var(--cyber-text-muted) !important;
}

.single-product div.product .product_meta span {
    display: block !important;
    margin-bottom: 8px !important;
}

.single-product div.product .product_meta span strong,
.single-product div.product .product_meta a {
    color: var(--cyber-cyan) !important;
}

/* Description Tabs */
.woocommerce-tabs {
    margin-top: 50px !important;
    border-top: 2px solid var(--cyber-border) !important;
    padding-top: 40px !important;
}

.woocommerce-tabs ul.tabs {
    border-bottom: 2px solid var(--cyber-border) !important;
    margin-bottom: 30px !important;
}

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

.woocommerce-tabs ul.tabs li a {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: var(--cyber-text-muted) !important;
    transition: all 0.3s ease !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--cyber-cyan) !important;
    text-shadow: 0 0 8px var(--cyber-cyan-glow) !important;
}

.woocommerce-tabs .woocommerce-Tabs-panel {
    background: rgba(13, 17, 23, 0.4) !important;
    border: 2px solid var(--cyber-border) !important;
    border-radius: 16px !important;
    padding: 35px !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

/* ==========================================================================
   6. Premium Dark Footer Styling Override (Compacted & Overrides White Borders)
   ========================================================================== */
.site-footer,
#colophon,
.ast-footer-overlay,
.ast-small-footer,
.ast-small-footer-wrap,
.ast-small-footer-section,
.site-footer-section,
.ast-footer-row,
.ast-footer-row-inline,
[class*="ast-footer-"],
.ast-small-footer-wrap[data-section="section-footer-builder"] {
    background-color: #050608 !important;
    background-image: none !important;
    color: var(--cyber-text-muted) !important;
    border-top: 2px solid var(--cyber-border) !important;
    padding: 15px 0 !important;
    margin: 0 !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.site-footer-wrap,
.ast-site-footer-layout,
#colophon * {
    background-color: transparent !important;
}

.ast-small-footer a,
.site-footer a,
.site-footer-section a {
    color: var(--cyber-cyan) !important;
    text-decoration: none !important;
}

.ast-small-footer a:hover,
.site-footer a:hover,
.site-footer-section a:hover {
    color: var(--cyber-text-white) !important;
    text-shadow: 0 0 5px var(--cyber-cyan-glow) !important;
}

/* ==========================================================================
   7. Custom Scrollbar for Futuristic Touch
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--cyber-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--cyber-bg-alt);
    border-radius: 4px;
    border: 1px solid var(--cyber-cyan);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--cyber-cyan);
}
