/* ============================================
   STREETWEAR — CASUAL MHS DESIGN SYSTEM
   Clean, minimal, street-forward.
   ============================================ */

/* === Color System — MHS Brand === */
:root {
    --sw-accent: var(--color-primary, #DC0000);
    --sw-accent-light: var(--color-secondary, #FF0000);
    --sw-bg: #0a0a0a;
    --sw-surface: #111;
    --sw-surface-2: #181818;
    --sw-border: rgba(255, 255, 255, 0.06);
    --sw-text: #f5f5f5;
    --sw-text-muted: #888;
    --sw-text-dim: #555;
}

/* === Hero — Casual, clean, big type === */

.sw-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
    padding: 140px 2rem 3rem;
    background: var(--sw-bg);
}

.sw-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #0f0f0f 100%);
    z-index: 0;
}

.sw-hero-bg::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--sw-border);
}

.sw-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.sw-hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -3px;
    color: var(--sw-text);
    margin-bottom: 1rem;
}

.sw-hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--sw-text-muted);
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* === Category Filter Bar === */

.sw-filter-bar {
    position: sticky;
    top: 60px;
    z-index: 100;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--sw-border);
    padding: 0.65rem 0;
    transition: box-shadow 0.3s;
}

.sw-filter-bar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.sw-filter-scroll {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.sw-filter-scroll::-webkit-scrollbar {
    display: none;
}

.sw-filter-pill {
    flex-shrink: 0;
    padding: 0.45rem 1.1rem;
    background: transparent;
    border: none;
    color: var(--sw-text-dim);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.25s;
    border-radius: 4px;
    white-space: nowrap;
}

.sw-filter-pill:hover {
    color: var(--sw-text);
}

.sw-filter-pill.active {
    background: var(--sw-surface-2);
    color: var(--sw-text);
}

/* === Category Sections === */

.sw-category-section {
    padding: 4rem 0 2rem;
    background: var(--sw-bg);
}

.sw-drop-label {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: transparent;
    border: 1px solid var(--sw-accent);
    color: var(--sw-accent);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.sw-drop-label.amber {
    border-color: #e8872a;
    color: #e8872a;
}

.sw-drop-label.red {
    border-color: var(--sw-accent);
    color: var(--sw-accent);
}

/* === Product Grid === */

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

.sw-product-card {
    background: var(--sw-bg);
    overflow: hidden;
    transition: background 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.sw-product-card:hover {
    background: var(--sw-surface);
}

.sw-product-card.no-link {
    cursor: default;
}

.sw-product-image {
    position: relative;
    width: 100%;
    padding-top: 125%;
    background: var(--sw-surface);
    overflow: hidden;
}

.sw-product-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
}

.sw-product-image .sw-img-hover {
    opacity: 0;
}

.sw-product-card:hover .sw-product-image .sw-img-default {
    opacity: 0;
}

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

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

.sw-product-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    padding: 0.2rem 0.5rem;
    background: var(--sw-accent);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    z-index: 2;
}

.sw-product-badge.coming-soon {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: var(--sw-text-muted);
    border: none;
}

.sw-product-info {
    padding: 0.9rem 1rem 1.1rem;
}

.sw-product-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--sw-text);
    margin-bottom: 0.2rem;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.sw-product-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: var(--sw-text-muted);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.sw-product-waitlist {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    color: var(--sw-text-dim);
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 0.5rem;
    transition: color 0.25s;
}

.sw-product-card:hover .sw-product-waitlist {
    color: var(--sw-accent);
}

/* === Lookbook Strip === */

.sw-lookbook {
    padding: 4rem 0;
    background: var(--sw-bg);
    overflow: hidden;
    border-top: 1px solid var(--sw-border);
}

.sw-lookbook-scroll {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 2rem;
    scroll-snap-type: x mandatory;
}

.sw-lookbook-scroll::-webkit-scrollbar {
    display: none;
}

.sw-lookbook-item {
    flex-shrink: 0;
    width: 320px;
    height: 480px;
    overflow: hidden;
    scroll-snap-align: start;
    position: relative;
}

.sw-lookbook-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    filter: grayscale(20%);
}

.sw-lookbook-item:hover img {
    transform: scale(1.04);
    filter: grayscale(0%);
}

/* === Scroll Reveal Animations === */

.sw-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sw-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.sw-product-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.3s;
}

.sw-product-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === Loading State === */

.mhs-loading {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 3rem;
}

.mhs-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid var(--sw-border);
    border-top-color: var(--sw-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* === Responsive === */

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

    .sw-lookbook-item {
        width: 280px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .sw-hero {
        padding: 100px 1.25rem 2rem;
        min-height: 40vh;
    }

    .sw-hero-title {
        letter-spacing: -2px;
    }

    .sw-filter-bar {
        top: 56px;
    }

    .sw-filter-scroll {
        padding: 0 1rem;
    }

    .sw-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sw-product-image {
        padding-top: 130%;
    }

    .sw-product-name {
        font-size: 0.78rem;
    }

    .sw-product-info {
        padding: 0.65rem 0.7rem 0.85rem;
    }

    .sw-lookbook-item {
        width: 240px;
        height: 340px;
    }

    .sw-category-section {
        padding: 3rem 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .sw-hero-title {
        font-size: clamp(2.8rem, 16vw, 5rem);
    }

    .sw-hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .sw-product-grid {
        gap: 1px;
    }

    .sw-product-name {
        font-size: 0.72rem;
    }

    .sw-product-sub {
        font-size: 0.6rem;
    }

    .sw-product-info {
        padding: 0.5rem 0.6rem 0.7rem;
    }

    .sw-lookbook-item {
        width: 200px;
        height: 290px;
    }
}
