@import url("brutalist-buttons.58bb5ae30a81.css");

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

:root {
    --black: #000000;
    --white: #FFFFFF;
    --gray: #1a1a1a;
    --red: #DC143C;
    --bg: #FAFAFA;
    --font-primary: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

    /* New design tokens for consistency */
    --border-width: 3px;
    --border-radius: 0;
    --transition-speed: 0.15s;
    --shadow-offset: 4px;

    /* Formation layout system */
    --shell-max-width: 1320px;
    --shell-gutter: 16px;
    --header-height: 43px;
    --nav-item-height: 40px;
    --footer-height: 56px;

    /* Spacing scale (4px grid) - Unified system */
    --space-1: 4px;   /* xs */
    --space-2: 8px;   /* sm */
    --space-3: 12px;  /* md */
    --space-4: 16px;  /* lg */
    --space-5: 24px;  /* xl */
    --space-6: 32px;  /* 2xl */
    --space-7: 40px;  /* 3xl */
    --space-8: 48px;  /* 4xl */
    --space-9: 64px;  /* 5xl */

    /* Component bounds */
    --card-height: 376px;
    --card-min-height: 336px;
    --card-image-height: 168px;
    --card-actions-height: 44px;
}

body,
body * {
    font-family: var(--font-primary) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Variable font support for better rendering */
@supports (font-variation-settings: normal) {
    body * {
        font-variation-settings: 'wght' 700;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg);
    color: var(--black);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: clamp(12.15px, 0.527vw + 9.72px, 12.96px);
    letter-spacing: 0.81px;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Momentum scrolling on iOS */
body,
.modal-content,
.cart-items {
    -webkit-overflow-scrolling: touch;
}

/* Prevent flex/grid overflow */
* {
    min-width: 0;
}

/* Loading states */
body.page-loading {
    opacity: 0;
}

body.page-loading * {
    transition: none !important;
}

body.page-loaded {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

body.overlay-open {
    overflow: hidden;
    touch-action: none;
    position: fixed;
    width: 100%;
    height: 100%;
}

#overlay-root {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
}

#overlay-root .backdrop {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
    pointer-events: none;
    z-index: 1999;
    will-change: opacity, backdrop-filter;
    transform: translateZ(0);
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(12px)) {
    #overlay-root .backdrop {
        background: rgba(0, 0, 0, 0.85);
    }
}

#overlay-root .overlay {
    position: fixed;
    inset: 0;
    z-index: 2001;
    pointer-events: none;
}

#overlay-root.is-active {
    pointer-events: auto;
}

#overlay-root.is-active .backdrop {
    opacity: 1;
    pointer-events: auto;
}

#overlay-root .overlay > * {
    pointer-events: auto;
}

p,
.product-seller,
.product-vendor,
.store-owner,
.store-description,
.store-address,
.products-count,
.category-name,
.category-count,
.comment-body,
.comment-meta,
.comment-login-hint,
.store-address strong {
    color: #0f0f0f;
}


/* Main content wrapper - grows to push footer down */
#app-root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main, section.hero-section, section.products-section,
section.categories-section, section.products-page {
    flex: 1 0 auto;
}

.products-section,
.featured-brands-section,
.categories-section {
    content-visibility: auto;
    contain-intrinsic-size: 600px;
}

/* GPU Acceleration for performance */
.product-card,
.btn-primary,
.btn-secondary,
.image-viewer-modal,
.nav-container,
.category-card {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* NAVIGATION */
.nav-bar {
    background-color: var(--black);
    color: var(--white);
    padding: 0;
    position: relative;
    z-index: 1000;
    transition: all 0.3s ease;
    height: var(--header-height);
    flex-shrink: 0;
}

.nav-bar.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.nav-bar.scrolled {
    padding: 0;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.95);
}

.nav-container {
    max-width: var(--shell-max-width);
    margin: 0 auto;
    padding: 0.5px var(--shell-gutter) 0;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    flex-wrap: nowrap;
    width: 100%;
    height: 100%;
}

.nav-bar.scrolled .nav-container {
    justify-content: space-between;
}

.nav-logo {
    font-size: 26px;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 3px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    justify-self: start;
    display: flex;
    align-items: center;
    height: var(--nav-item-height);
}

.logo-image {
    height: 100%;
    width: auto;
    transition: all 0.3s ease;
    display: block;
    object-fit: contain;
}

.nav-bar.scrolled .nav-logo {
    font-size: 22px;
    height: var(--nav-item-height);
}

.nav-bar.scrolled .logo-image {
    height: 100%;
}

.nav-controls {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    transition: all 0.3s ease;
    flex-wrap: nowrap;
    min-width: 0;
    overflow: visible;
}

.nav-toggle {
    display: none;
    border: 2px solid var(--white);
    background: transparent;
    color: var(--white);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    letter-spacing: 2px;
    height: var(--nav-item-height);
    padding: 0 var(--space-2);
    cursor: pointer;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.nav-toggle:hover {
    background: var(--white);
    color: var(--black);
}


body.nav-open {
    overflow: hidden;
}

.nav-bar.scrolled .nav-controls {
    justify-content: flex-start;
}

.nav-search {
    position: relative;
    display: flex;
    flex: 0 1 320px;
    max-width: 320px;
    height: var(--nav-item-height);
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.25s ease, max-width 0.3s ease, transform 0.3s ease;
}

.nav-search.is-collapsed,
.nav-bar.scrolled .nav-search {
    opacity: 0;
    pointer-events: none;
    max-width: 0;
    transform: translateX(-6px);
}

.nav-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 0 var(--space-2);
    border: 0;
    background: rgba(0, 0, 0, 0.2);
    color: var(--white);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.nav-search-label {
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
}

.nav-search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--white);
    font-size: 12px;
    letter-spacing: 1px;
    outline: none;
}

.nav-search-input::placeholder {
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 1px;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    width: min(520px, 90vw);
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    max-height: 340px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1200;
}

.search-dropdown.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.search-dropdown .search-results {
    max-height: 320px;
    padding: 12px;
    background: #1f1f1f;
}

.search-dropdown .search-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
}

.search-dropdown .search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
}

.nav-time {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-left: auto;
    text-transform: uppercase;
    height: var(--nav-item-height);
    white-space: nowrap;
    flex: 0 0 auto;
    max-width: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    transition: max-width 0.3s ease, opacity 0.2s ease, padding 0.3s ease, border-width 0.3s ease;
}

.nav-bar.scrolled .nav-time {
    max-width: 170px;
    opacity: 1;
    visibility: visible;
    padding: 4px 12px;
    border-width: 0;
}

.time-icon {
    font-size: 13px;
    letter-spacing: 2px;
}

.time-display {
    font-size: 13px;
    letter-spacing: 2px;
}

.nav-logo.glitch-active {
    animation: glitch 2s;
}

.nav-logo.glitch-active .logo-image {
    animation: glitch-image 2s;
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
        text-shadow: none;
    }
    10% {
        transform: translate(-3px, 3px);
        text-shadow: 3px -3px 0 var(--red);
    }
    20% {
        transform: translate(3px, -3px);
        text-shadow: -3px 3px 0 var(--red);
    }
    30% {
        transform: translate(-3px, -3px);
        text-shadow: 3px 3px 0 var(--red);
    }
    40% {
        transform: translate(3px, 3px);
        text-shadow: -3px -3px 0 var(--red);
    }
    50% {
        transform: translate(-2px, 2px);
        text-shadow: 2px -2px 0 var(--red);
    }
    60% {
        transform: translate(2px, -2px);
        text-shadow: -2px 2px 0 var(--red);
    }
    70% {
        transform: translate(-2px, -2px);
        text-shadow: 2px 2px 0 var(--red);
    }
    80% {
        transform: translate(2px, 2px);
        text-shadow: -2px -2px 0 var(--red);
    }
    90% {
        transform: translate(-1px, 1px);
        text-shadow: 1px -1px 0 var(--red);
    }
}

@keyframes glitch-image {
    0%, 100% {
        transform: translate(0);
        filter: none;
    }
    10% {
        transform: translate(-3px, 3px);
        filter: drop-shadow(3px -3px 0 var(--red)) hue-rotate(90deg);
    }
    20% {
        transform: translate(3px, -3px);
        filter: drop-shadow(-3px 3px 0 var(--red)) hue-rotate(180deg);
    }
    30% {
        transform: translate(-3px, -3px);
        filter: drop-shadow(3px 3px 0 var(--red)) hue-rotate(270deg);
    }
    40% {
        transform: translate(3px, 3px);
        filter: drop-shadow(-3px -3px 0 var(--red)) hue-rotate(45deg);
    }
    50% {
        transform: translate(-2px, 2px);
        filter: drop-shadow(2px -2px 0 var(--red)) hue-rotate(135deg);
    }
    60% {
        transform: translate(2px, -2px);
        filter: drop-shadow(-2px 2px 0 var(--red)) hue-rotate(225deg);
    }
    70% {
        transform: translate(-2px, -2px);
        filter: drop-shadow(2px 2px 0 var(--red)) hue-rotate(315deg);
    }
    80% {
        transform: translate(2px, 2px);
        filter: drop-shadow(-2px -2px 0 var(--red)) hue-rotate(90deg);
    }
    90% {
        transform: translate(-1px, 1px);
        filter: drop-shadow(1px -1px 0 var(--red)) hue-rotate(180deg);
    }
}


.nav-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    margin-left: auto;
    min-width: 0;
    overflow: hidden;
    flex: 1 1 auto;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 0 var(--space-2);
    font-size: 13px;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    height: var(--nav-item-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.12);
    border-bottom: 3px solid transparent;
}

.nav-links a:hover {
    background-color: var(--red);
    color: var(--white);
    border-color: var(--red);
    transform: scale(0.95);
}

.nav-links a.is-active {
    background-color: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.nav-close {
    display: none;
    width: 100%;
    border: 2px solid var(--white);
    background: transparent;
    color: var(--white);
    font-size: 22px;
    font-weight: bold;
    height: 48px;
    cursor: pointer;
    letter-spacing: 2px;
}

.nav-cart-link {
    gap: 8px;
    padding-right: 18px;
}

.nav-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    padding: 0 6px;
    border: 0;
    background: rgba(255, 255, 255, 0.1);
    font-size: 12px;
}

/* DEV BANNER */
.dev-banner {
    background: #dc143c;
    border-bottom: 2px solid var(--black);
    border-top: 2px solid var(--black);
}

.dev-banner-inner {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 1px var(--shell-gutter);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: center;
    min-height: 20px;
}

.dev-banner-preface {
    color: var(--white);
    font-weight: 800;
    letter-spacing: 0.5px;
    font-size: 10px;
    white-space: nowrap;
}

.dev-banner-link {
    border: 2px solid var(--black);
    background: var(--black);
    color: var(--white);
    padding: 5px 10px;
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dev-banner-link:hover {
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.dev-banner-divider {
    font-size: 10px;
    letter-spacing: 1px;
    font-weight: 800;
    color: var(--white);
}

.dev-banner-github {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--black);
    background: var(--black);
    padding: 1px 10px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    min-width: auto;
    height: 16px;
}

.dev-banner-github-logo {
    height: 11px;
    width: auto;
    display: block;
    filter: invert(0);
}

.dev-banner-github:hover {
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

.dev-banner-github:active {
    transform: translate(0, 0);
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

@media (prefers-reduced-motion: reduce) {
    .nav-bar,
    .nav-container,
    .nav-search,
    .nav-time,
    .nav-links a {
        transition: none !important;
    }
}

/* ANIMATED UPVOTE BUTTON */
/* ============================================
   BRUTALIST UPVOTE BUTTON - REDESIGNED 2026
   ============================================ */
.upvote-button {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    height: 40px;
    width: 105px;
    border: 3px solid var(--black);
    background: var(--white);
    overflow: hidden;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.15);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Courier New', monospace;
    user-select: none;
}

.upvote-button:hover {
    background: #fafafa;
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
}

.upvote-button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15);
}

.upvote-button.active {
    background: var(--red);
    border-color: var(--black);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

.upvote-button.active:hover {
    background: #e60000;
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.25);
}

.upvote-button.active:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.upvote-button.small {
    height: 36px;
    width: 90px;
}

.upvote-button input[type="checkbox"] {
    display: none;
}

.upvote-button .like {
    width: 68%;
    height: 100%;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
}

.upvote-button .like-icon {
    fill: var(--black);
    height: 24px;
    width: 24px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    stroke: var(--black);
    stroke-width: 0.5px;
}

.upvote-button.small .like-icon {
    height: 20px;
    width: 20px;
}

.upvote-button.active .like-icon {
    fill: var(--white);
    stroke: var(--white);
    animation: heartBeat 0.3s ease 1;
}

.upvote-button .like-text {
    display: none;
}

.upvote-button .upvote-count {
    position: absolute;
    right: 0;
    width: 32%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--black);
    font-size: 13px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    border-left: 3px solid var(--black);
    background: #f0f0f0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.upvote-button.small .upvote-count {
    font-size: 12px;
}

.upvote-button.active .upvote-count {
    background: #b00;
    color: var(--white);
    border-left-color: var(--black);
}

.upvote-button .upvote-count.two {
    transform: translateY(36px);
}

.upvote-button.small .upvote-count.two {
    transform: translateY(32px);
}

.upvote-button.active .upvote-count.two {
    transform: translateY(0);
}

.upvote-button.active .upvote-count.one {
    transform: translateY(-36px);
}

.upvote-button.small.active .upvote-count.one {
    transform: translateY(-32px);
}

/* Brutalist Animations */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* DELETE COMMENT BUTTON */
.delete-comment-btn,
.btn-delete-comment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    background-color: transparent;
    color: #888;
    border: 2px solid #888;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-comment-btn:hover,
.btn-delete-comment:hover {
    background-color: var(--red);
    color: var(--white);
    border-color: var(--red);
    transform: scale(1.05);
}

.delete-comment-btn:active,
.btn-delete-comment:active {
    transform: scale(0.95);
}

/* WISHLIST BUTTON */
.wishlist-btn {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    width: 36px;
    height: 36px;
    border: 2px solid var(--black);
    background-color: var(--white);
    color: var(--black);
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
}

.wishlist-btn:hover {
    background-color: var(--black);
    color: var(--white);
    transform: scale(1.1);
}

.wishlist-btn.active {
    background-color: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.wishlist-icon {
    font-size: 18px;
    line-height: 1;
    user-select: none;
}

/* Wishlist button variant for detail page */
.wishlist-btn-detail {
    position: static;
    width: auto;
    height: auto;
    padding: 8px 16px;
    gap: 8px;
}

.wishlist-label {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.5px;
}

/* Product detail header with wishlist */
.product-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

/* WISHLIST PAGE */
.wishlist-page {
    padding: var(--space-4) 0;
}

.wishlist-container {
    max-width: var(--shell-max-width);
    margin: 0 auto;
    padding: 0 var(--shell-gutter);
}

/* Compact Header */
.wishlist-header-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) 0;
    margin-bottom: var(--space-4);
    border-bottom: 2px solid var(--black);
}

.wishlist-title-small {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    margin: 0;
}

.wishlist-count-small {
    font-size: 12px;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border: 2px solid var(--black);
    background-color: var(--black);
    color: var(--white);
    font-weight: bold;
}

/* Compact Empty State */
.wishlist-empty-compact {
    text-align: center;
    padding: var(--space-6) var(--space-4);
    border: 3px solid var(--black);
    background-color: var(--white);
    margin-top: var(--space-4);
}

.empty-icon-small {
    font-size: 48px;
    color: var(--gray);
    margin-bottom: var(--space-3);
    opacity: 0.5;
}

.empty-title-small {
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: var(--space-2);
    font-weight: bold;
}

.empty-text-small {
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--gray);
    margin-bottom: var(--space-4);
}

@media (max-width: 768px) {
    .wishlist-btn {
        width: 32px;
        height: 32px;
    }

    .wishlist-icon {
        font-size: 16px;
    }

    .wishlist-btn-detail {
        padding: 6px 12px;
    }

    .wishlist-label {
        font-size: 10px;
    }

    .product-detail-header {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    /* Make wishlist button more compact on small screens */
    .wishlist-btn-detail {
        padding: 8px 12px;
        min-width: auto;
        white-space: nowrap;
        gap: 6px;
    }

    .wishlist-label {
        font-size: 9px;
        letter-spacing: 0.5px;
    }

    .wishlist-icon {
        font-size: 16px;
        flex-shrink: 0;
    }

    /* Wishlist page mobile */
    .wishlist-header-compact {
        padding: var(--space-2) 0;
        margin-bottom: var(--space-3);
    }

    .wishlist-title-small {
        font-size: 16px;
    }

    .wishlist-count-small {
        font-size: 11px;
        padding: 3px 10px;
    }

    .wishlist-empty-compact {
        padding: var(--space-5) var(--space-3);
        border-width: 2px;
    }

    .empty-icon-small {
        font-size: 40px;
    }

    .empty-title-small {
        font-size: 14px;
    }

    .empty-text-small {
        font-size: 11px;
    }
}

.vendor-badge {
    background-color: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
    padding: 4px 12px;
    font-size: 13px;
    letter-spacing: 2px;
}

.cart-toast {
    position: fixed;
    top: calc(var(--header-height, 72px) + 12px);
    right: 20px;
    background-color: var(--black);
    color: var(--white);
    border: 0;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: min(90vw, 360px);
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 0.4px;
    line-height: 1.1;
    text-align: center;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1100;
}

.cart-toast.visible,
.cart-toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .nav-container {
        flex-wrap: nowrap;
        row-gap: 0;
        align-items: center;
    }

    .nav-controls {
        justify-content: flex-end;
        gap: 8px;
        width: 100%;
        flex-wrap: nowrap;
    }

    .nav-toggle {
        display: inline-flex;
        border: 0;
    }

    .nav-search {
        flex: 0 1 220px;
        max-width: 220px;
        height: 38px;
    }

    .nav-search-field {
        padding: 0 10px;
    }

    .nav-search-label {
        font-size: 10px;
    }

    .nav-search-input::placeholder {
        color: rgba(255, 255, 255, 0.7);
    }

    .search-dropdown {
        position: fixed;
        top: calc(var(--header-height, 72px) + 12px);
        left: 50%;
        right: auto;
        width: min(92vw, 520px);
        max-height: 360px;
        transform: translate(-50%, -6px);
    }

    .search-dropdown.is-open {
        transform: translate(-50%, 0);
    }

    .search-dropdown .search-results {
        max-height: 260px;
        padding: 10px;
    }

    .search-dropdown .search-results {
        max-height: 280px;
        padding: 10px;
    }

    .search-dropdown .search-results {
        max-height: 320px;
        padding: 10px;
    }

    .nav-links {
        position: fixed;
        top: env(safe-area-inset-top, 0px);
        right: 0;
        bottom: env(safe-area-inset-bottom, 0px);
        left: 0;
        display: flex;
        flex-direction: column;
        background: var(--black);
        padding: max(6svh, env(safe-area-inset-top, 0px)) 20px max(6svh, env(safe-area-inset-bottom, 0px));
        gap: 18px;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        margin-left: 0;
        z-index: 1200;
        justify-content: center;
        padding-top: max(8svh, env(safe-area-inset-top, 0px));
        align-items: center;
        min-height: calc(100svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        max-height: calc(100svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .nav-links.is-mobile-open {
        transform: translateX(0);
    }

    .nav-links a {
        width: min(82vw, 320px);
        font-size: 16px;
        height: 52px;
        background: rgba(255, 255, 255, 0.08);
        justify-content: center;
    }

    .nav-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-time {
        margin-left: auto;
    }
}

/* HERO SECTION */
.hero-section {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border-bottom: 5px solid var(--black);
    background: radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.08), transparent 30%),
                radial-gradient(circle at 80% 10%, rgba(220, 20, 60, 0.08), transparent 30%),
                var(--bg);
    padding: 28px 0 36px;
}

.gif-slider-container {
    width: min(1100px, 92vw);
    aspect-ratio: 21 / 9;
    height: auto;
    border: 4px solid var(--black);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.08));
    box-shadow: none;
}

.gif-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.gif-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(235, 235, 235, 0.65));
}

.gif-slide.active {
    opacity: 1;
}

.gif-slide img,
.gif-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.35s ease, filter 0.35s ease;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.02));
    filter: saturate(1.02);
}

.gif-slide video.is-ready,
.gif-slide img.is-ready {
    opacity: 1;
}

.gif-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--white);
    border: 3px dashed var(--black);
}

.gif-placeholder h1 {
    font-size: clamp(26px, 4vw, 44px);
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.gif-placeholder p {
    font-size: clamp(12px, 2vw, 18px);
    letter-spacing: 2px;
}

.slider-controls {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.slider-btn {
    background-color: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
    padding: 6px 12px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: none;
}

.slider-btn:hover {
    background-color: var(--red);
    border-color: var(--red);
    color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
    .gif-slide,
    .nav-bar,
    .nav-container,
    .nav-btn,
    .product-card {
        transition-duration: 0.15s;
    }

    .gif-slide video {
        transition: opacity 0.2s ease;
    }
}

/* SECTIONS */
.products-section,
.categories-section,
.featured-brands-section {
    padding: var(--space-8) 0;
    border-bottom: 4px solid var(--black);
}

.featured-brands-section {
    background-color: rgba(0, 0, 0, 0.02);
}

.container {
    width: 100%;
    max-width: var(--shell-max-width);
    margin: 0 auto;
    padding: 0 var(--shell-gutter);
}

.section-title {
    font-size: clamp(26px, 2.4vw, 34px);
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: var(--space-4);
    text-align: center;
    border: 2px solid var(--black);
    padding: 6px var(--space-4);
    background-color: var(--black);
    color: var(--white);
}

.section-subtitle {
    text-align: center;
    margin-bottom: var(--space-4);
    font-size: 14px;
    letter-spacing: 2px;
    color: #2b2b2b;
}

/* UNIFIED 5-COLUMN GRID - ALL DEVICES */
.product-grid,
.product-grid-5col,
.product-grid.five-column,
.core-grid.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-4);
    width: 100%;
    margin-bottom: var(--space-6);
}

/* Maintain 5 columns on large desktop */
@media (max-width: 1400px) {
    .product-grid,
    .product-grid-5col,
    .product-grid.five-column,
    .core-grid.product-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: var(--space-4);
    }
}

/* Tablet - 3 columns */
@media (max-width: 1024px) {
    .product-grid,
    .product-grid-5col,
    .product-grid.five-column,
    .core-grid.product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4);
    }
}

.product-card {
    border: var(--border-width) solid var(--black);
    background-color: var(--white);
    transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
                border-color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

.product-card-inactive {
    opacity: 0.7;
    border-color: #666;
}

.product-card-inactive .product-image {
    filter: grayscale(50%);
}

.product-status-banner {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--red);
    color: var(--white);
    padding: 6px 16px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.5px;
    border: 3px solid var(--black);
    z-index: 10;
    white-space: nowrap;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.product-image {
    width: 100%;
    height: 200px;
    min-height: 200px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    overflow: hidden;
    border-bottom: 3px solid var(--black);
    box-sizing: border-box;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 12px 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.product-name {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 0;
    line-height: 1.3;
    max-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    position: relative;
}

/* Marquee animation for overflowing product card titles */
.product-name.marquee {
    display: block;
    white-space: nowrap;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
}

.product-name.marquee span {
    display: inline-block;
    animation: none;
    will-change: transform;
}

/* Duplicate text for seamless loop */
.product-name.marquee span::after {
    content: attr(data-text);
    padding-left: 2em;
}

/* Play animation once on initial load */
.product-name.marquee.animate-once span {
    animation: marquee-card-seamless 8s linear 1;
}

/* Play animation on hover */
.product-card:hover .product-name.marquee span {
    animation: marquee-card-seamless 8s linear infinite;
}

@keyframes marquee-card-seamless {
    0% {
        transform: translateX(0) translateZ(0);
    }
    100% {
        transform: translateX(-50%) translateZ(0);
    }
}

.product-vendor,
.product-seller {
    font-size: 11px;
    color: var(--gray);
    margin-bottom: 0;
    letter-spacing: 0.5px;
    line-height: 1.3;
    max-height: 1.3em;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 0;
    color: var(--black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-stack {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 4px;
}

.price-current {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: var(--black);
    white-space: nowrap;
}

.price-original {
    font-size: 12px;
    text-decoration: line-through;
    color: #6c6c6c;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.price-badge {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.5px;
    border: 2px solid var(--black);
    padding: 2px 8px;
    background-color: var(--red);
    color: var(--white);
    white-space: nowrap;
    line-height: 1.2;
}

.price-original-inline {
    text-decoration: line-through;
    opacity: 0.7;
    margin-right: 6px;
}

.price-current-inline {
    font-weight: bold;
    letter-spacing: 1px;
}

.product-cta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: auto;
    min-height: 44px;
    height: 44px;
    flex-shrink: 0;
    border-top: 3px solid var(--black);
    overflow: hidden;
    box-sizing: border-box;
}

.product-cta-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    background-color: var(--white);
    color: var(--black);
    border-right: 3px solid var(--black);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.product-cta-item:last-child {
    border-right: 0;
}

.product-cta-item:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: -2px;
}

.product-cta-primary {
    background-color: var(--black);
    color: var(--white);
}

.product-cta-primary:hover {
    background-color: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.product-cta-secondary:hover {
    background-color: var(--black);
    color: var(--white);
}

/* REMOVED OLD BUTTON SYSTEM - SEE BRUTALIST-BUTTONS.CSS */

/* FEATURED BRANDS */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-4);
}

.brand-card {
    border: 2px dashed var(--black);
    background-color: var(--white);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    max-height: 200px;
    overflow: hidden;
}

.brand-card small {
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--gray);
}

/* CATEGORY GRID */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-6);
}

.category-card {
    padding: var(--space-6);
    border: var(--border-width) solid var(--black);
    background-color: var(--white);
    text-align: center;
    text-decoration: none;
    color: var(--black);
    transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
                border-color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
                background-color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
                color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-user-select: none;
    user-select: none;
    min-height: 180px;
    max-height: 240px;
    overflow: hidden;
}

.category-card:hover {
    background-color: var(--red);
    border-color: var(--red);
    color: var(--white);
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0 var(--black);
}

.category-card h3 {
    font-size: 22px;
    letter-spacing: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* REFINED IMAGE VIEWER - Smaller, Elegant, Light Brutalist */
.img-viewer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.img-viewer.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-viewer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(3px);
    cursor: pointer;
}

.img-viewer-content {
    position: relative;
    width: 90%;
    max-width: 920px;
    max-height: 82vh;
    background: var(--white);
    border: 2px solid var(--black);
    z-index: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0,0,0,0.22);
}

.img-viewer-close {
    position: absolute;
    top: -42px;
    right: 0;
    width: 38px;
    height: 38px;
    background: var(--red);
    border: 2px solid var(--black);
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s;
}

.img-viewer-close:hover {
    background: var(--black);
}

.img-viewer-grid {
    display: grid;
    grid-template-columns: 1fr 285px;
    height: 400px;
}

.img-viewer-main {
    position: relative;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 400px;
}

.img-viewer-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.img-viewer-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.82);
    color: var(--white);
    padding: 4px 11px;
    border: 1px solid rgba(255,255,255,0.25);
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.4px;
}

.img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: rgba(0,0,0,0.78);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.img-nav:hover {
    background: var(--red);
    border-color: var(--red);
}

.img-nav-prev {
    left: 11px;
}

.img-nav-next {
    right: 11px;
}

.img-viewer-info {
    padding: 18px;
    background: var(--white);
    border-left: 2px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.img-viewer-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.4px;
    border-bottom: 2px solid var(--black);
    padding-bottom: 9px;
    line-height: 1.3;
    overflow: hidden;
    position: relative;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Marquee animation for overflowing text */
.img-viewer-title.marquee {
    white-space: nowrap;
}

.img-viewer-title.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 8s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.img-viewer-price {
    font-size: 19px;
    font-weight: 900;
    color: var(--red);
    letter-spacing: 0.4px;
}

.img-viewer-vendor {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-decoration: none;
    color: #666;
    border-bottom: 1px solid transparent;
    display: inline-block;
    transition: all 0.2s;
}

.img-viewer-vendor:hover {
    color: var(--red);
    border-bottom-color: var(--red);
}

.img-viewer-vendor.is-disabled {
    opacity: 0.5;
    pointer-events: none;
    border-bottom-color: transparent;
}

.img-viewer-stock {
    padding: 5px 9px;
    border: 2px solid var(--black);
    font-weight: 700;
    font-size: 9px;
    letter-spacing: 0.7px;
    text-align: center;
}

.img-viewer-stock.in-stock {
    background: var(--black);
    color: var(--white);
}

.img-viewer-stock.out-stock {
    background: var(--white);
    color: var(--red);
    border-color: var(--red);
}

.img-viewer-qty label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.7px;
    margin-bottom: 5px;
}

.qty-input {
    width: 100%;
    height: 34px;
    border: 2px solid var(--black);
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 0 7px;
}

.qty-input:focus {
    outline: 1px solid var(--black);
    outline-offset: 1px;
}

.qty-input:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.img-viewer-actions {
    display: flex;
    gap: 7px;
}

.btn-cart {
    flex: 1;
    padding: 9px;
    background: var(--black);
    border: 2px solid var(--black);
    color: var(--white);
    font-family: 'Courier New', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cart:hover:not(:disabled) {
    background: var(--red);
    border-color: var(--red);
}

.btn-cart:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-wishlist {
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 2px solid var(--black);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-wishlist:hover {
    background: var(--black);
    color: var(--white);
}

.btn-wishlist.active {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn-details {
    display: block;
    padding: 9px;
    background: var(--white);
    border: 2px solid var(--black);
    color: var(--black);
    font-family: 'Courier New', monospace;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-details:hover {
    background: var(--black);
    color: var(--white);
}

.btn-details.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.img-viewer-thumbs {
    display: none;
    gap: 7px;
    padding: 11px;
    background: #fafafa;
    border-top: 2px solid #ddd;
    overflow-x: auto;
}

.img-thumb {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    border: 2px solid #ccc;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s;
}

.img-thumb:hover {
    opacity: 1;
}

.img-thumb.active {
    opacity: 1;
    border-color: var(--red);
    border-width: 2px;
}

.cart-toast {
    position: fixed;
    top: calc(var(--header-height, 72px) + 12px);
    right: 20px;
    bottom: auto;
    left: auto;
    transform: translateY(-6px);
    background: var(--black);
    color: var(--white);
    padding: 6px 10px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: min(90vw, 360px);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.4px;
    line-height: 1.1;
    text-align: center;
    z-index: 1100;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-toast.toast-success {
    background: #0f6a3f;
}

.cart-toast.toast-info {
    background: #0b4b7a;
}

.cart-toast.toast-error {
    background: #8c1a1a;
}

@media (max-width: 1024px) {
    .img-viewer-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .img-viewer-info {
        border-left: none;
        border-top: 2px solid #ddd;
        max-height: 280px;
        overflow-y: auto;
    }

    .img-viewer-main {
        height: 360px;
    }
}

@media (max-width: 768px) {
    .img-viewer-close {
        top: -38px;
        width: 34px;
        height: 34px;
        font-size: 17px;
    }

    .img-nav {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .img-nav-prev {
        left: 8px;
    }

    .img-nav-next {
        right: 8px;
    }

    .img-viewer-main {
        height: 320px;
    }

    .img-viewer-info {
        padding: 14px;
        gap: 10px;
    }

    .img-viewer-title {
        font-size: 12px;
        overflow: visible;
        white-space: normal;
    }

    .img-viewer-price {
        font-size: 17px;
    }

    .img-thumb {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 768px) {
    .nav-logo {
        font-size: 22px;
    }

    .logo-image {
        height: 38px;
    }

    .nav-bar.scrolled .nav-logo {
        font-size: 20px;
    }

    .nav-bar.scrolled .logo-image {
        height: 34px;
    }

    .nav-search {
        max-width: 200px;
        flex: 0 1 200px;
        height: 36px;
    }

    .nav-search-label {
        display: none;
    }

    .nav-search-input {
        font-size: 11px;
    }

    .nav-search-input::placeholder {
        color: rgba(255, 255, 255, 0.8);
        letter-spacing: 1px;
    }

    .search-dropdown {
        position: fixed;
        top: calc(var(--header-height, 72px) + 12px);
        left: 50%;
        right: auto;
        width: min(94vw, 460px);
        max-height: 320px;
        transform: translate(-50%, -6px);
    }

    .search-dropdown.is-open {
        transform: translate(-50%, 0);
    }

    .nav-links {
        width: auto;
        flex: 1 1 auto;
        justify-content: flex-end;
        margin-left: auto;
        overflow: hidden;
    }

    .nav-links a {
        height: 38px;
        padding: 0 10px;
        font-size: 12px;
    }

    .nav-time {
        font-size: 11px;
    }

    .image-viewer-container {
        max-width: 95%;
        margin: 2vh auto;
    }

    .image-viewer-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .image-viewer-title {
        font-size: 22px;
    }

    .image-viewer-price {
        font-size: 26px;
    }

    .image-viewer-actions {
        flex-direction: column;
    }

    .image-viewer-btn {
        font-size: 14px;
        padding: 12px 15px;
    }
}

.search-results {
    max-height: 65vh;
    overflow-y: auto;
    padding: 20px;
}

.search-results::-webkit-scrollbar {
    width: 10px;
}

.search-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: var(--red);
}

.search-empty {
    padding: 60px 20px;
    text-align: center;
}

.search-empty p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
}

.search-section {
    margin-bottom: 30px;
}

.search-section-title {
    color: var(--white);
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.search-item {
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--red);
    transform: translateX(5px);
}

.search-item-thumb {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.search-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-item-body {
    flex: 1 1 auto;
    min-width: 0;
}

.search-item-name {
    color: var(--white);
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-item-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    letter-spacing: 0.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-loading {
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    letter-spacing: 1px;
}

/* FOOTER */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 0;
    text-align: center;
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
    margin-top: auto;
    height: var(--footer-height);
    display: flex;
    align-items: center;
}

.footer,
.footer * {
    color: var(--white) !important;
}

.footer-container {
    max-width: var(--shell-max-width);
    margin: 0 auto;
    padding: 0 var(--shell-gutter);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer p {
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 12px;
    margin: 0;
}

/* SKELETON LOADING STATES */
.product-card.loading .product-image {
    background: linear-gradient(
        90deg,
        var(--bg) 0%,
        #e0e0e0 50%,
        var(--bg) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.product-info.loading * {
    background: var(--bg);
    color: transparent;
    border-radius: 0;  /* Keep brutalist edges */
}

/* TOUCH & MOBILE OPTIMIZATIONS */
@media (hover: none) and (pointer: coarse) {
    :root {
        --header-height: 46px;
        --nav-item-height: 44px;
    }
    /* Larger tap targets for touch devices */
    .btn-primary,
    .btn-secondary,
    .product-card,
    a {
        min-height: 44px;  /* iOS recommended tap target */
        min-width: 44px;
    }

    /* Remove hover states on touch devices */
    .product-card:hover {
        transform: none;
        box-shadow: none;
        border-color: var(--black);
    }

    .category-card:hover {
        transform: none;
        box-shadow: none;
        border-color: var(--black);
    }

    /* Use active states instead */
    .product-card:active,
    .category-card:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.97);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        letter-spacing: 0.5px;
    }

    .container {
        padding: 0 12px;
    }

    .nav-container {
        flex-direction: row;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .nav-time {
        width: auto;
        justify-content: flex-start;
    }

    .gif-slider-container {
        width: 100%;
        height: auto;
        min-height: 160px;
        aspect-ratio: 16 / 9;
        border-width: 3px;
    }

    .gif-placeholder h1 {
        font-size: clamp(20px, 6vw, 32px);
    }

    .hero-section {
        min-height: auto;
        padding: 16px 12px 24px;
        justify-content: flex-start;
        align-items: stretch;
    }

    .section-title {
        font-size: 24px;
        letter-spacing: 2px;
        padding: 6px 12px;
    }

    /* MOBILE: 2 columns for readability */
    .product-grid,
    .product-grid-5col,
    .product-grid.five-column,
    .core-grid.product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 12px;
    }

    /* MOBILE PRODUCT CARD OPTIMIZATION */
    .product-card {
        border-width: 2px;  /* Thinner borders for mobile */
    }

    .product-image {
        height: 100px;  /* Compact image (was 150px) */
        min-height: 100px;
    }

    .product-info {
        padding: 4px 4px 0;  /* Reduced from 15px */
    }

    .product-name {
        font-size: 10px;  /* Smaller text */
        line-height: 1.2;
        margin-bottom: 4px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .product-price {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .product-seller {
        font-size: 9px;
    }

    .product-cta {
        min-height: 32px;
        height: 32px;
    }

    .product-cta-item {
        padding: 0 6px;
        font-size: 8px;
        letter-spacing: 1px;
    }

    .btn-large {
        width: 100%;
        font-size: 10px;
        padding: 8px 10px;
    }

    /* Remove shadows on mobile for performance */
    .product-card:hover {
        box-shadow: 2px 2px 0 var(--red);
    }

    .store-header-grid,
    .product-grid-fixed {
        grid-template-columns: 1fr !important;
    }

    .store-actions {
        width: 100%;
    }

    .product-detail-section {
        padding-bottom: 60px;
    }

    .product-detail-left {
        position: relative;
        height: auto;
    }

    .product-detail-image {
        min-height: 320px;
    }

    .variation-cards-grid,
    .variant-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-info {
        padding: 30px 18px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 var(--space-2);
    }

    /* SMALL MOBILE: Further compact 5 columns */
    .product-grid,
    .product-grid-5col,
    .product-grid.five-column,
    .core-grid.product-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: var(--space-2);
        padding: 0 var(--space-2);
    }

    .product-image {
        height: 90px;
        min-height: 90px;
    }

    .product-name {
        font-size: 9px;
    }

    .product-price {
        font-size: 10px;
    }

    .product-seller {
        font-size: 8px;
    }

    .btn-primary,
    .btn-secondary {
        padding: var(--space-1) var(--space-2);
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }

    .nav-logo {
        height: 40px;
    }

    .nav-logo img {
        width: 140px;
        height: auto;
    }

    .nav-search {
        height: 40px;
        max-width: 190px;
    }

    .nav-search-field {
        padding: 0 8px;
    }

    .nav-search-input::placeholder {
        color: rgba(255, 255, 255, 0.8);
        letter-spacing: 1px;
    }

    .search-dropdown {
        position: fixed;
        top: calc(var(--header-height, 72px) + 12px);
        left: 50%;
        right: auto;
        width: min(96vw, 420px);
        max-height: 300px;
        transform: translate(-50%, -6px);
    }

    .search-dropdown.is-open {
        transform: translate(-50%, 0);
    }

    .section-title {
        font-size: 20px;
        letter-spacing: 1px;
    }

    /* SMALL MOBILE: Ultra-compact 5 columns */
    .product-grid,
    .product-grid-5col,
    .product-grid.five-column,
    .core-grid.product-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: var(--space-2);
        padding: 0 var(--space-1);
    }

    /* ULTRA-COMPACT product cards for small phones */
    .product-image {
        height: 80px;
        min-height: 80px;
    }

    .product-name {
        font-size: 9px;
    }

    .product-price {
        font-size: 10px;
    }

    .product-seller {
        font-size: 8px;
    }

    .btn-primary,
    .btn-secondary {
        padding: var(--space-1) var(--space-2);
        font-size: 8px;
    }

    .btn-large {
        padding: 10px;
        font-size: 12px;
    }

    .scroll-callout {
        padding: 16px;
    }
}

/* COLOR PALETTE SYSTEM */
.color-swatch[data-color="black"] { background-color: #000000; }
.color-swatch[data-color="white"] { background-color: #FFFFFF; border-color: #ccc; }
.color-swatch[data-color="red"] { background-color: #DC143C; }
.color-swatch[data-color="blue"] { background-color: #0000FF; }
.color-swatch[data-color="green"] { background-color: #008000; }
.color-swatch[data-color="yellow"] { background-color: #FFD700; }
.color-swatch[data-color="orange"] { background-color: #FF8C00; }
.color-swatch[data-color="purple"] { background-color: #800080; }
.color-swatch[data-color="pink"] { background-color: #FFC0CB; }
.color-swatch[data-color="brown"] { background-color: #8B4513; }
.color-swatch[data-color="gray"] { background-color: #808080; }
.color-swatch[data-color="beige"] { background-color: #F5F5DC; border-color: #ccc; }
.color-swatch[data-color="navy"] { background-color: #000080; }
.color-swatch[data-color="maroon"] { background-color: #800000; }
.color-swatch[data-color="olive"] { background-color: #808000; }
.color-swatch[data-color="teal"] { background-color: #008080; }
.color-swatch[data-color="silver"] { background-color: #C0C0C0; }
.color-swatch[data-color="gold"] { background-color: #FFD700; }
.color-swatch[data-color="cream"] { background-color: #FFFDD0; border-color: #ccc; }
.color-swatch[data-color="charcoal"] { background-color: #36454F; }

/* Checked state for color palette */
.color-palette-checkbox:checked + .color-swatch {
    border-color: var(--red);
    border-width: 3px;
    box-shadow: 0 0 0 2px var(--red);
}
/* Shared brutalist card/grid rhythm */
.section-brutalist {
    padding: 40px 0;
}
@media (max-width: 640px) {
    .section-brutalist {
        padding: 32px 0;
    }
}

.grid-brutalist {
    display: grid;
    gap: 20px;
}
@media (max-width: 640px) {
    .grid-brutalist {
        gap: 16px;
    }
}

.card-brutalist {
    padding: 16px;
    border: 3px solid var(--black);
    gap: 8px;
}
@media (max-width: 640px) {
    .card-brutalist {
        padding: 12px;
    }
}

.card-brutalist .card-title {
    font-size: 15px;
    line-height: 1.3;
    letter-spacing: 1px;
}

.card-brutalist .card-meta {
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.slide-red {
    position: relative;
    overflow: hidden;
}

.slide-red::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--red);
    opacity: 0.08;
    transform: translateX(-110%);
    transition: transform 0.4s ease;
    pointer-events: none;
}

.slide-red:hover::after,
.slide-red:focus-within::after {
    transform: translateX(0);
}

/* Compact action buttons on product cards (force override) */
.product-card .product-cta {
    min-height: 40px;
    height: 40px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: var(--border-width) solid var(--black);
    overflow: hidden;
    box-sizing: border-box;
}

.product-card .product-cta-item {
    padding: 0 10px !important;
    font-size: 10px !important;
    letter-spacing: 1px !important;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    box-sizing: border-box;
}

.product-card .product-cta-item:first-child {
    border-right: var(--border-width) solid var(--black);
}

/* Force card layout to bottom-align actions */
.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.product-card .product-info {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    overflow: hidden;
    box-sizing: border-box;
}

.product-card .product-cta {
    margin-top: auto;
    width: 100%;
    max-width: 100%;
    justify-content: stretch;
    overflow: hidden;
    box-sizing: border-box;
}

/* FORMATION DISCIPLINE OVERRIDES */
.nav-bar.scrolled {
    height: var(--header-height);
}

.nav-bar.scrolled .nav-container {
    height: 100%;
}

.nav-links {
    align-items: center;
}

.footer p {
    line-height: 1;
}

.identity-switcher {
    display: flex;
    gap: 8px;
    margin-top: var(--space-2);
    flex-wrap: wrap;
}

.identity-option {
    border: var(--border-width) solid var(--black);
    background: var(--white);
    color: var(--black);
    padding: 6px 10px;
    font-size: 10px;
    letter-spacing: 1px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.identity-option.is-active {
    background: var(--black);
    color: var(--white);
}

.product-card .product-image img,
.brand-card img,
.category-card img,
.vendor-logo img,
.cart-item-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.product-card .product-image {
    position: relative;
}

.product-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    border: var(--border-width) solid var(--black);
    background: var(--white);
    color: var(--black);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.15);
}

.badge-sale {
    background: #ff3366;
    color: #fff;
    border-color: #ff3366;
}

.badge-out {
    background: #000;
    color: #fff;
    border-color: #000;
}

.badge-service {
    background: #fff7cc;
    color: var(--black);
    border-color: var(--black);
}

.product-card .image-placeholder,
.image-placeholder {
    text-align: center;
}

.store-description,
.vendor-description,
.comment-body {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-detail-info-scroll {
    max-height: calc(100vh - var(--header-height) - var(--space-6));
    overflow-y: auto;
    overscroll-behavior: contain;
}

.product-detail-wrapper {
    max-width: var(--shell-max-width);
    margin: 0 auto;
    width: 100%;
}

.product-detail-info {
    gap: var(--space-4);
    padding: var(--space-5);
}

.product-detail-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-detail-vendor,
.product-detail-id {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1024px) {
    :root {
        --card-height: 332px;
        --card-min-height: 312px;
        --card-image-height: 150px;
        --card-actions-height: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --card-height: 292px;
        --card-min-height: 272px;
        --card-image-height: 120px;
        --card-actions-height: 36px;
        --header-height: 64px;
        --nav-item-height: 36px;
        --shell-gutter: 12px;
    }
}

/* Unified Image Uploader */
.unified-image-uploader {
    border: 4px dashed var(--black);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    background: var(--white);
    transition: background 0.2s;
}

.unified-image-uploader:hover,
.unified-image-uploader.drag-over {
    background: rgba(0,0,0,0.05);
}

.unified-image-uploader input[type="file"] {
    display: none;
}

.unified-gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.unified-image-item {
    border: 3px solid var(--black);
    background: var(--white);
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.unified-image-item.primary {
    border-color: var(--red);
    border-width: 4px;
}

.unified-image-card {
    position: relative;
    background: var(--white);
    aspect-ratio: 1;
    overflow: hidden;
}

.unified-image-card.uploading {
    opacity: 0.7;
}

.unified-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-progress-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    padding: 12px;
    border-top: 2px solid var(--black);
}

.upload-progress-overlay .progress-bar {
    height: 20px;
    background: var(--red);
    transition: width 0.3s;
    border: 2px solid var(--black);
}

.upload-progress-overlay .progress-text {
    text-align: center;
    font-weight: bold;
    margin-top: 4px;
    font-size: 12px;
}

/* ========================================
   SIMPLE IMAGE UPLOADER - CLEAN & WORKS
   ======================================== */

.simple-image-card {
    border: 3px solid var(--black);
    background: var(--white);
}

.simple-image-card.is-primary {
    border-color: var(--red);
    border-width: 4px;
}

.simple-image-preview {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.simple-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.simple-image-controls {
    border-top: 3px solid var(--black);
}

.primary-badge {
    width: 100%;
    padding: 10px;
    background: var(--red);
    color: var(--white);
    font-weight: bold;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-align: center;
    border-bottom: 3px solid var(--black);
}

.control-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 42px;
}

.control-buttons button {
    height: 42px;
    border: none;
    background: var(--white);
    color: var(--black);
    font-weight: bold;
    font-size: 10px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary-action {
    border-right: 3px solid var(--black);
}

.btn-primary-action:hover {
    background: var(--red);
    color: var(--white);
}

.btn-remove-action:hover {
    background: var(--black);
    color: var(--white);
}

/* =========================================
   DASHBOARD & DATA SYSTEM (REVAMP 2026)
   ========================================= */

.dashboard-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--space-6) var(--shell-gutter);
    min-height: 80vh;
}

.dashboard-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    border-bottom: var(--border-width) solid var(--black);
    padding-bottom: var(--space-4);
    background: var(--white);
}

.dashboard-title {
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 0.9;
    margin: 0;
    text-transform: uppercase;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.stat-card {
    border: var(--border-width) solid var(--black);
    background: var(--white);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    position: relative;
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--black);
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: calc(var(--shadow-offset) + 2px) calc(var(--shadow-offset) + 2px) 0 var(--red);
}

.stat-value {
    font-size: clamp(42px, 6vw, 64px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: var(--space-2);
    letter-spacing: -2px;
}

.stat-label {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--gray);
    text-transform: uppercase;
    border-top: 2px solid var(--black);
    padding-top: var(--space-2);
    width: 100%;
}

/* Filter Bar */
.filter-scroll {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-6);
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.filter-scroll::-webkit-scrollbar { display: none; }

.filter-tab {
    padding: 12px 24px;
    border: var(--border-width) solid var(--black);
    background: var(--white);
    color: var(--black);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
    box-shadow: 2px 2px 0 var(--black);
}

.filter-tab.active {
    background: var(--black);
    color: var(--white);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--red);
}

/* Data List (Replaces Tables) */
.data-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.data-card {
    border: var(--border-width) solid var(--black);
    background: var(--white);
    padding: var(--space-4);
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr 1fr auto;
    align-items: center;
    gap: var(--space-4);
    transition: background 0.15s;
}

.data-card:hover {
    background: #f8f8f8;
    border-color: var(--black);
}

.data-label {
    font-size: 10px;
    color: #666;
    margin-bottom: 4px;
    font-family: 'Courier New', monospace;
}

.data-value {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Mobile Responsive Dashboard */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
    
    .stat-card {
        min-height: 120px;
        padding: var(--space-3);
    }
    
    .stat-value {
        font-size: 36px;
    }

    .data-card {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "id status"
            "customer customer"
            "total payment"
            "action action";
        gap: var(--space-3);
        padding: var(--space-4);
        position: relative;
    }

    .data-col-id { grid-area: id; }
    .data-col-customer { grid-area: customer; }
    .data-col-total { grid-area: total; }
    .data-col-payment { grid-area: payment; }
    .data-col-status { grid-area: status; text-align: right; }
    .data-col-action { grid-area: action; margin-top: var(--space-2); }

    .data-col-action .btn {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-actions {
        width: 100%;
    }
    
    .dashboard-actions .btn {
        width: 100%;
    }
}

/* Dashboard Refinements */
.dashboard-empty {
    border: var(--border-width) solid var(--black);
    margin-top: var(--space-6);
    padding: var(--space-8);
    text-align: center;
    background: var(--white);
}

.dashboard-empty-title {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: var(--space-3);
    letter-spacing: 1px;
}

.dashboard-empty-text {
    font-size: 0.875rem;
    color: #666;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.pagination-container {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.pagination-info {
    pointer-events: none;
}

.data-date {
    margin-top: 4px;
    font-size: 11px;
    color: #888;
    font-family: 'Courier New', monospace;
}

.spacer-top {
    margin-top: var(--space-3);
}

/* Mobile Optimizations - Careful and Targeted */
@media (max-width: 768px) {
    /* Prevent iOS zoom on inputs */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px;
    }
    
    /* Better touch targets for buttons */
    .btn-sm {
        min-height: 44px;
        padding: 10px 16px;
    }
    
    .btn-md,
    .btn-lg {
        min-height: 48px;
        padding: 12px 20px;
    }
    
    /* Cart quantity controls */
    .qty-btn {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Prevent horizontal scroll */
@media (max-width: 1024px) {
    html {
        overflow-x: hidden;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Dev banner mobile optimization */
@media (max-width: 768px) {
    .dev-banner-inner {
        padding: 1px 12px;
        gap: 8px;
        min-height: 18px;
        width: 100%;
    }

    .dev-banner-preface {
        font-size: 8px;
    }

    .dev-banner-github-logo {
        height: 10px;
    }

    .dev-banner-github {
        padding: 1px 8px;
        height: 14px;
    }
}
