/* Core design system */
:root {
    --bg: #06080f;
    --bg-soft: #0f1422;
    --card: #101726;
    --card-soft: #161f33;
    --text: #edf2ff;
    --muted: #a9b4d0;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #5b8cff;
    --accent-2: #8f58ff;
    --glow: rgba(91, 140, 255, 0.45);
    --danger: #ff6c7b;
    --success: #30d49b;
    --nav-height: 68px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: radial-gradient(1200px 700px at 70% -10%, rgba(143, 88, 255, 0.25), transparent 60%),
                radial-gradient(900px 500px at 20% 0%, rgba(91, 140, 255, 0.3), transparent 65%),
                var(--bg);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    max-width: 520px;
    min-height: 100vh;
    margin-inline: auto;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    padding-top: var(--nav-height);
}

.heading-brand,
.heading-display,
.heading-classic {
    font-family: 'Old Standard TT', serif;
    letter-spacing: 0.01em;
}

.text-gradient {
    background: linear-gradient(90deg, #d7e3ff, #94b6ff, #bea0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-shell {
    max-width: 520px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hidden {
    display: none !important;
}

/* Navigation */
.navbar-sticky {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(520px, 100vw);
    z-index: 1000;
    backdrop-filter: blur(14px);
    background: linear-gradient(120deg, rgba(6, 8, 15, 0.88), rgba(17, 24, 39, 0.86), rgba(6, 8, 15, 0.88));
    background-size: 220% 220%;
    animation: navDrift 9s ease-in-out infinite;
    border-bottom: 1px solid var(--line);
}

@keyframes navDrift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.mobile-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.mobile-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.icon-btn {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.mobile-menu-panel {
    position: fixed;
    top: var(--nav-height);
    left: 50%;
    transform: translateX(-50%);
    width: min(520px, 100vw);
    z-index: 995;
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
}

.hero-video-section {
    overflow: hidden;
    background: #000;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    transform: translate3d(0, 0, 0) scale(1.08);
    will-change: transform;
}

.hero-parallax-content {
    will-change: transform;
}

.hero-title-outline {
    color: #ffffff;
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
         0 6px 18px rgba(0, 0, 0, 0.45);
}

.modal-sheet {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    z-index: 3000;
}

.modal-card {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: min(520px, 100vw);
    background: var(--bg-soft);
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

.checkout-sheet {
    bottom: 0;
    border-top: 1px solid var(--line);
    border-radius: 16px 16px 0 0;
    max-height: 84vh;
    overflow: auto;
}

.cart-sheet {
    top: 0;
    height: 100%;
    border-left: 1px solid var(--line);
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 0.75rem 1.2rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-add-to-cart {
    padding: 0.5rem 0.72rem;
    border-radius: 10px;
    font-size: 0.78rem;
    line-height: 1;
    min-height: 2rem;
    box-shadow: 0 6px 18px rgba(91, 140, 255, 0.28);
}

.btn-primary {
    color: white;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    box-shadow: 0 8px 24px var(--glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.btn-secondary {
    background: var(--card-soft);
    color: var(--text);
    border-color: var(--line);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-red {
    background: transparent;
    color: var(--text);
    border-color: rgba(255, 108, 123, 0.7);
}

.btn-outline-red:hover {
    background: rgba(255, 108, 123, 0.15);
}

/* Cards */
.premium-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.product-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.filter-btn {
    border: 1px solid var(--line);
    color: var(--muted);
    background: var(--card-soft);
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-size: 0.92rem;
}

.filter-btn.active,
.filter-btn:hover {
    color: var(--text);
    border-color: rgba(145, 169, 255, 0.7);
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    background: var(--danger);
    color: white;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.2rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: #0f1628;
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.2);
}

.animate-fadeInUp {
    animation: fadeInUp 0.65s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 700px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 521px) {
    body::after {
        content: 'Mobile-optimized experience';
        position: fixed;
        top: 10px;
        right: 10px;
        padding: 0.3rem 0.55rem;
        border-radius: 999px;
        font-size: 0.66rem;
        letter-spacing: 0.03em;
        color: #dbe6ff;
        border: 1px solid var(--line);
        background: rgba(15, 20, 34, 0.9);
        pointer-events: none;
        z-index: 5001;
    }
}
