@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Syne:wght@400;500;600;700;800&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@property --glow-intensity {
  syntax: '<number>';
  initial-value: 0;
  inherits: false;
}

:root {
    --bg-primary: #0d0d1a;
    --bg-secondary: #13131f;
    --bg-card: #1a1a2e;
    --bg-card-hover: #22223a;
    --accent-purple: #7c3aed;
    --accent-purple-light: #a855f7;
    --accent-purple-dark: #6d28d9;
    --neon-purple: #bf5fff;
    --neon-glow: rgba(124, 58, 237, 0.4);
    --neon-glow-strong: rgba(124, 58, 237, 0.6);
    --text-primary: #f0f0ff;
    --text-secondary: #a0a0c0;
    --text-muted: #6b6b80;
    --border-color: rgba(124, 58, 237, 0.25);
    --border-light: rgba(124, 58, 237, 0.15);
    --black: #0a0a0a;
    --black-light: #13131f;
    --black-lighter: #1a1a2e;
    --blue: #7c3aed;
    --blue-light: #bf5fff;
    --blue-dark: #6d28d9;
    --blue-gradient: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #bf5fff 100%);
    --white: #f0f0ff;
    --white-off: #e8e8f5;
    --white-dark: #a0a0c0;
    --gray: #a0a0c0;
    --gray-light: #6b6b80;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --info: #3b82f6;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-blue: 0 4px 20px rgba(124, 58, 237, 0.4);
    --shadow-glow: 0 0 20px var(--neon-glow), 0 0 40px rgba(124, 58, 237, 0.2);
    --shadow-glow-strong: 0 0 30px var(--neon-glow-strong), 0 0 60px rgba(124, 58, 237, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 70px;
    --container-width: 1200px;
    --blur-glass: blur(20px) saturate(180%);
    --border-glow: 0 0 0 1px rgba(124,58,237,0.3), 0 0 12px rgba(124,58,237,0.12);
    --gradient-brand: linear-gradient(135deg, #7c3aed, #bf5fff);
    --gradient-surface: linear-gradient(135deg, rgba(26,26,46,0.9), rgba(13,13,26,0.95));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    background-image:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237c3aed' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: bg-pulse 12s ease-in-out infinite;
    transition: background-color 0.3s, color 0.3s;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(124, 58, 237, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(191, 95, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: aurora 20s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: -1;
}

@keyframes bg-pulse {
    0%, 100% { background-position: 0% 0%, 20% 50%, 80% 20%; }
    50% { background-position: 0% 0%, 25% 45%, 75% 25%; }
}

@keyframes aurora {
    0%, 100% { opacity: 0.5; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.8; transform: scale(1.1) rotate(3deg); }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: var(--shadow-glow); }
    50% { box-shadow: var(--shadow-glow-strong); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes border-spin {
    to { --angle: 360deg; }
}

@keyframes scan-line {
    0% { top: -2px; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

a {
    color: var(--accent-purple-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::selection {
    background: var(--accent-purple);
    color: white;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--accent-purple), var(--neon-purple));
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--accent-purple-light), var(--neon-purple));
}

.main-header {
    background: rgba(10, 10, 10, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero {
    background: transparent;
}

.section {
    background: transparent;
}

.section[style*="background: var(--white)"] {
    background: rgba(20, 20, 20, 0.95) !important;
}

.page-header {
    background: #0a0a0a !important;
}

.features {
    background: #111111 !important;
}

.main-footer {
    background: #0d0d0d !important;
    border-top: 1px solid #1a1a1a;
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
textarea,
select {
    color: #ffffff !important;
    background: #1e1e1e !important;
    border-color: #2e2e2e !important;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
input[type="number"]::placeholder,
input[type="password"]::placeholder,
input[type="search"]::placeholder,
textarea::placeholder {
    color: #888888 !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    border-color: #7c3aed !important;
    outline: none;
}

.search-box input {
    color: #ffffff !important;
    background: #1e1e1e !important;
}

.search-box svg {
    color: #888888 !important;
}

.filter-select {
    color: #ffffff !important;
    background: #1e1e1e !important;
    border-color: #2e2e2e !important;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(124,58,237,0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 80%, rgba(191,95,255,0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 10%, rgba(109,40,217,0.06) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(13, 13, 26, 0.75);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid rgba(124, 58, 237, 0.12);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-img {
    height: 80px;
    width: auto;
}

.logo-text {
    color: #ffffff;
}

.logo-blue {
    background: linear-gradient(135deg, #7c3aed 0%, #bf5fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 600;
    font-size: 15px;
    color: #e0e0e0;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #7c3aed 0%, #bf5fff 100%);
    transition: var(--transition);
}

.nav-link:hover {
    color: #ffffff;
}

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

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

.cart-icon {
    position: relative;
    padding: 8px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.07);
    color: #ffffff;
    transition: var(--transition);
}

.cart-icon:hover {
    background: #7c3aed;
    color: #ffffff;
}

.cart-icon:hover .cod-badge {
    background: #ffffff;
    color: #7c3aed;
}

.cod-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: #7c3aed;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 20px;
    transition: var(--transition);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: #e0e0e0;
    transition: var(--transition);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #111111;
    padding: 20px;
    border-bottom: 1px solid #1a1a1a;
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-link {
    display: block;
    padding: 15px;
    font-weight: 600;
    color: #e0e0e0;
    border-bottom: 1px solid #1a1a1a;
}

.main-content {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 60px 0 100px;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(13, 13, 26, 0.7) 0%, rgba(13, 13, 26, 0.85) 50%, var(--bg-primary) 100%);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124,58,237,0.10) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(109,40,217,0.08) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #ffffff;
    font-family: 'Syne', sans-serif;
    text-shadow: 0 0 40px rgba(124, 58, 237, 0.5);
    animation: slideUp 0.8s ease-out;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #bf5fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    font-size: 18px;
    color: #dddddd;
    margin-bottom: 40px;
    animation: slideUp 0.8s ease-out 0.2s backwards;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #bf5fff 100%);
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
    padding: 14px 28px;
    min-height: 52px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    animation: slideUp 0.8s ease-out 0.4s backwards;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s var(--transition-smooth);
}

.hero-cta:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-strong);
    color: #ffffff;
}

.hero-cta:hover::before {
    transform: translateX(100%);
}

.hero-cta svg {
    transition: var(--transition);
}

.hero-cta:hover svg {
    transform: translateX(-5px);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    color: #ffffff;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #7c3aed 0%, #bf5fff 100%);
    border-radius: 2px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: linear-gradient(135deg, rgba(26,26,46,0.9), rgba(19,19,31,0.95));
    backdrop-filter: blur(6px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.06);
    transition: var(--transition);
    animation: fadeIn 0.6s ease-out backwards;
    border: 1px solid var(--border-light);
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }

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

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255,255,255,0.08);
    border-color: rgba(124, 58, 237, 0.4);
}

.product-image {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--bg-secondary);
}

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

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

.product-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

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

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
    transition: var(--transition);
}

.product-card:hover .product-name {
    color: #bf5fff;
}

.product-price {
    font-size: 22px;
    font-weight: 800;
    color: #bf5fff;
    margin-bottom: 15px;
}

.product-price span {
    font-size: 14px;
    font-weight: 500;
    color: #888888;
}

.product-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff;
    text-align: center;
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: var(--transition);
}

.product-btn:hover {
    background: linear-gradient(135deg, #bf5fff 0%, #7c3aed 100%);
    color: #ffffff;
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (min-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
    }
}

.category-card {
    background: linear-gradient(135deg, rgba(26,26,46,0.9), rgba(19,19,31,0.95));
    backdrop-filter: blur(6px);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.06);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-light);
}

.category-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255,255,255,0.08);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon svg {
    width: 30px;
    height: 30px;
    color: #ffffff;
}

.category-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

/* Category image cards (homepage) */
.categories-section .category-card {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(26,26,46,0.9), rgba(19,19,31,0.95));
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    position: relative;
}

.categories-section .category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(191, 95, 255, 0.1), transparent);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.categories-section .category-card:hover {
    border-color: rgba(124, 58, 237, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4), 0 0 40px rgba(124, 58, 237, 0.2), inset 0 1px 0 rgba(255,255,255,0.08);
}

.categories-section .category-card:hover::before {
    opacity: 1;
}

.categories-section .category-card-image {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #13131f;
}

.categories-section .category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.categories-section .category-card:hover .category-card-image img {
    transform: scale(1.05);
}

.categories-section .category-card-name {
    padding: 16px 12px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #f0f0ff;
    background: linear-gradient(180deg, transparent, rgba(13, 13, 26, 0.6));
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.categories-section .category-card:hover .category-card-name {
    color: #bf5fff;
    text-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

@media (max-width: 480px) {
    .categories-section .category-card-name { font-size: 0.8125rem; padding: 12px 8px; }
}

/* Features Section */
.features {
    background: #111111 !important;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #7c3aed, #bf5fff, transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(124,58,237,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(124,58,237,0.4);
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: rotate(10deg);
    border-color: transparent;
}

.feature-icon svg {
    width: 36px;
    height: 36px;
    color: #bf5fff;
    transition: var(--transition);
}

.feature-item:hover .feature-icon svg {
    color: #ffffff;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 14px;
    color: #999999;
}

/* Footer */
.main-footer {
    background: var(--bg-secondary) !important;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-light);
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-title .logo-blue {
    background: linear-gradient(135deg, #7c3aed 0%, #bf5fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-desc {
    font-size: 14px;
    color: #999999;
    line-height: 1.8;
}

.footer-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

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

.footer-links a {
    color: #999999;
    font-size: 14px;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
}

.footer-bottom p {
    font-size: 14px;
    color: #888888;
}

/* Products Page */
.page-header {
    background: var(--bg-secondary) !important;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(124,58,237,0.10) 0%, transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(109,40,217,0.08) 0%, transparent 40%);
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 16px;
    color: #999999;
}

.products-section {
    padding: 60px 0;
}

.products-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    padding: 25px;
    background: #1a1a1a;
    backdrop-filter: blur(6px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255,255,255,0.06);
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 2px solid #2e2e2e;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: #7c3aed;
}

.search-box svg {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #777777;
}

.filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 14px 20px;
    border: 2px solid #2e2e2e;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: #7c3aed;
}

.products-count {
    font-size: 14px;
    color: #999999;
    margin-bottom: 20px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border: 2px solid #2e2e2e;
    border-radius: var(--radius-md);
    font-weight: 600;
    color: #ffffff;
    transition: var(--transition);
}

.pagination-btn:hover,
.pagination-btn.active {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border-color: transparent;
    color: #ffffff;
}

/* Single Product Page */
.product-detail {
    padding: 40px 0;
}

.product-slider {
    position: relative;
    background: #1a1a1a;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.slider-container {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    width: 100%;
}

.slider-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slider-slide.active {
    opacity: 1;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(30,30,30,0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    color: #ffffff;
}

.slider-nav:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff;
}

.slider-nav.prev { right: 20px; }
.slider-nav.next { left: 20px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: #7c3aed;
    transform: scale(1.2);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.product-detail-info h1 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #ffffff;
}

.product-detail-price {
    font-size: 36px;
    font-weight: 800;
    color: #bf5fff;
    margin-bottom: 20px;
}

.product-detail-price span {
    font-size: 18px;
    font-weight: 500;
    color: #999999;
}

.product-detail-desc {
    font-size: 16px;
    color: #aaaaaa;
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-options {
    margin-bottom: 30px;
}

.option-group {
    margin-bottom: 25px;
}

.option-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

.color-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #2e2e2e;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.color-btn.selected {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.3);
}

.color-btn::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    opacity: 0;
    transition: var(--transition);
}

.color-btn.selected::after {
    opacity: 1;
}

.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-btn {
    min-width: 50px;
    padding: 12px 20px;
    background: #1e1e1e;
    border: 2px solid #2e2e2e;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    color: #ffffff;
}

.size-btn:hover {
    border-color: #7c3aed;
}

.size-btn.selected {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border-color: transparent;
    color: #ffffff;
}

/* Bundle Offers */
.bundle-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.bundle-btn {
    flex: 1;
    min-width: 100px;
    padding: 16px 20px;
    background: #1e1e1e;
    border: 2px solid #2e2e2e;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.bundle-btn:hover {
    border-color: #7c3aed;
    transform: translateY(-2px);
}

.bundle-btn.selected {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border-color: transparent;
    color: #ffffff;
}

.bundle-pieces {
    font-size: 16px;
    font-weight: 700;
}

.bundle-price {
    font-size: 14px;
    font-weight: 600;
    color: #999999;
}

.bundle-btn.selected .bundle-price {
    color: rgba(255,255,255,0.85);
}

.bundle-colors-section {
    margin-top: 15px;
}

.bundle-color-item {
    margin-bottom: 15px;
    padding: 12px;
    background: #1e1e1e;
    border-radius: var(--radius-md);
}

.piece-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.bundle-item {
    background: #1e1e1e;
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #2e2e2e;
}

.piece-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2e2e2e;
}

.piece-number {
    font-size: 15px;
    font-weight: 700;
    color: #bf5fff;
}

.piece-option {
    margin-bottom: 12px;
}

.piece-option:last-child {
    margin-bottom: 0;
}

.piece-option-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #dddddd;
}

.piece-colors {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.piece-colors .color-btn {
    width: 35px;
    height: 35px;
}

.piece-sizes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.piece-sizes .size-btn {
    min-width: 40px;
    padding: 8px 14px;
    font-size: 13px;
}

/* Order Form */
.order-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,255,255,0.07);
}

.order-form h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(135deg, #7c3aed 0%, #bf5fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #dddddd;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    min-height: 52px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition-fast);
    background: var(--bg-secondary);
    color: var(--text-primary);
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 2px rgba(124,58,237,0.15), 0 0 20px rgba(124,58,237,0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #dddddd;
}

.radio-label input {
    width: auto;
    accent-color: #7c3aed;
}

.delivery-price-display {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.delivery-price-display p {
    font-size: 14px;
    color: #999999;
    margin-bottom: 5px;
}

.delivery-price-display .price {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.total-price-display {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    padding: 25px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    text-align: center;
}

.total-price-display p {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 5px;
}

.total-price-display .price {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #bf5fff 100%);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    min-height: 52px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s var(--transition-smooth);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-strong);
    color: #ffffff;
}

.submit-btn:hover::before {
    transform: translateX(100%);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.form-message.success {
    background: rgba(46, 204, 113, 0.1);
    color: var(--success);
    border: 2px solid var(--success);
}

.form-message.error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
    border: 2px solid var(--danger);
}

/* Product Description */
.product-description {
    margin-bottom: 60px;
}

.product-description h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #7c3aed;
    color: #ffffff;
}

.product-description-content {
    background: #1a1a1a;
    backdrop-filter: blur(6px);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    line-height: 1.9;
    border: 1px solid rgba(255,255,255,0.06);
}

.product-description-content p {
    margin-bottom: 15px;
    color: #dddddd;
}

.product-description-content ul {
    margin: 15px 0;
    padding-right: 25px;
}

.product-description-content li {
    margin-bottom: 10px;
    list-style: disc;
    color: #dddddd;
}

/* Product Images Grid */
.product-images-grid {
    margin-bottom: 60px;
}

.product-images-grid h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 25px;
    color: #ffffff;
}

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

.images-grid img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.images-grid img:hover {
    box-shadow: var(--shadow-md);
}

/* Related Products */
.related-products {
    margin-bottom: 60px;
}

.related-products h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #ffffff;
}

/* Success Message */
.success-message {
    display: none;
    background: rgba(46, 204, 113, 0.08);
    border: 2px solid var(--success);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 30px;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.success-message h3 {
    font-size: 24px;
    color: var(--success);
    margin-bottom: 15px;
}

.success-message .order-id {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.loading-spinner.show {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #2e2e2e;
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-overlay {
        background: rgba(0, 0, 0, 0.6);
    }

    .hero-title {
        color: #ffffff;
    }

    .hero-subtitle {
        color: #dddddd;
    }

    .product-slider {
        max-width: 100%;
        border-radius: var(--radius-lg);
    }

    .product-detail {
        padding: 20px 15px;
    }

    .section {
        padding: 50px 0;
    }

    .products-toolbar {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select {
        flex: 1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .order-form {
        padding: 25px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-info {
        padding: 12px 10px;
    }

    .product-name {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 6px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-price {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .product-price span {
        font-size: 11px;
    }

    .product-btn {
        padding: 8px 6px;
        font-size: 12px;
        border-radius: var(--radius-sm);
    }

    .pagination-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
    }
}
