/* =====================================================
   T&E Sensations V3 – Brutalist Concrete
   Raw Anti-Design System
   ===================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
    /* Colors */
    --bg-primary: #e8e4dd;
    --bg-secondary: #d9d4cc;
    --bg-card: #e0dbd4;
    --bg-dark: #111111;
    --text-primary: #111111;
    --text-secondary: #444444;
    --text-muted: #5c5c5c;
    --accent: #d63400;
    --accent-hover: #bf2e00;
    --yellow: #ffdd00;
    --border: #111111;
    --border-width: 3px;
    --shadow-sm: 4px 4px 0 #111111;
    --shadow-md: 6px 6px 0 #111111;
    --shadow-lg: 8px 8px 0 #111111;

    /* Typography */
    --font-display: 'Space Mono', 'Courier New', monospace;
    --font-body: 'IBM Plex Mono', 'Courier New', monospace;

    /* Spacing */
    --container-max: 1320px;
    --container-padding: 24px;

    /* Transitions — brutalist: instant / stepped */
    --transition-fast: 0s;
    --transition-base: 0s;

    /* Border Radius — NONE */
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --radius-xl: 0px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --bg-secondary: #222222;
        --bg-card: #2a2a2a;
        --text-primary: #e8e4dd;
        --text-secondary: #aaaaaa;
        --text-muted: #999999;
        --border: #e8e4dd;
    }
}

/* --- Base Reset & Typography --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    letter-spacing: 0.02em;
}

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

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

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

/* --- @keyframes Animations (Brutalist: stepped) --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(16px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.muted {
    color: var(--text-muted);
}

.tiny {
    font-size: 0.7rem;
}

/* Hidden attribute support */
[hidden] {
    display: none !important;
}

/* Yellow marker highlight */
.highlight {
    background: var(--yellow);
    color: var(--bg-dark);
    padding: 0 8px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* --- Skip Link --- */
.skip {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: 0;
    z-index: 9999;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: var(--border-width) solid var(--bg-dark);
    transition: top 0.1s steps(3);
}

.skip:focus {
    top: 16px;
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-primary);
    border-bottom: var(--border-width) solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.brand-name {
    font-family: var(--font-display);
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav {
    display: flex;
    gap: 0;
}

.nav-link {
    padding: 8px 16px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: var(--border-width) solid transparent;
    transition: all 0s steps(1);
}

.nav-link:hover {
    background: var(--bg-dark);
    color: #fff;
    border-color: var(--bg-dark);
}

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

/* Search */
.search {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 10px 40px 10px 12px;
    border: var(--border-width) solid var(--border);
    border-radius: 0;
    background: var(--bg-secondary);
    font-family: var(--font-body);
    font-size: 0.75rem;
    width: 200px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    transition: all 0s steps(1);
}

.search-input::placeholder {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
}

.search .icon-btn {
    position: absolute;
    right: 4px;
}

/* Icon Button */
.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 0;
    color: var(--text-primary);
    transition: all 0s steps(1);
}

.icon-btn:hover {
    background: var(--bg-dark);
    color: #fff;
}

/* Menu Button (Mobile) */
.menu-btn {
    display: none;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    padding: 0;
    border-top: var(--border-width) solid var(--border);
    background: var(--bg-primary);
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-link {
    padding: 16px 20px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-bottom: 1px solid var(--border);
    transition: all 0s steps(1);
}

.mobile-link:hover {
    background: var(--bg-dark);
    color: #fff;
}

/* --- Hero Section --- */
.hero {
    padding: 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
    border-bottom: var(--border-width) solid var(--border);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0;
    align-items: stretch;
    position: relative;
    min-height: 520px;
}

.hero-copy {
    padding: 80px 48px 80px 0;
    max-width: 680px;
    color: #e8e4dd;
}

.pill {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 24px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 2px solid var(--accent);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 700;
    line-height: 1.0;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: #e8e4dd;
}

.hero-accent {
    color: var(--accent);
    display: inline;
}

.lead {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
    font-family: var(--font-body);
}

.hero .lead {
    color: #e8e4dd;
    font-family: var(--font-display);
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0;
}

.hero-cta {
    display: flex;
    gap: 0;
    margin-bottom: 48px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 0;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: var(--border-width) solid var(--border);
    transition: all 0s steps(1);
    cursor: pointer;
}

.btn:hover {
    background: var(--bg-dark);
    color: #fff;
    border-color: var(--bg-dark);
}

.btn.primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn.primary:hover {
    background: #fff;
    color: var(--accent);
    border-color: var(--accent);
}

.btn.ghost {
    background: transparent;
    border-color: var(--border);
}

.btn.ghost:hover {
    background: var(--bg-dark);
    color: #fff;
}

.hero .btn.ghost {
    border-color: #555;
    color: #e8e4dd;
}

.hero .btn.ghost:hover {
    background: #fff;
    color: var(--bg-dark);
    border-color: #fff;
}

/* Hero Metrics */
.hero-metrics {
    display: flex;
    gap: 40px;
}

.metric {
    border-left: var(--border-width) solid var(--accent);
    padding-left: 16px;
}

.metric-top {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #e8e4dd;
}

.metric-sub {
    font-size: 0.6875rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Hero Card */
.hero-card {
    background: #1a1a1a;
    border-left: var(--border-width) solid #333;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    position: relative;
}

.hero-card-top {
    display: flex;
    gap: 12px;
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
}

.hero-swatch {
    width: 32px;
    height: 32px;
    background: var(--sw);
    border: var(--border-width) solid #333;
    transition: transform 0s steps(1);
}

.hero-swatch:hover {
    transform: scale(1.15);
}

.hero-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.hero-shirt {
    width: 100%;
    flex: 1;
    background: #333;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-shirt img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-shirt .tee-shape {
    width: 60%;
    height: auto;
    aspect-ratio: 1 / 1.1;
}

.hero-card[role="button"] {
    cursor: pointer;
}

.hero-card[role="button"]:hover {
    border-left-color: var(--accent);
}

.hero-card-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(17, 17, 17, 0.9));
    z-index: 2;
}

.hero-card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
    color: #e8e4dd;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-card-sub {
    font-size: 0.6875rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* =====================================================
   Featured Products Carousel
   ===================================================== */
.featured-products {
    padding: 64px 0 80px;
    background: var(--bg-secondary);
    border-bottom: var(--border-width) solid var(--border);
    position: relative;
}

.featured-products h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.carousel-container {
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: auto;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

/* Featured Product Card */
.featured-card {
    flex: 0 0 calc(20% - 10px);
    min-width: 180px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s steps(4), transform 0.2s steps(4);
    border: var(--border-width) solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
}

.featured-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.featured-card:hover {
    background: var(--bg-dark);
    color: #fff;
}

.featured-card-image {
    position: relative;
    aspect-ratio: 1 / 1.1;
    background: #d4cfc8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: var(--border-width) solid var(--border);
}

.featured-card:hover .featured-card-image {
    border-bottom-color: #fff;
}

/* Product placeholder shapes */
.featured-card-image .product-shape {
    width: 60%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-card-image .tee-shape {
    width: 55%;
    aspect-ratio: 1 / 1.1;
    background: #1a1a1a;
    position: relative;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.15);
}

.featured-card-image .tee-shape::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-30%);
    width: 28%;
    height: 20%;
    background: #d4cfc8;
    border-radius: 50%;
}

.featured-card-image .pants-shape {
    width: 45%;
    aspect-ratio: 0.55 / 1;
    background: #1a1a1a;
    position: relative;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.15);
}

.featured-card-image .pants-shape::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8%;
    height: 85%;
    background: #d4cfc8;
}

.featured-card-image .shirt-shape {
    width: 65%;
    aspect-ratio: 1.2 / 1;
    background: #f5f5f5;
    position: relative;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.featured-card-image .jacket-shape {
    width: 70%;
    aspect-ratio: 1 / 0.9;
    background: #1a1a1a;
    position: relative;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

.featured-card-image .earring-shape {
    width: 40%;
}

/* Sold Out Badge */
.sold-out-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: transparent;
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sold-out-badge.sold-out-badge-shifted {
    right: auto;
    left: 12px;
}

/* Featured Card Info */
.featured-card-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 14px;
    gap: 12px;
}

.featured-card-name {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.featured-card-meta {
    font-size: 0.6875rem;
    color: var(--text-muted);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-card:hover .featured-card-name {
    color: #fff;
}

.featured-card:hover .featured-card-meta {
    color: var(--accent);
}

/* Carousel Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-100%);
    width: 44px;
    height: 44px;
    background: var(--bg-primary);
    border: var(--border-width) solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all 0s steps(1);
    z-index: 10;
    cursor: pointer;
}

.carousel-nav:hover {
    background: var(--bg-dark);
    color: #fff;
}

.carousel-nav.prev {
    left: -22px;
}

.carousel-nav.next {
    right: -22px;
}

.carousel-nav svg {
    width: 18px;
    height: 18px;
    color: currentColor;
}

/* =====================================================
   Shop Section
   ===================================================== */
.shop {
    padding: 80px 0;
    position: relative;
    border-bottom: var(--border-width) solid var(--border);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: var(--border-width) solid var(--border);
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sort Select */
.select {
    padding: 10px 36px 10px 12px;
    border: var(--border-width) solid var(--border);
    border-radius: 0;
    background: var(--bg-secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23111111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    appearance: none;
    cursor: pointer;
    min-width: 160px;
    color: var(--text-primary);
}

.select:focus {
    outline: none;
    border-color: var(--accent);
}

/* Shop Layout */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
}

/* Filters Sidebar */
.filters {
    display: flex;
    flex-direction: column;
    gap: 24px;
    border: var(--border-width) solid var(--border);
    padding: 20px;
    background: var(--bg-card);
}

.filter-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-title {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border);
    padding-bottom: 6px;
}

.filter-actions {
    display: flex;
    gap: 0;
}

.filter-actions .btn {
    flex: 1;
}

.filter-foot {
    padding-top: 16px;
    border-top: 2px solid var(--border);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Chips */
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 0;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0s steps(1);
    cursor: pointer;
}

.chip:hover {
    background: var(--bg-dark);
    color: #fff;
    border-color: var(--bg-dark);
}

.chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.chip-dot {
    width: 12px;
    height: 12px;
    border-radius: 0;
    background: var(--dot);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.chip:hover .chip-dot {
    border-color: rgba(255, 255, 255, 0.5);
}

/* Product Grid */
.products {
    min-width: 0;
}

.products-meta {
    margin-bottom: 16px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    grid-auto-rows: 1fr;
}

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

/* Product Card */
.card {
    background: var(--bg-card);
    border: var(--border-width) solid var(--border);
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    height: 100%;
    min-height: 0;
    transform: translateY(20px);
    transition: opacity 0.15s steps(3), transform 0.15s steps(3);
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card.visible:hover {
    background: var(--bg-dark);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.thumb {
    aspect-ratio: 1;
    background: #d4cfc8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: var(--border-width) solid var(--border);
}

.thumb.tee {
    background: #ccc8c0;
}

.thumb.accessory {
    background: #d9d0b8;
}

/* T-Shirt Shape */
.tee-shape {
    width: 55%;
    aspect-ratio: 1 / 1.1;
    background: linear-gradient(180deg, #222 0%, #111 100%);
    position: relative;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

.tee-neck {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 16px;
    background: inherit;
    border-radius: 50% 50% 0 0;
}

.tee-neck::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 12px;
    background: #d4cfc8;
    border-radius: 50%;
}

/* Accessory Shape */
.earring-shape {
    width: 35%;
    aspect-ratio: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.earring-shape::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #bbb, #888);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.earring-shape::after {
    content: '';
    width: 80%;
    aspect-ratio: 1;
    border: 4px solid;
    border-color: #d4a44a;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
}

.earring-shape.small {
    width: 60%;
}

.earring-shape.small::before {
    width: 7px;
    height: 7px;
}

.earring-shape.small::after {
    border-width: 3px;
    margin-top: 5px;
}

/* Product Image */
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Tag */
.tag {
    position: absolute;
    top: 0;
    right: 0;
    padding: 6px 12px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-left: var(--border-width) solid var(--bg-dark);
    border-bottom: var(--border-width) solid var(--bg-dark);
}

.tag.tag-shifted {
    right: auto;
    left: 0;
    border-left: none;
    border-right: var(--border-width) solid var(--bg-dark);
}

/* Card Body */
.card-body {
    padding: 12px 14px 16px;
    min-height: 114px;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.card-sub {
    font-size: 0.625rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.card.visible:hover .card-sub {
    color: #999;
}

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
    border-top: 2px solid var(--border);
}

.card.visible:hover .card-row {
    border-top-color: #333;
}

.card-meta {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =====================================================
   About Section
   ===================================================== */
.about {
    padding: 100px 0;
    background: var(--bg-dark);
    color: #e8e4dd;
    border-bottom: var(--border-width) solid var(--accent);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-copy h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.about .highlight {
    background: var(--accent);
    color: #fff;
}

.about .lead {
    color: #888;
}

.about-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.point {
    border-left: var(--border-width) solid var(--accent);
    padding-left: 16px;
}

.point-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8125rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about .muted {
    color: #999;
}

/* About Card */
.about-card {
    background: #1a1a1a;
    border: var(--border-width) solid #333;
    padding: 32px;
    box-shadow: 8px 8px 0 rgba(255, 59, 0, 0.3);
}

.about-card-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.about-card-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #e8e4dd;
    margin-bottom: 24px;
}

.badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mini {
    padding: 6px 12px;
    border: 2px solid #333;
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #aaa;
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
    padding: 40px 0;
    border-top: var(--border-width) solid var(--border);
    position: relative;
    background: var(--bg-primary);
}

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

.footer-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.footer-brand::after {
    content: '//';
    display: inline;
    color: var(--accent);
    margin-left: 8px;
}

.footer .muted {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-right {
    display: flex;
    gap: 24px;
}

.footer-link {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 8px 16px;
    border: 2px solid transparent;
    transition: all 0s steps(1);
}

.footer-link:hover {
    background: var(--bg-dark);
    color: #fff;
    border-color: var(--bg-dark);
}

/* =====================================================
   Overlay
   ===================================================== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.75);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.15s steps(3);
    pointer-events: none;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* =====================================================
   Modal
   ===================================================== */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.15s steps(3);
    pointer-events: none;
}

.modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal.open .modal-card {
    animation: modalIn 0.15s steps(4) both;
}

.modal-card {
    background: var(--bg-primary);
    border: var(--border-width) solid var(--border);
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: var(--border-width) solid var(--border);
    background: var(--bg-dark);
    color: #e8e4dd;
}

.modal-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.modal-head .icon-btn {
    color: #e8e4dd;
}

.modal-head .icon-btn:hover {
    background: var(--accent);
    color: #fff;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Modal Grid */
.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.modal-thumb {
    aspect-ratio: 1;
    background: #d4cfc8;
    border: var(--border-width) solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    cursor: zoom-in;
}

.modal-thumb .product-image {
    border-radius: 0;
}

.modal-thumb.tee {
    background: #ccc8c0;
}

.modal-thumb.accessory {
    background: #d9d0b8;
}

.modal-meta {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-sub {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.8125rem;
    line-height: 1.6;
}

/* Option Section */
.option {
    margin-bottom: 20px;
}

.option-title {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 4px;
}

/* Creator Match Section */
.match {
    padding-top: 20px;
    border-top: var(--border-width) solid var(--border);
}

.match-title {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 16px;
}

.match-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.match-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0s steps(1);
}

.match-item:hover {
    background: var(--bg-dark);
    color: #fff;
}

.match-swatch {
    width: 48px;
    height: 48px;
    background: #d4cfc8;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.match-swatch.tee {
    background: #ccc8c0;
}

.match-swatch.accessory {
    background: #d9d0b8;
}

.match-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.match-meta {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.match-item:hover .match-meta {
    color: #999;
}

.match-btn {
    margin-left: auto;
    padding: 8px 16px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid var(--accent);
    transition: all 0s steps(1);
}

.match-btn:hover {
    background: #fff;
    color: var(--accent);
}

/* =====================================================
   Accessory Overlays on Shirt Thumbnail
   ===================================================== */
.accessory-overlays {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
}

.listing-accessory-overlays {
    bottom: 12px;
    right: 12px;
    width: min(98px, 34%);
    gap: 6px;
}

.accessory-overlay-item {
    width: 72px;
    height: 72px;
    padding: 4px;
    background: rgba(232, 228, 221, 0.95);
    border: var(--border-width) solid var(--border);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0s steps(1);
    overflow: hidden;
}

.listing-accessory-overlay {
    width: 100%;
    height: auto;
    padding: 6px;
    padding-bottom: 4px;
    background: #f2ede5;
    transform: rotate(-7deg);
    transform-origin: bottom right;
    box-shadow: 8px 8px 0 rgba(17, 17, 17, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.listing-accessory-overlay .accessory-overlay-thumb {
    aspect-ratio: 1;
    height: auto;
}

.listing-accessory-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #555;
    margin-top: 2px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
}

.featured-card-image .listing-accessory-overlays {
    width: min(68px, 32%);
}

.featured-card-image .listing-accessory-overlay {
    padding: 4px;
    padding-bottom: 2px;
    transform: rotate(4deg);
}

.featured-card-image .listing-accessory-label {
    font-size: 8px;
    margin-top: 1px;
}

.listing-accessory-overlay:hover {
    transform: rotate(-7deg) translate(-2px, 2px);
    box-shadow: 10px 10px 0 rgba(17, 17, 17, 0.9);
}

.accessory-overlay-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.accessory-overlay-item.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent);
}

.accessory-overlay-thumb {
    width: 100%;
    height: 100%;
    background: #d9d0b8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.accessory-overlay-thumb .product-image {
    position: static;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Ensure accessory images aren't cropped in preview contexts */
.match-swatch .product-image {
    object-fit: contain;
    object-position: center;
}

.lightbox-thumb .product-image {
    object-fit: contain;
    object-position: center;
}

.modal-thumb.accessory .product-image {
    object-fit: contain;
    object-position: center;
}

.accessory-overlay-thumb .earring-shape {
    width: 60%;
}

.accessory-overlay-thumb .earring-shape::before {
    width: 4px;
    height: 4px;
}

.accessory-overlay-thumb .earring-shape::after {
    border-width: 2px;
    margin-top: 3px;
}

/* Different angles for each accessory overlay */
.accessory-overlay-item:nth-child(1) {
    transform: rotate(-5deg);
}

.accessory-overlay-item:nth-child(2) {
    transform: rotate(7deg);
}

.accessory-overlay-item:nth-child(3) {
    transform: rotate(-11deg);
}

.accessory-overlay-item:nth-child(4) {
    transform: rotate(3deg);
}

.accessory-overlay-item:nth-child(1):hover {
    transform: rotate(-5deg) translate(-2px, 2px);
}

.accessory-overlay-item:nth-child(2):hover {
    transform: rotate(7deg) translate(-2px, 2px);
}

.accessory-overlay-item:nth-child(3):hover {
    transform: rotate(-11deg) translate(-2px, 2px);
}

.accessory-overlay-item:nth-child(4):hover {
    transform: rotate(3deg) translate(-2px, 2px);
}

/* Different angles for listing overlays */
.listing-accessory-overlay:nth-child(1) {
    transform: rotate(-7deg);
}

.listing-accessory-overlay:nth-child(2) {
    transform: rotate(5deg);
}

.listing-accessory-overlay:nth-child(3) {
    transform: rotate(-12deg);
}

.listing-accessory-overlay:nth-child(1):hover {
    transform: rotate(-7deg) translate(-2px, 2px);
}

.listing-accessory-overlay:nth-child(2):hover {
    transform: rotate(5deg) translate(-2px, 2px);
}

.listing-accessory-overlay:nth-child(3):hover {
    transform: rotate(-12deg) translate(-2px, 2px);
}

.featured-card-image .listing-accessory-overlay:nth-child(1) {
    transform: rotate(4deg);
}

.featured-card-image .listing-accessory-overlay:nth-child(2) {
    transform: rotate(-8deg);
}

.accessory-overlay-label {
    display: none;
}

/* =====================================================
   Lightbox (stacks on top of product modal)
   ===================================================== */
.lightbox-backdrop {
    display: none !important;
}

.lightbox-backdrop.active {
    display: none !important;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 410;
    opacity: 0;
    transition: opacity 0.1s steps(2);
    pointer-events: none;
}

.lightbox.open {
    opacity: 1;
    pointer-events: none;
}

.lightbox.open .lightbox-card {
    animation: none;
}

.lightbox-card {
    background: var(--bg-primary);
    border: var(--border-width) solid var(--border);
    width: 164px;
    height: 164px;
    box-shadow: 10px 10px 0 rgba(17, 17, 17, 0.9);
    position: fixed;
    overflow: hidden;
    pointer-events: auto;
    transform: rotate(3deg);
    cursor: zoom-in;
}

.lightbox-close {
    display: none;
}

.lightbox-thumb {
    width: 100%;
    height: 100%;
    background: #d4cfc8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.lightbox-thumb.tee {
    background: #ccc8c0;
}

.lightbox-thumb.accessory {
    background: #d9d0b8;
}

.lightbox-info {
    display: none;
}

.lightbox-title {
    display: none;
}

.lightbox-meta {
    display: none;
}

.lightbox-blurb {
    display: none;
}

.lightbox-colors {
    display: none;
}

.lightbox-dot {
    display: none;
}

.lightbox-actions {
    display: none;
}

.lightbox-actions .btn {
    display: none;
}

/* =====================================================
   Zoom Preview
   ===================================================== */
.zoom-preview {
    position: fixed;
    inset: 0;
    z-index: 600;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.15s steps(3);
    pointer-events: none;
}

.zoom-preview.open {
    opacity: 1;
    pointer-events: auto;
}

.zoom-preview-container {
    position: relative;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.zoom-preview-container:active {
    cursor: grabbing;
}

.zoom-preview-container img {
    display: block;
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.zoom-preview-container .zoom-shape-wrapper {
    width: min(400px, 85vw);
    aspect-ratio: 1 / 1.1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d4cfc8;
    border: var(--border-width) solid var(--border);
}

@media (prefers-color-scheme: dark) {
    .zoom-preview-container .zoom-shape-wrapper {
        background: #2a2a2a;
    }
}

/* =====================================================
   Size Guide Table
   ===================================================== */
.table {
    width: 100%;
    border: var(--border-width) solid var(--border);
    overflow: hidden;
}

.trow {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.trow:not(:last-child) {
    border-bottom: 2px solid var(--border);
}

.thead {
    background: var(--bg-dark);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #e8e4dd;
}

.tcell {
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    border-right: 1px solid var(--border);
}

.tcell:last-child {
    border-right: none;
}

/* =====================================================
   Toast Notification
   ===================================================== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    padding: 14px 28px;
    background: var(--bg-dark);
    color: #e8e4dd;
    border: var(--border-width) solid var(--accent);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: var(--shadow-md);
    z-index: 500;
    opacity: 0;
    pointer-events: none;
}

.toast.show {
    animation: toastIn 0.15s steps(3) both;
    pointer-events: auto;
}

.toast.hide {
    animation: toastOut 0.15s steps(3) both;
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-copy {
        padding: 60px 0;
    }

    .hero-card {
        display: none;
    }

    .shop-layout {
        grid-template-columns: 220px 1fr;
        gap: 24px;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .featured-card {
        flex: 0 0 calc(33.333% - 8px);
        min-width: 170px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 16px;
    }

    .nav {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

    .mobile-menu:not([hidden]) {
        display: block;
    }

    .search-input {
        width: 140px;
    }

    .hero {
        padding: 0;
    }

    .hero h1 {
        font-size: clamp(2.25rem, 10vw, 4rem);
    }

    .hero-metrics {
        flex-wrap: wrap;
        gap: 20px;
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

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

    .filters {
        display: none;
    }

    #openFiltersMobile {
        display: block;
    }

    .modal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .featured-card {
        flex: 0 0 calc(50% - 6px);
        min-width: 170px;
    }

    .carousel-nav {
        display: none;
    }

    .accessory-overlay-item {
        width: 60px;
        height: 60px;
        padding: 3px;
    }

    .listing-accessory-overlay {
        padding: 4px;
        padding-bottom: 2px;
    }

    .listing-accessory-label {
        font-size: 8px;
    }

    .lightbox-card {
        /* Size set dynamically by JS relative to modal photo */
    }

    .lightbox {
        padding: 0;
    }

    .section-head {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-copy {
        padding: 40px 0;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .featured-card {
        flex: 0 0 80%;
        min-width: 200px;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   Dark Mode Overrides
   ===================================================== */
@media (prefers-color-scheme: dark) {
    .hero {
        background: #0a0a0a;
    }

    .hero-card {
        background: #111;
        border-left-color: #333;
    }

    .featured-products {
        background: #1a1a1a;
    }

    .featured-card-image {
        background: #2a2a2a;
    }

    .thumb {
        background: #2a2a2a;
    }

    .thumb.tee {
        background: #252525;
    }

    .thumb.accessory {
        background: #2d2820;
    }

    .modal-thumb {
        background: #2a2a2a;
    }

    .modal-thumb.tee {
        background: #252525;
    }

    .modal-thumb.accessory {
        background: #2d2820;
    }

    .accessory-overlay-item {
        background: rgba(42, 42, 42, 0.95);
        border-color: var(--border);
    }

    .accessory-overlay-thumb {
        background: #2d2820;
    }

    .lightbox-card {
        border-color: var(--border);
        background: #1a1a1a;
    }

    .lightbox-thumb {
        background: #2a2a2a;
    }

    .lightbox-thumb.tee {
        background: #252525;
    }

    .lightbox-thumb.accessory {
        background: #2d2820;
    }

    .match-swatch {
        background: #2a2a2a;
    }

    .match-swatch.tee {
        background: #252525;
    }

    .match-swatch.accessory {
        background: #2d2820;
    }

    .about {
        background: #0a0a0a;
    }

    .about-card {
        background: #111;
    }

    .tee-neck::before {
        background: #2a2a2a;
    }

    .select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23e8e4dd' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }

    .search-input:focus {
        color: #111111;
    }
}

/* =====================================================
   Reduced Motion
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .card,
    .featured-card {
        opacity: 1 !important;
        transform: none !important;
    }

    .toast {
        opacity: 1;
        transform: translateX(-50%);
    }

    .toast.show {
        animation: none;
        opacity: 1;
        transform: translateX(-50%);
    }

    .toast.hide {
        animation: none;
        opacity: 0;
    }
}
