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

html {
    scroll-behavior: smooth;
}

:root {
    --bg-color: #0b0c0e;
    --bg-drawer: #0f1114;
    --text-primary: #f3f4f6;
    --text-secondary: #8c97a5;
    --border-color: rgba(255, 255, 255, 0.06);
    --gold-primary: #eab308;
    --gold-hover: #ca8a04;
    --gold-glow: rgba(234, 179, 8, 0.3);
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    letter-spacing: 0.08em;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #252830;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3e4350;
}

/* UI Typography helper */
.uppercase-tracked {
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

/* Header Overlay (Fear of God style) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 40px;
    z-index: 900;
    transition: all 0.35s ease;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(11, 12, 14, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 65px;
    border-bottom: 1px solid var(--border-color);
}

/* Navigation Buttons & Links */
.nav-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    transition: opacity 0.25s ease;
}

.nav-btn:hover {
    opacity: 0.7;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    margin-right: 30px;
    transition: opacity 0.25s ease;
}

.nav-link:hover {
    opacity: 0.7;
}

/* Hamburger Icon */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 16px;
}

.hamburger::before,
.hamburger::after {
    content: '';
    width: 100%;
    height: 1px;
    background-color: var(--text-primary);
    transition: transform 0.25s ease;
}

/* Center Logo Link */
.nav-center .logo-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    transition: letter-spacing 0.3s ease;
}

.nav-center .logo-link:hover {
    letter-spacing: 0.32em;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Hide on mobile devices */
@media(max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    .header {
        padding: 0 20px;
    }
    .nav-center .logo-link {
        font-size: 1rem;
        letter-spacing: 0.18em;
    }
}

/* Drawer Component Design (Slide-out menu & bag) */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 440px;
    background-color: var(--bg-drawer);
    border-color: var(--border-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Drawer Layout Alignments */
.drawer-left {
    left: 0;
    transform: translateX(-100%);
    border-right: 1px solid var(--border-color);
}

.drawer-right {
    right: 0;
    transform: translateX(100%);
    border-left: 1px solid var(--border-color);
}

.drawer.open {
    transform: translateX(0);
}

@media(max-width: 480px) {
    .drawer {
        width: 100%;
    }
}

/* Drawer Headers */
.drawer-header {
    height: 75px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    border-bottom: 1px solid var(--border-color);
}

.drawer-logo, .drawer-title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.drawer-logo {
    letter-spacing: 0.22em;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.close-btn:hover {
    opacity: 0.6;
}

/* Left Menu Navigation Items */
.drawer-nav {
    padding: 40px 30px;
    flex: 1;
    overflow-y: auto;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.menu-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: inline-block;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-link:hover {
    transform: translateX(6px);
    color: #ffffff;
}

.menu-link.sub-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.12em;
}

.nav-list .separator {
    height: 1px;
    background-color: var(--border-color);
    margin: 15px 0;
}

/* Right Shopping Bag Layout */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Empty cart state */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
}

.shop-btn-empty {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.shop-btn-empty:hover {
    opacity: 0.7;
}

/* Cart Item Cards */
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
    width: 80px;
    height: 100px;
    background-color: #121417;
    border-radius: 4px;
    overflow: hidden;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-meta h4 {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 2px;
}
.cart-item-meta .item-price {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.item-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    width: 100%;
}

.item-size {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.qty-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 0.8rem;
}

.qty-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.qty-num {
    font-size: 0.75rem;
    padding: 0 5px;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    text-decoration: underline;
}

.remove-btn:hover {
    color: var(--text-primary);
}

/* Cart Summary Footer */
.cart-footer {
    padding: 30px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(11, 12, 14, 0.5);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
}

.shipping-notice {
    font-size: 0.68rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    background-color: var(--text-primary);
    color: var(--bg-color);
    border: none;
    padding: 18px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.checkout-btn:hover {
    opacity: 0.9;
}

/* Landing Viewport Section */
.landing-viewport {
    position: relative;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    background-color: #050608;
    overflow: hidden;
}

/* Blurred background image */
.landing-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/bg_stage.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(4px) brightness(0.4) contrast(0.95); /* Soft blur (4px) and moderately darkened to show the photo details clearly */
    transform: scale(1.03); /* Subtle scale up for soft blur edges */
    opacity: 0.7; /* Higher opacity to make the figures visible */
    z-index: 1;
    pointer-events: none;
}

/* WebGL canvas container */
.canvas-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 5; /* Sit on top of the bg image */
}

/* Scroll indicator on landing */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
}

.scroll-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: color 0.25s ease;
}

.scroll-link:hover {
    color: var(--text-primary);
}

.scroll-arrow {
    width: 1px;
    height: 35px;
    background-color: var(--text-secondary);
    position: relative;
    animation: bounceVertical 2s infinite ease-in-out;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -2px;
    width: 5px;
    height: 5px;
    border-bottom: 1px solid var(--text-secondary);
    border-right: 1px solid var(--text-secondary);
    transform: rotate(45deg);
}

.scroll-link:hover .scroll-arrow,
.scroll-link:hover .scroll-arrow::after {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
}

/* Products Section styling */
.products-section {
    position: relative;
    z-index: 20;
    padding: 100px 40px;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

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

.collection-title {
    font-size: 0.72rem;
    color: var(--text-secondary);
    letter-spacing: 0.22em;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 30px;
}

/* Category Filters bar */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    border-bottom: 1px solid var(--border-color);
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 10px;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    cursor: pointer;
    padding: 8px 0;
    position: relative;
    transition: color 0.25s ease;
}

.filter-btn:hover {
    color: var(--text-primary);
}

.filter-btn.active {
    color: var(--text-primary);
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-primary);
}

/* Products Grid Layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 20px;
    max-width: 1300px;
    margin: 0 auto;
}

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

@media(max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .products-section {
        padding: 60px 20px;
    }
}

/* Product Card Component */
.product-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

.product-img-container {
    width: 100%;
    aspect-ratio: 4/5;
    background-color: #121417;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Add to Bag hover trigger button */
.add-bag-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 15px);
    width: 85%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card:hover .add-bag-overlay {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.size-selector-overlay {
    width: 100%;
    background-color: var(--text-primary);
    color: var(--bg-color);
    padding: 14px 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
}

.size-overlay-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(11, 12, 14, 0.6);
    text-transform: uppercase;
}

.size-buttons-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.size-add-btn {
    flex: 1;
    background-color: transparent;
    color: var(--bg-color);
    border: 1px solid rgba(11, 12, 14, 0.15);
    padding: 8px 0;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.25s ease;
    text-align: center;
}

.size-add-btn:hover {
    background-color: var(--bg-color);
    color: var(--text-primary);
    border-color: var(--bg-color);
}


/* Product Details */
.product-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.product-title {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.product-category {
    font-size: 0.68rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 2px;
}

.product-price {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

/* Footer Section */
.footer {
    background-color: #07080a;
    border-top: 1px solid var(--border-color);
    padding: 80px 60px 40px;
    position: relative;
    z-index: 20;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

@media(max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer {
        padding: 50px 20px 30px;
    }
}

.footer-col h3 {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    transition: color 0.2s ease;
}

.footer-col ul a:hover {
    color: var(--text-primary);
}

/* Newsletter styling */
.newsletter-col p {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
    letter-spacing: 0.08em;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
}

.newsletter-input {
    background: none;
    border: none;
    flex: 1;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    outline: none;
}

.newsletter-input::placeholder {
    color: var(--text-secondary);
}

.newsletter-submit {
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.newsletter-submit:hover {
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.copyright {
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

/* Keyframe animations */
@keyframes bounceVertical {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}
