/* 
   TEXSNOW - Premium eCommerce Website Stylesheet
   Theme: Luxury Futuristic Cyberpunk (Black, Dark Gray, Chrome, Silver, Neon Blue Glow)
*/

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

:root {
    --bg-dark: #07070a;
    --bg-card: rgba(18, 18, 26, 0.65);
    --bg-glass: rgba(10, 10, 15, 0.75);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 180, 255, 0.2);
    
    --primary-blue: #00d2ff;
    --primary-cyan: #00f0ff;
    --accent-glow: #0080ff;
    --silver-chrome: #e2e8f0;
    --dark-silver: #a0aec0;
    
    --font-heading: 'Orbitron', sans-serif;
    --font-sub: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.15s ease-in-out;
}

/* Base resets */
body {
    background-color: var(--bg-dark);
    color: var(--silver-chrome);
    font-family: var(--font-body);
    font-size: 15px;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #030305;
}
::-webkit-scrollbar-thumb {
    background: #1a1a2e;
    border-radius: 4px;
    border: 1px solid var(--border-glow);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
    box-shadow: 0 0 10px var(--primary-cyan);
}

/* Typographical Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-weight: 700;
    color: #ffffff;
}
.sub-heading {
    font-family: var(--font-sub);
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Preloader Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease;
}
.cyber-spinner {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--primary-blue);
    animation: spin 1.5s linear infinite;
}
.cyber-spinner::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--primary-cyan);
    animation: spin 2s linear infinite;
}
.cyber-spinner::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #0055ff;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loading-logo {
    position: absolute;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 0 0 15px var(--primary-blue);
}

/* Background animated elements */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    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);
    background-size: 60px 60px;
    pointer-events: none;
}
.bg-gradient-glow {
    position: fixed;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    z-index: -3;
    background: radial-gradient(circle at 30% 20%, rgba(0, 180, 255, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(0, 240, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* Sticky Header Custom Glassmorphism */
header.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
    border-bottom: 1px solid transparent;
}
header.sticky-header.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.6rem;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    display: flex;
    align-items: center;
}
.logo-img {
    height: 40px;
    margin-right: 10px;
    filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.5));
}

.nav-link {
    font-family: var(--font-sub);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--silver-chrome) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition-smooth);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-cyan) !important;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}
.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: 0.5s;
}
.glass-card:hover::before {
    left: 100%;
}
.glass-card.neon-glow-hover:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 0 20px rgba(0, 180, 255, 0.3);
}

/* Premium Product Cards */
.product-card {
    background: rgba(18, 18, 26, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 25px rgba(0, 240, 255, 0.15);
}
.product-card .img-container {
    position: relative;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(10, 10, 15, 0.6);
    overflow: hidden;
}
.product-card .img-container img {
    max-height: 200px;
    object-fit: contain;
    transition: var(--transition-smooth);
}
.product-card:hover .img-container img {
    transform: scale(1.08);
}
.product-card .badge-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff007f, #aa00ff);
    color: #fff;
    font-family: var(--font-sub);
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.5);
    z-index: 2;
}
.product-card .quick-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(7, 7, 10, 0.85);
    backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
    z-index: 3;
}
.product-card:hover .quick-actions {
    bottom: 0;
}
.action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--silver-chrome);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    text-decoration: none;
}
.action-btn:hover {
    background: var(--primary-cyan);
    color: #000000;
    box-shadow: 0 0 10px var(--primary-cyan);
}

.product-card .details {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-card .category {
    font-family: var(--font-sub);
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--dark-silver);
    margin-bottom: 0.3rem;
}
.product-card .title {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-card .title a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition-fast);
}
.product-card .title a:hover {
    color: var(--primary-cyan);
}
.product-card .price-box {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.product-card .price {
    font-family: var(--font-heading);
    color: var(--primary-cyan);
    font-size: 1.25rem;
    font-weight: 700;
}
.product-card .old-price {
    color: var(--dark-silver);
    text-decoration: line-through;
    font-size: 0.9rem;
}

/* Buttons */
.btn-cyber {
    font-family: var(--font-sub);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 0.75rem 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-cyber-primary {
    background: linear-gradient(135deg, var(--primary-blue), #0044ff);
    border: 1px solid var(--primary-cyan);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}
.btn-cyber-primary:hover {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.7);
    color: #ffffff;
    transform: translateY(-2px);
}
.btn-cyber-secondary {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--silver-chrome);
    backdrop-filter: blur(5px);
}
.btn-cyber-secondary:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
}

/* Mouse Glow Effect Container */
.mouse-glow-container {
    position: relative;
}
.mouse-glow-target {
    position: relative;
    z-index: 2;
}

/* Three.js Hero Styling */
#hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}
#three-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}
.hero-content {
    position: relative;
    z-index: 2;
    pointer-events: none;
}
.hero-content a, .hero-content button, .hero-content input {
    pointer-events: auto;
}
.hero-badge {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    text-shadow: 0 0 5px var(--primary-cyan);
    border-radius: 30px;
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}
.hero-title span {
    color: transparent;
    -webkit-text-stroke: 1px #ffffff;
    background: linear-gradient(135deg, #ffffff, var(--primary-cyan));
    -webkit-background-clip: text;
    background-clip: text;
}
.hero-desc {
    font-size: 1.15rem;
    color: var(--dark-silver);
    max-width: 550px;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* PC Builder step flow */
.builder-steps {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-glass);
}
.builder-step-tab {
    flex: 0 0 auto;
    padding: 10px 18px;
    border-radius: 8px;
    background: rgba(18, 18, 26, 0.6);
    border: 1px solid var(--border-glass);
    color: var(--silver-chrome);
    font-family: var(--font-sub);
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.builder-step-tab.active {
    background: rgba(0, 210, 255, 0.15);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}
.builder-step-tab.completed {
    border-color: rgba(0, 255, 128, 0.3);
    color: #00ff80;
}

/* PC Builder UI */
.builder-status-panel {
    position: sticky;
    top: 100px;
}
.meter-bar {
    width: 100%;
    height: 10px;
    background: #111116;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
}
.meter-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00d2ff, #00f0ff);
    box-shadow: 0 0 8px var(--primary-cyan);
    transition: width 0.5s ease;
}

/* live AJAX search panel */
.search-results-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--primary-blue);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 1050;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    transition: var(--transition-fast);
}
.search-result-item:hover {
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary-cyan);
}
.search-result-item img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

/* Timelines for Order Tracking */
.timeline-track {
    position: relative;
    border-left: 2px solid var(--border-glass);
    padding-left: 30px;
    margin-left: 15px;
}
.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -41px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--border-glass);
    transition: var(--transition-smooth);
}
.timeline-item.active::before {
    border-color: var(--primary-cyan);
    background: var(--primary-cyan);
    box-shadow: 0 0 12px var(--primary-cyan);
}
.timeline-time {
    font-family: var(--font-sub);
    font-size: 0.9rem;
    color: var(--primary-cyan);
    font-weight: 700;
}

/* Brands Slider animation */
.brands-row {
    display: flex;
    overflow: hidden;
    gap: 40px;
    align-items: center;
    padding: 20px 0;
}
.brands-slide {
    display: flex;
    gap: 60px;
    animation: scrollBrands 20s linear infinite;
}
.brand-logo-item {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.2rem;
    color: rgba(255,255,255,0.15);
    text-shadow: 0 0 2px rgba(255,255,255,0.05);
    transition: var(--transition-smooth);
    user-select: none;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.brand-logo-item:hover {
    color: var(--primary-cyan);
    text-shadow: 0 0 12px var(--primary-cyan);
}
@keyframes scrollBrands {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Product Detail Zoom Frame */
.zoom-container {
    overflow: hidden;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    background: rgba(10, 10, 15, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}
.zoom-container img {
    max-height: 400px;
    object-fit: contain;
    transition: transform 0.15s ease-out;
    cursor: zoom-in;
}

/* Admin Dashboard sidebar and custom cards */
.admin-sidebar {
    background: rgba(10, 10, 15, 0.95);
    border-right: 1px solid var(--border-glass);
    min-height: 100vh;
    padding-top: 20px;
}
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--silver-chrome);
    text-decoration: none;
    font-family: var(--font-sub);
    font-weight: 600;
    border-left: 3px solid transparent;
    transition: var(--transition-smooth);
}
.admin-nav-link:hover, .admin-nav-link.active {
    background: rgba(0, 240, 255, 0.05);
    color: var(--primary-cyan);
    border-left-color: var(--primary-cyan);
}

/* Custom Table Dark styles */
.table-cyber {
    background: rgba(18, 18, 26, 0.7);
    color: var(--silver-chrome);
    border: 1px solid var(--border-glass);
}
.table-cyber th {
    background: rgba(10, 10, 15, 0.9);
    border-bottom: 2px solid var(--border-glow);
    font-family: var(--font-sub);
    font-size: 1.05rem;
    color: #fff;
}
.table-cyber td {
    border-bottom: 1px solid var(--border-glass);
    vertical-align: middle;
}

/* Cart Page Styles */
.cart-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    width: fit-content;
    overflow: hidden;
}
.cart-qty-btn {
    background: var(--bg-card);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
}
.cart-qty-btn:hover {
    background: var(--primary-cyan);
    color: #000;
}
.cart-qty-input {
    width: 45px;
    background: transparent;
    border: none;
    text-align: center;
    color: #fff;
    font-weight: 600;
}

/* Utility grid light lines */
.grid-lines-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.horizontal-glow-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    animation: scanLine 8s linear infinite;
}
@keyframes scanLine {
    0% { top: -10%; }
    100% { top: 110%; }
}
