/* CyberCircuits - Giao diện Dark Mode Cyberpunk Ultra-Premium */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Orbitron:wght@400;600;700;800;900&display=swap');

:root {
    --bg-main: #060913;
    --bg-card: rgba(15, 23, 42, 0.72);
    --bg-card-hover: rgba(20, 30, 55, 0.85);
    --bg-header: rgba(6, 9, 19, 0.88);
    
    --color-primary: #00f0ff; /* Neon Cyan */
    --color-primary-glow: rgba(0, 240, 255, 0.4);
    --color-secondary: #bd00ff; /* Neon Purple */
    --color-secondary-glow: rgba(189, 0, 255, 0.4);
    --color-accent: #3b82f6; /* Electric Blue */
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-border: rgba(0, 240, 255, 0.18);
    --color-border-hover: rgba(0, 240, 255, 0.5);
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-tech: 'Orbitron', monospace, sans-serif;
    
    --shadow-cyan: 0 0 20px rgba(0, 240, 255, 0.3);
    --shadow-purple: 0 0 20px rgba(189, 0, 255, 0.3);
    --shadow-card: 0 12px 32px -8px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(at 15% 15%, rgba(0, 240, 255, 0.06) 0px, transparent 45%),
        radial-gradient(at 85% 85%, rgba(189, 0, 255, 0.06) 0px, transparent 45%),
        radial-gradient(at 50% 50%, rgba(59, 130, 246, 0.03) 0px, transparent 60%);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ambient Background Glow Mesh */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(600px at 50% -100px, rgba(0, 240, 255, 0.08), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    background: transparent;
    border: none;
    color: inherit;
}

/* Force dark color-scheme on all selects so OS dropdown is dark on Windows */
select {
    color-scheme: dark;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
    box-shadow: var(--shadow-cyan);
}

/* Layout Elements */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header & Navigation */
header {
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-family: var(--font-tech);
    font-size: 1.45rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
    white-space: nowrap;
}

.logo i {
    color: var(--color-primary);
    -webkit-text-fill-color: initial;
}

/* Header Search Box */
.header-search-bar {
    flex-grow: 1;
    max-width: 420px;
    position: relative;
}

.header-search-input {
    width: 100%;
    background: rgba(10, 14, 26, 0.6);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 8px 45px 8px 18px;
    color: white;
    font-size: 0.85rem;
    transition: var(--transition);
}

.header-search-input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: var(--shadow-cyan);
}

.header-search-btn {
    position: absolute;
    right: 5px;
    top: 4px;
    bottom: 4px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--color-primary);
    padding: 0 15px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.header-search-btn:hover {
    background: var(--color-primary);
    color: var(--bg-main);
    box-shadow: var(--shadow-cyan);
}

nav ul {
    display: flex;
    gap: 22px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 6px 0;
    position: relative;
    color: var(--color-text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    box-shadow: var(--shadow-cyan);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-icon {
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid transparent;
    transition: var(--transition);
}

.nav-icon:hover {
    color: var(--color-primary);
    border-color: var(--color-border);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: var(--shadow-cyan);
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--color-secondary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-purple);
}

/* User Menu & Dropdown */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background: rgba(16, 22, 42, 0.4);
    font-size: 0.85rem;
    transition: var(--transition);
    color: var(--color-text-main);
}

.user-btn:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-cyan);
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: 42px;
    background: #0d1425;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    width: 180px;
    padding: 6px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    display: none;
    z-index: 1001;
}

.user-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.user-dropdown-item:hover {
    color: var(--color-primary);
    background: rgba(0, 240, 255, 0.05);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--color-border);
    margin: 6px 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    font-family: var(--font-tech);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #00bfff 50%, var(--color-secondary) 100%);
    background-size: 200% 100%;
    color: #060913;
    border: none;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-position: 100% 0;
    box-shadow: 0 6px 24px rgba(0, 240, 255, 0.55), 0 0 12px rgba(189, 0, 255, 0.4);
}

.btn-outline {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    backdrop-filter: blur(6px);
}

.btn-outline:hover {
    background: rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: 1px solid #f87171;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(239, 68, 68, 0.6);
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    background: rgba(30, 41, 59, 1);
    color: var(--color-primary);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: rgba(13, 20, 37, 0.92);
    border-left: 4px solid var(--color-primary);
    border-top: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    backdrop-filter: blur(8px);
    animation: slideInRight 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.2);
    transition: var(--transition);
    color: white;
}

.toast.success { border-left-color: var(--color-success); }
.toast.warning { border-left-color: var(--color-warning); }
.toast.danger { border-left-color: var(--color-danger); }

/* Banner / Hero Section */
.hero {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 30px;
    align-items: center;
}

.hero-content h1 {
    font-family: var(--font-tech);
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.hero-content h1 span {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.hero-content p {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 25px;
    max-width: 550px;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,240,255,0.15) 0%, rgba(189,0,255,0.08) 50%, transparent 100%);
    filter: blur(15px);
    z-index: 1;
}

.hero-image {
    width: 100%;
    max-width: 320px;
    border-radius: 16px;
    border: 2px solid var(--color-border-hover);
    box-shadow: var(--shadow-cyan);
    z-index: 2;
    transform: rotate(3deg);
    transition: var(--transition);
}

.hero-image:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
}

/* Category Grid & Cards */
.section-title {
    font-family: var(--font-tech);
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
    position: relative;
    padding-left: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    width: 4px;
    height: 22px;
    background: var(--color-primary);
    box-shadow: var(--shadow-cyan);
}

.section-title span {
    color: var(--color-primary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 50px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.category-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-cyan);
    transform: translateY(-3px);
}

.category-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-border);
    transition: var(--transition);
}

.category-card:hover .category-img {
    border-color: var(--color-primary);
}

.category-name {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: var(--color-text-main);
}

/* Products Section & Grid */
.products-section {
    padding: 20px 0 60px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* Product Card Cyberpunk Ultra-Sleek */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), #00bfff, var(--color-secondary));
    opacity: 0;
    transition: var(--transition);
    z-index: 5;
}

.product-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: 0 16px 36px -10px rgba(0, 240, 255, 0.25), 0 0 15px rgba(0, 240, 255, 0.15);
    transform: translateY(-6px);
    background: var(--bg-card-hover);
}

.product-card:hover::before {
    opacity: 1;
}

.product-img-container {
    height: 160px;
    overflow: hidden;
    position: relative;
    background: rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    transition: var(--transition);
}

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

.product-brand {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(10, 14, 26, 0.85);
    border: 1px solid var(--color-border);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-primary);
}

.product-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category-text {
    color: var(--color-primary);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.product-price {
    font-family: var(--font-tech);
    color: var(--color-primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: auto;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.stock-tag {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
}

.stock-tag.in-stock { color: var(--color-success); }
.stock-tag.out-stock { color: var(--color-danger); }

.product-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.add-cart-btn {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    transition: var(--transition);
}

.add-cart-btn:hover {
    background: var(--color-primary);
    color: var(--bg-main);
    box-shadow: var(--shadow-cyan);
}

/* Page Headers */
.page-header {
    background: rgba(16, 22, 42, 0.3);
    border-bottom: 1px solid var(--color-border);
    padding: 35px 0;
    margin-bottom: 30px;
}

.page-header-title {
    font-family: var(--font-tech);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* Search and Filter Panel sidebar */
.catalog-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.filter-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-title {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.checkbox-label:hover {
    color: var(--color-text-main);
}

.checkbox-label input {
    accent-color: var(--color-primary);
}

.price-range-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-input {
    width: 100%;
    background: rgba(10, 14, 26, 0.6);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 6px 10px;
    color: white;
    font-size: 0.8rem;
}

.price-input:focus {
    border-color: var(--color-primary);
    outline: none;
}

.form-control {
    width: 100%;
    background: rgba(10, 14, 26, 0.6);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 10px 12px;
    color: white;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-cyan);
    outline: none;
}

/* Product Detail Page */
.detail-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 35px;
    margin-bottom: 35px;
}

.detail-img-container {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 380px;
    backdrop-filter: blur(10px);
}

.detail-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.detail-info {
    display: flex;
    flex-direction: column;
}

.detail-brand {
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.detail-name {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: white;
}

.detail-price {
    font-family: var(--font-tech);
    font-size: 1.8rem;
    color: var(--color-primary);
    font-weight: 800;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.detail-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.detail-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    background: rgba(16, 22, 42, 0.4);
}

.qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.qty-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    color: var(--color-primary);
}

.qty-input {
    width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Tabs layout for product details */
.tab-container {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.tab-header {
    display: flex;
    background: rgba(10, 14, 26, 0.5);
    border-bottom: 1px solid var(--color-border);
}

.tab-btn {
    padding: 12px 25px;
    font-family: var(--font-tech);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--color-text-muted);
    border-right: 1px solid var(--color-border);
    background: transparent;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--color-primary);
    background: rgba(0, 240, 255, 0.05);
}

.tab-btn.active {
    background: transparent;
    color: var(--color-primary);
    border-top: 3px solid var(--color-primary);
    margin-top: -3px;
    border-bottom: 1px solid transparent;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.tab-body {
    padding: 20px;
}

.tab-content {
    display: none;
    line-height: 1.7;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.tab-content.active {
    display: block;
}

/* Specifications Table (Dark Cyberpunk Style) */
.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: 1px solid rgba(0, 240, 255, 0.08);
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table td {
    padding: 10px 15px;
    font-size: 0.85rem;
}

.spec-label {
    font-weight: 700;
    color: var(--color-primary);
    width: 25%;
    background: rgba(0, 240, 255, 0.03);
}

.spec-value {
    color: var(--color-text-main);
}

/* Cart Table Styling */
.cart-layout {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.cart-items-panel {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 240, 255, 0.08);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    padding: 4px;
    background: white;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
}

.cart-item-price {
    font-family: var(--font-tech);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.85rem;
}

.cart-item-remove {
    color: var(--color-danger);
    cursor: pointer;
    font-size: 1rem;
    padding: 5px 10px;
    transition: var(--transition);
}

.cart-item-remove:hover {
    transform: scale(1.05);
    text-shadow: 0 0 8px var(--color-danger);
}

.cart-summary-panel {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
    backdrop-filter: blur(10px);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.summary-total {
    border-top: 1px solid var(--color-border);
    padding-top: 12px;
    margin-top: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-tech);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* Forms (Register, Login, Checkout) */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 30px;
    max-width: 450px;
    margin: 40px auto;
    backdrop-filter: blur(12px);
}

.form-title {
    font-family: var(--font-tech);
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    color: var(--color-primary);
}

.form-control {
    width: 100%;
    background: rgba(10, 14, 26, 0.7);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 10px 12px;
    color: white;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-cyan);
    outline: none;
}

.form-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.form-footer a {
    color: var(--color-primary);
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Checkout Page Specific Styles */
.checkout-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    margin-bottom: 60px;
}

.checkout-section {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.payment-method-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.payment-option {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(10, 14, 26, 0.3);
}

.payment-option:hover {
    border-color: var(--color-primary);
}

.payment-option.active {
    border-color: var(--color-primary);
    background: rgba(0, 240, 255, 0.08);
    box-shadow: var(--shadow-cyan);
}

.payment-option i {
    font-size: 1.4rem;
    color: var(--color-primary);
}

.payment-option span {
    font-size: 0.85rem;
    font-weight: 600;
}

.qr-code-wrapper {
    display: none;
    margin-top: 15px;
    text-align: center;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    border: 1px dashed var(--color-primary);
}

.qr-code-image {
    width: 180px;
    height: 180px;
    border-radius: 6px;
    margin-bottom: 8px;
}

/* Profile and Order Tracking */
.profile-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    height: fit-content;
    backdrop-filter: blur(10px);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-cyan);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.08);
    color: var(--color-primary);
    font-size: 2rem;
}

.profile-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
}

.profile-role {
    font-size: 0.75rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.profile-info-list {
    text-align: left;
    margin-top: 15px;
}

.profile-info-item {
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.profile-info-label {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.orders-panel {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.order-row-table {
    width: 100%;
    border-collapse: collapse;
}

.order-row-table th {
    border-bottom: 2px solid var(--color-primary);
    padding: 10px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-primary);
    text-align: left;
}

.order-row-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.06);
    font-size: 0.85rem;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.pending { background: rgba(245, 158, 11, 0.12); color: var(--color-warning); border: 1px solid var(--color-warning); }
.status-badge.shipping { background: rgba(0, 240, 255, 0.12); color: var(--color-primary); border: 1px solid var(--color-primary); }
.status-badge.completed { background: rgba(16, 217, 129, 0.12); color: var(--color-success); border: 1px solid var(--color-success); }
.status-badge.cancelled { background: rgba(239, 68, 68, 0.12); color: var(--color-danger); border: 1px solid var(--color-danger); }

/* Admin Dashboard CSS (Futuristic Cyber Control Room Panel) */
.admin-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.admin-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 15px 0;
    height: fit-content;
    backdrop-filter: blur(10px);
}

.admin-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.admin-menu-item:hover, .admin-menu-item.active {
    color: var(--color-primary);
    background: rgba(0, 240, 255, 0.05);
    border-left: 3px solid var(--color-primary);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-cyan);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-primary);
    background: rgba(0, 240, 255, 0.08);
    box-shadow: var(--shadow-cyan);
}

.stat-info h3 {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 3px;
}

.stat-info p {
    font-family: var(--font-tech);
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.admin-panel {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

/* Modal Overlay Ultra-Glassmorphism */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 6, 15, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(145deg, rgba(13, 20, 37, 0.95), rgba(8, 12, 24, 0.98));
    border: 1px solid var(--color-border-hover);
    border-radius: 18px;
    width: 90%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 240, 255, 0.25);
    position: relative;
    transform: scale(0.94) translateY(10px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--color-primary);
}

/* Footer Styling */
footer {
    margin-top: auto;
    background: #060912;
    border-top: 1px solid var(--color-border);
    padding: 40px 0 20px;
    color: var(--color-text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h3 {
    font-family: var(--font-tech);
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 15px;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

.footer-col p {
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.footer-contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.footer-contact-info i {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 240, 255, 0.08);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Rules */
@media(max-width: 992px) {
    .catalog-layout, .cart-layout, .checkout-layout, .profile-grid, .admin-layout {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
