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

:root {
    --bg-primary: #0b0f1a;
    --bg-secondary: #111827;
    --bg-glass: rgba(255, 255, 255, 0.05);
    
    --accent-cyan: #00eaff;
    --accent-orange: #ff6a00;
    --accent-violet: #7c3aed;
    --accent-lime: #a3ff12;
    
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    
    --grad-cyan-violet: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
    --grad-orange-lime: linear-gradient(135deg, var(--accent-orange), var(--accent-lime));
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --container-max: 1440px;
    --spacing-desktop: 110px;
    --spacing-tablet: 70px;
    --spacing-mobile: 50px;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section-spacing {
    padding-top: var(--spacing-mobile);
    padding-bottom: var(--spacing-mobile);
}

@media (min-width: 768px) {
    .section-spacing { padding-top: var(--spacing-tablet); padding-bottom: var(--spacing-tablet); }
}

@media (min-width: 1024px) {
    .section-spacing { padding-top: var(--spacing-desktop); padding-bottom: var(--spacing-desktop); }
}

.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.text-gradient-1 {
    background: var(--grad-cyan-violet);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-2 {
    background: var(--grad-orange-lime);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-3px); }

.btn-primary {
    background: var(--grad-cyan-violet);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.6);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.2);
}

/* Header */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(11, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 234, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding: 15px 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--accent-cyan); }

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

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-badge {
    position: absolute;
    top: -8px; right: -8px;
    background: var(--accent-orange);
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

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

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    background-image: url('images/photo-1518002171953-a080ee817e1f-hero-hero-bg.png');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(11, 15, 26, 0.4), var(--bg-primary));
}

.hero-glow {
    position: absolute;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, rgba(0,0,0,0) 70%);
    top: -20%; right: -10%;
    z-index: -1;
    animation: pulseGlow 8s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

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

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Cap Collection Grid */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 10px;
}

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

.product-card {
    padding: 20px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 234, 255, 0.15);
    border-color: rgba(0, 234, 255, 0.3);
}

.product-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--bg-secondary);
    position: relative;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--grad-orange-lime);
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-family: var(--font-body);
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.btn-add-cart {
    width: 100%;
    margin-top: auto;
}

/* Featured Drop */
.featured-drop {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 106, 0, 0.2);
}

.featured-drop::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, rgba(255, 106, 0, 0.05), rgba(163, 255, 18, 0.05));
    pointer-events: none;
}

.drop-content {
    flex: 1;
    z-index: 2;
}

.drop-image {
    flex: 1;
    z-index: 2;
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(163, 255, 18, 0.2);
}

.countdown {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.time-box {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--accent-orange);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    min-width: 80px;
}

.time-box span {
    display: block;
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--accent-lime);
}

.time-box small {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Cart Page */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 120px;
    min-height: 50vh;
}

.cart-items-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.cart-item-img {
    width: 100px; height: 100px;
    border-radius: 10px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--accent-cyan);
    font-weight: bold;
}

.cart-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0,0,0,0.3);
    padding: 5px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.qty-btn {
    background: none; border: none; color: white; cursor: pointer; font-size: 1.2rem;
}

.btn-remove {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4d4d;
    border: 1px solid rgba(255, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-remove:hover {
    background: #ff4d4d;
    color: white;
}

.cart-summary {
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: white;
}

.empty-cart-msg {
    text-align: center;
    padding: 60px;
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Product Page */
.product-single-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 120px;
}

.product-gallery img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.size-selector {
    display: flex;
    gap: 15px;
    margin: 20px 0 40px;
}

.size-btn {
    width: 50px; height: 50px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s;
}

.size-btn:hover, .size-btn.active {
    background: var(--accent-cyan);
    color: #000;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.4);
}

/* Forms (Checkout/Contact) */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    font-family: var(--font-body);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.2);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 60px;
}

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

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); }
.footer-col ul li a:hover { color: var(--accent-cyan); }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-drop { flex-direction: column; text-align: center; padding: 40px; }
    .countdown { justify-content: center; }
    .cart-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0; right: -100%; width: 70%; height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center; align-items: center;
        transition: right 0.4s ease;
        border-left: 1px solid rgba(255,255,255,0.1);
        z-index: 999;
    }
    .nav-links.active { right: 0; }
    .mobile-menu-btn { display: block; z-index: 1000; }
    
    .product-grid { grid-template-columns: 1fr; }
    .product-single-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .hero h1 { font-size: 2.5rem; }
}