/*
Theme Name: Astra Child - ViralGear
Theme URI: https://viralgear.store
Description: Custom child theme for ViralGear.store
Author: ViralGear
Template: astra
Version: 1.0.1
*/

/* Custom ViralGear Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #1a1a1a;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #00ff88 0%, #00ccff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00ff88;
}

/* Hero Section */
.hero {
    margin-top: 70px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem 1.5rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

/* Hide all submenus by default */
.menu .sub-menu {
    display: none !important;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero-content {
    max-width: 1200px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero .highlight {
    background: linear-gradient(135deg, #00ff88 0%, #00ccff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: #b0b0b0;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.cta-btn, .btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #00ff88 0%, #00ccff 100%);
    color: #0a0a0a;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-btn:hover, .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.4);
}

/* Product Grid */
.featured {
    padding: 5rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-header p {
    color: #808080;
    font-size: 1.1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #2a2a2a;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: #00ff88;
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff0055;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-desc {
    color: #808080;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ff88;
}

/* Social Proof Section */
.social-proof {
    padding: 4rem 1.5rem;
    background: #1a1a1a;
    text-align: center;
}

.social-proof h3 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, #00ff88 0%, #00ccff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #808080;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Footer */
footer {
    padding: 3rem 1.5rem 2rem;
    background: #0a0a0a;
    border-top: 1px solid #1a1a1a;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #808080;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #00ff88;
}

.copyright {
    color: #505050;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        min-height: 80vh;
        padding-top: 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .featured {
        padding: 3rem 1rem;
    }
}

/* Change background of Cart Table Header */
.woocommerce-cart .entry-content table.shop_table thead th,
.woocommerce-cart table.shop_table thead {
    background-color: #000000;
    color: #ffffff;
    border-bottom: 1px solid #333333;
}

/* =========================================
   CHECKOUT & BILLING FIELDS (Cyan/Black)
   ========================================= */

/* 1. SECTION TITLES (Billing details, etc.) */
.woocommerce-billing-fields h3,
.woocommerce-additional-fields h3,
#order_review_heading {
    color: #05f9fa !important;
    text-transform: uppercase;
    border-bottom: 1px solid #333333;
    padding-bottom: 10px;
}

/* 2. LABELS (First Name, Country, etc.) */
.woocommerce form .form-row label {
    color: #05f9fa !important;
    font-weight: bold;
}

/* 3. INPUT FIELDS (The actual typing boxes) */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    background-color: #0a0a0a !important; /* Black Background */
    color: #ffffff !important;            /* White Text */
    border: 1px solid #05f9fa !important; /* Cyan Border */
    padding: 10px;
}

/* Change border color when you click inside (Focus) */
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border: 1px solid #ffffff !important;
    outline: none;
}

/* 4. DROPDOWNS (Country & State - The Tricky Part) */
.select2-container .select2-selection--single {
    background-color: #0a0a0a !important;
    border: 1px solid #05f9fa !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
}

/* The text inside the dropdown */
.select2-container .select2-selection--single .select2-selection__rendered {
    color: #ffffff !important;
}

/* The dropdown arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #05f9fa transparent transparent transparent !important;
    top: 50% !important;
}

/* The dropdown menu list that pops up */
.select2-dropdown {
    background-color: #0a0a0a !important;
    border: 1px solid #05f9fa !important;
}

.select2-results__option {
    color: #ffffff !important;
}

/* Highlighted option in the menu */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #05f9fa !important;
    color: #000000 !important;
}

.woocommerce-page #content.site-content {
    /* 90px = ~70px header height + 20px visual space */
    padding-top: 90px !important; 
    margin-top: 0 !important;
}

/* Ensure the banner is definitely gone if you haven't removed it via PHP yet */
.woocommerce-products-header {
    display: none !important;
}
