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

/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --neon-green: #BFFF00;
    --dark-bg: #0a0a0a;
    --gray-900: #111111;
    --gray-800: #1a1a1a;
    --gray-700: #2a2a2a;
    --gray-600: #3a3a3a;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
}

body {
    background: linear-gradient(to bottom, #0a0a0a 0%, #0f1e0f 50%, #0a0a0a 100%);
    color: #ffffff;
    line-height: 1.5;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

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

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== HEADER ===== */
.header-sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.875rem;
    color: var(--gray-300);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--neon-green);
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.icon {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-sm {
    width: 1.25rem;
    height: 1.25rem;
}

.icon.black {
    stroke: #000;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--neon-green);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
    
    .header-sticky {
        padding: 1rem 3rem;
    }
}

/* ===== BUTTONS ===== */
.neon-button {
    background: var(--neon-green);
    color: #000;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(191, 255, 0, 0.4);
    white-space: nowrap;
}

.neon-button:hover {
    box-shadow: 0 0 40px rgba(191, 255, 0, 0.6);
    transform: translateY(-2px);
}

.outline-button {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.outline-button:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

/* ===== PRODUCT PAGE ===== */
.product-section {
    padding: 8rem 1.5rem 6rem;
    min-height: 100vh;
}

.product-grid {
    display: grid;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Product Viewer */
.product-viewer-container {
    position: sticky;
    top: 6rem;
    align-self: flex-start;
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    padding: 1.5rem;
    height: fit-content;
}

.product-model-viewer {
    width: 100%;
    max-height: 500px;
    --poster-color: transparent;
}

.viewer-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.control-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-button:hover {
    background: rgba(191, 255, 0, 0.2);
    border-color: var(--neon-green);
}

.control-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-500);
    font-size: 0.75rem;
}

.control-hint svg {
    color: var(--neon-green);
}

/* Product Details */
.product-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-400);
}

.product-breadcrumb a {
    transition: color 0.3s ease;
}

.product-breadcrumb a:hover {
    color: var(--neon-green);
}

.product-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0;
}

.product-subtitle {
    font-size: 1.25rem;
    color: var(--gray-400);
    margin-top: -0.5rem;
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--neon-green);
}

.product-stock {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-stock.in-stock {
    background: rgba(191, 255, 0, 0.2);
    color: var(--neon-green);
}

.product-stock.out-of-stock {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stars {
    color: var(--neon-green);
    font-size: 1.25rem;
}

.rating-text {
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* Product Options */
.product-option {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-label {
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.size-guide-link {
    font-size: 0.875rem;
    color: var(--neon-green);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.size-guide-link:hover {
    opacity: 0.8;
}

/* Color Options */
.color-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-preview {
    width: 60px;
    height: 60px;
    border-radius: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.color-preview.dual {
    display: flex;
}

.color-half {
    flex: 1;
}

.color-half.black {
    background: #000;
}

.color-half.white {
    background: #fff;
}

.color-half.green {
    background: var(--neon-green);
}

.color-fill {
    width: 100%;
    height: 100%;
    display: block;
}

.color-fill.black {
    background: #000;
}

.color-name {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.color-option.active .color-preview {
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(191, 255, 0, 0.3);
}

.color-option.active .color-name {
    color: var(--neon-green);
}

/* Size Options */
.size-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.75rem;
}

.size-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.size-option:hover:not(.disabled) {
    border-color: var(--neon-green);
    background: rgba(191, 255, 0, 0.1);
}

.size-option.active {
    border-color: var(--neon-green);
    background: var(--neon-green);
    color: #000;
}

.size-option.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: fit-content;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: rgba(191, 255, 0, 0.2);
    border-color: var(--neon-green);
}

#quantity {
    width: 80px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
}

/* Product Actions */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.full-width {
    width: 100%;
}

/* Product Description & Features */
.product-description {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.description-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.description-text {
    color: var(--gray-400);
    line-height: 1.8;
}

.product-features {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.features-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--gray-400);
}

.features-list li svg {
    flex-shrink: 0;
    color: var(--neon-green);
    margin-top: 0.125rem;
}

/* Info Cards */
.product-info-cards {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(191, 255, 0, 0.05);
    border-color: rgba(191, 255, 0, 0.2);
}

.info-card svg {
    color: var(--neon-green);
    flex-shrink: 0;
}

.info-content h4 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.info-content p {
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 1.5rem;
}

.footer-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--neon-green);
    color: #000;
}

.footer-heading {
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    font-size: 0.875rem;
    color: var(--gray-400);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--neon-green);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.copyright {
    text-align: center;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .product-model-viewer {
        height: 600px;
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
        align-items: flex-start;
    }
    
    .product-viewer-container {
        position: sticky;
        top: 6rem;
    }
    
    .product-model-viewer {
        height: 650px;
    }
    
    .product-title {
        font-size: 3rem;
    }
    
    .product-actions {
        flex-direction: row;
    }
    
    .full-width {
        width: auto;
        flex: 1;
    }
    
    .product-info-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1023px) {
    .product-viewer-container {
        position: relative;
        top: 0;
    }
}