@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================
   CATÁLOGO DIGITAL - TEMA MIRROR
   Layout: Sidebar + Grid · Negro · Blanco · Cyan
   ============================================================ */
:root {
    /* === Paleta MIRROR === */
    --primary-color: #00C8D4;
    --primary-hover: #00A8B4;
    --primary-light: #00E5F2;
    --secondary-color: #A0A0A0;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --whatsapp-color: #25d366;
    --whatsapp-hover: #128c7e;

    /* Fondos */
    --bg-body: #0A0A0A;
    --bg-card: #141414;
    --bg-card-elevated: #1A1A1A;
    --bg-header: rgba(10, 10, 10, 0.95);
    --bg-filter: #1A1A1A;
    --bg-sidebar: #111111;

    /* Texto */
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --text-light: #666666;

    /* Bordes */
    --border-color: #2A2A2A;
    --card-border: rgba(255, 255, 255, 0.06);

    /* Precios */
    --price-bob-color: #FFFFFF;

    /* Tipografía */
    --font-family-base: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-mono: 'Cascadia Code', 'Consolas', monospace;

    /* Radios */
    --radius-sm: 0.5rem;
    --radius-md: 0.85rem;
    --radius-lg: 1.2rem;
    --radius-pill: 50rem;

    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 200, 212, 0.2), 0 0 40px rgba(0, 200, 212, 0.08);
    --shadow-glow-intense: 0 0 25px rgba(0, 200, 212, 0.35), 0 0 50px rgba(0, 200, 212, 0.12);
    --shadow-whatsapp: 0 8px 25px rgba(37, 211, 102, 0.25);

    /* Transiciones */
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Forzar tema oscuro */
html, body,
:root, [data-bs-theme="light"], [data-bs-theme="dark"],
html.dark-mode, body.dark-mode {
    --bg-body: #0A0A0A;
    --bg-card: #141414;
    --bg-header: rgba(10, 10, 10, 0.95);
    --bg-filter: #1A1A1A;
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --text-light: #666666;
    --border-color: #2A2A2A;
    --card-border: rgba(255, 255, 255, 0.06);
}

body {
    font-family: var(--font-family-base);
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Bootstrap overrides */
[data-bs-theme="dark"] .bg-light, .bg-light {
    background-color: var(--bg-card-elevated) !important;
    color: var(--text-main) !important;
}
[data-bs-theme="dark"] .text-dark, .text-dark {
    color: var(--text-main) !important;
}
[data-bs-theme="dark"] .border, .border {
    border-color: var(--border-color) !important;
}

/* ============================================================
   NAVBAR — Top bar + Search bar
   ============================================================ */
.navbar-catalog {
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1040;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-catalog.navbar-hidden {
    transform: translateY(-100%);
}

/* Fila superior: hamburger | logo | acciones */
.navbar-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.25rem;
    gap: 0.75rem;
}

/* Botón hamburger */
.navbar-hamburger {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.25rem;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.navbar-hamburger:hover {
    color: var(--primary-color);
}

/* Logo centrado */
.navbar-logo-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    flex: 1;
    justify-content: center;
}

.navbar-logo-img {
    height: 24px;
    max-height: 28px;
    max-width: 130px;
    width: auto;
    object-fit: contain;
}

/* Acciones derecha */
.navbar-right-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.navbar-icon-btn {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.3rem;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.navbar-icon-btn:hover {
    color: var(--whatsapp-color);
}

/* Barra de búsqueda debajo del top bar */
.navbar-search-bar {
    padding: 0 1.25rem 0.75rem;
}

.navbar-search-input {
    border-radius: var(--radius-pill) !important;
    padding-left: 2.75rem !important;
    padding-right: 2.5rem !important;
    height: 42px;
    font-size: 0.9rem;
    background: var(--bg-card) !important;
    border: 1.5px solid var(--border-color) !important;
    color: var(--text-main) !important;
}

.navbar-search-input::placeholder {
    color: var(--text-light);
}

.navbar-search-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: var(--shadow-glow) !important;
}

/* Barra de Filtros Desplegables */
.navbar-filters-bar {
    padding: 0 1.25rem 0.65rem;
}

.filter-dropdown-select {
    background-color: #FFFFFF;
    color: #111111;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 0.4rem 2rem 0.4rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%3C222' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    transition: var(--transition-fast);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.filter-dropdown-select:hover, .filter-dropdown-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 200, 212, 0.25);
}

.filter-dropdown-select option {
    background-color: #FFFFFF;
    color: #111111;
    font-weight: 600;
}

/* Brand icon + title */
.brand-icon-mirror {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #00C8D4 0%, #00A8B4 100%);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 200, 212, 0.3);
    flex-shrink: 0;
}

.brand-title {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #00C8D4 0%, #00E5F2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link-minimal {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
}

.nav-link-minimal:hover {
    color: var(--primary-color);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.catalog-sidebar {
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: 155px;
    display: flex;
    flex-direction: column;
    padding-bottom: 1rem;
    max-height: calc(100vh - 165px);
    overflow-y: auto;
    transition: top 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-sidebar.sidebar-shifted {
    top: 15px;
    max-height: calc(100vh - 25px);
}

.catalog-sidebar::-webkit-scrollbar {
    width: 4px;
}

.catalog-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.sidebar-header {
    padding: 1.25rem 1.25rem 0.5rem;
}

.sidebar-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 1rem;
}

.sidebar-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.sidebar-search {
    padding: 0.5rem 1rem 0.75rem;
}

.sidebar-search .search-input-group .form-control {
    border-radius: var(--radius-pill);
    padding-left: 2.5rem;
    padding-right: 2.25rem;
    height: 38px;
    font-size: 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.sidebar-search .search-input-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.sidebar-search .search-input-group .form-control::placeholder {
    color: var(--text-light);
}

.search-input-group {
    position: relative;
}

.search-input-group .search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    z-index: 5;
}

.search-input-group .clear-search {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    cursor: pointer;
    display: none;
    z-index: 5;
    font-size: 0.85rem;
}

.search-input-group .clear-search:hover {
    color: var(--primary-color);
}

/* Sidebar Navigation Links */
.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.25rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border-left-color: rgba(0, 200, 212, 0.3);
}

.sidebar-link.active {
    background: rgba(0, 200, 212, 0.08);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.sidebar-link-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-link-icon {
    font-size: 0.9rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.sidebar-link-chevron {
    font-size: 0.65rem;
    color: var(--text-light);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.sidebar-link.active .sidebar-link-chevron,
.sidebar-link:hover .sidebar-link-chevron {
    color: var(--primary-color);
}

.sidebar-link-count {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
    flex-shrink: 0;
}

.sidebar-link.active .sidebar-link-count {
    background: rgba(0, 200, 212, 0.15);
    color: var(--primary-color);
}

.sidebar-brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.sidebar-divider {
    border-top: 1px solid var(--border-color);
    margin: 0.75rem 1.25rem;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    margin-top: auto;
}

/* Sidebar mobile overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1049;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

body.sidebar-mobile-open {
    position: fixed;
    top: var(--sidebar-scroll-offset, 0);
    right: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
}

@media (min-width: 992px) {
    .catalog-layout {
        --catalog-sidebar-width: 25%;
        --catalog-sidebar-viewport-width: 25vw;
    }

    .catalog-sidebar-column,
    .catalog-main-column {
        min-width: 0;
        transition:
            flex-basis 0.34s cubic-bezier(0.22, 1, 0.36, 1),
            width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
            max-width 0.34s cubic-bezier(0.22, 1, 0.36, 1);
        will-change: flex-basis, width, max-width;
    }

    .catalog-sidebar-column {
        flex: 0 0 var(--catalog-sidebar-width);
        width: var(--catalog-sidebar-width);
        max-width: var(--catalog-sidebar-width);
        overflow: hidden;
        overflow: clip;
        opacity: 1;
        transform: translateX(0);
        visibility: visible;
        transition:
            flex-basis 0.34s cubic-bezier(0.22, 1, 0.36, 1),
            width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
            max-width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.24s ease 0.03s,
            transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
            visibility 0s linear 0s;
        will-change: flex-basis, width, max-width, opacity, transform;
    }

    .catalog-sidebar-column > .catalog-sidebar {
        width: var(--catalog-sidebar-viewport-width);
    }

    .catalog-main-column {
        flex: 0 0 calc(100% - var(--catalog-sidebar-width));
        width: calc(100% - var(--catalog-sidebar-width));
        max-width: calc(100% - var(--catalog-sidebar-width));
    }

    .catalog-layout.sidebar-collapsed .catalog-sidebar-column {
        flex-basis: 0;
        width: 0;
        max-width: 0;
        opacity: 0;
        transform: translateX(-24px);
        visibility: hidden;
        pointer-events: none;
        transition:
            flex-basis 0.34s cubic-bezier(0.22, 1, 0.36, 1),
            width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
            max-width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.16s ease,
            transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
            visibility 0s linear 0.34s;
    }

    .catalog-layout.sidebar-collapsed .catalog-main-column {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    .sidebar-overlay,
    .sidebar-overlay.active {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .catalog-layout {
        --catalog-sidebar-width: 16.66666667%;
        --catalog-sidebar-viewport-width: 16.66666667vw;
    }
}

html.sidebar-layout-changing,
html.sidebar-layout-changing body,
.catalog-layout.sidebar-animating,
.catalog-layout.sidebar-animating * {
    overflow-anchor: none;
}

/* ============================================================
   CONTENIDO PRINCIPAL
   ============================================================ */
.catalog-content {
    padding: 1rem 1.5rem 2rem;
}

/* Toggle sidebar button (mobile) */
.btn-sidebar-toggle {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-fast);
    width: 100%;
    text-align: left;
}

.btn-sidebar-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ============================================================
   ORDER BAR (Chips de Ordenamiento)
   ============================================================ */
.order-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.order-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 0.25rem;
}

.order-chip {
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.order-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.order-chip.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000000;
    font-weight: 700;
}

/* ============================================================
   PRODUCTS GRID — 5 columnas desktop
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

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

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

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

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

/* ============================================================
   CATALOG REFRESH — retail tecnológico sobrio
   ============================================================ */
.navbar-catalog {
    background: #0A0A0A;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: #202020;
}

.navbar-top-bar {
    min-height: 54px;
    padding: 0.7rem 1.5rem;
}

.navbar-hamburger {
    width: 38px;
    height: 38px;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 1.35rem;
}

.navbar-hamburger:hover,
.navbar-hamburger:focus-visible {
    background: #141414;
    border-color: #2A2A2A;
    outline: none;
}

.navbar-logo-img {
    height: 27px;
    max-height: 30px;
    max-width: 150px;
}

.navbar-icon-btn,
.nav-link-minimal {
    border-radius: 6px;
}

.navbar-search-bar {
    padding: 0 1.5rem 0.75rem;
}

.navbar-search-input {
    height: 44px;
    border-width: 1px !important;
    border-radius: 8px !important;
    background: #111111 !important;
    box-shadow: none !important;
}

.navbar-search-input:focus {
    border-color: #00C8D4 !important;
    box-shadow: 0 0 0 3px rgba(0, 200, 212, 0.08) !important;
}

.navbar-filters-bar {
    padding: 0.1rem 1.5rem 0.8rem;
}

.navbar-filter-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.catalog-section-context {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    max-width: 52%;
    margin-left: auto;
    padding: 0.45rem 0.7rem;
    color: #A0A0A0;
    background: #0F0F0F;
    border: 1px solid #242424;
    border-radius: 6px;
    font-size: 0.72rem;
    line-height: 1;
}

.catalog-section-context i {
    flex-shrink: 0;
    color: #00C8D4;
    font-size: 0.8rem;
}

.catalog-section-context span {
    flex-shrink: 0;
    color: #666666;
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.catalog-section-context strong {
    overflow: hidden;
    color: #E8E8E8;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navbar-clear-filters {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0.42rem 0.68rem;
    color: #A0A0A0;
    border: 1px solid #2A2A2A;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.navbar-clear-filters:hover,
.navbar-clear-filters:focus-visible {
    color: #FFFFFF;
    background: #161616;
    border-color: #4A4A4A;
    outline: none;
}

.filter-dropdown-select {
    min-width: 132px;
    padding: 0.48rem 2rem 0.48rem 0.8rem;
    color: #FFFFFF;
    background-color: #141414;
    background-image: none;
    border: 1px solid #2A2A2A;
    border-radius: 6px;
    box-shadow: none;
    font-size: 0.78rem;
    font-weight: 650;
}

.filter-dropdown-select:hover,
.filter-dropdown-select:focus {
    color: #FFFFFF;
    background-color: #1A1A1A;
    border-color: #4A4A4A;
    box-shadow: none;
}

.filter-dropdown-select option {
    color: #FFFFFF;
    background: #141414;
}

.catalog-layout,
.catalog-sidebar-column,
.catalog-main-column,
.catalog-content,
.product-grid-item {
    min-width: 0;
}

.catalog-sidebar {
    background: #0E0E0E;
    border-right-color: #242424;
}

.sidebar-header {
    padding: 1.15rem 1.15rem 0.65rem;
}

.sidebar-title {
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.sidebar-link {
    min-height: 42px;
    padding: 0.62rem 1.15rem;
    border-left-width: 2px;
    font-size: 0.82rem;
}

.sidebar-link:hover {
    background: #141414;
    border-left-color: #444444;
}

.sidebar-link.active {
    color: #FFFFFF;
    background: #151A1B;
    border-left-color: #00C8D4;
}

.sidebar-link.active .sidebar-link-icon,
.sidebar-link.active .sidebar-link-chevron {
    color: #00C8D4;
}

.sidebar-link-count {
    min-width: 24px;
    padding: 0.18rem 0.4rem;
    color: #8A8A8A;
    background: #1A1A1A;
    border: 1px solid #242424;
    border-radius: 5px;
    text-align: center;
}

.sidebar-link.active .sidebar-link-count {
    color: #00C8D4;
    background: transparent;
    border-color: rgba(0, 200, 212, 0.35);
}

.sidebar-divider {
    margin: 0.85rem 1.15rem;
    border-color: #262626;
}

.sidebar-footer {
    padding: 1rem 1.15rem 1.25rem;
}

.sidebar-footer .btn-whatsapp {
    border-radius: 6px;
    box-shadow: none;
}

.catalog-content {
    padding: 1.5rem 1.5rem 3rem;
}

.catalog-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.35rem;
    padding: 0.5rem 0 1.35rem;
    border-bottom: 1px solid #242424;
}

.catalog-heading-copy {
    min-width: 0;
}

.catalog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
    color: #8A8A8A;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.catalog-eyebrow > span {
    width: 18px;
    height: 1px;
    background: #00C8D4;
}

.catalog-page-heading h1 {
    margin: 0;
    color: #FFFFFF;
    font-size: clamp(1.65rem, 2.2vw, 2.35rem);
    font-weight: 720;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.catalog-page-heading p {
    max-width: 620px;
    margin: 0.55rem 0 0;
    color: #828282;
    font-size: 0.85rem;
    line-height: 1.55;
}

.catalog-result-count {
    display: grid;
    grid-template-columns: auto auto;
    align-items: baseline;
    gap: 0.45rem;
    flex-shrink: 0;
    color: #777777;
}

.catalog-result-count strong {
    color: #FFFFFF;
    font-family: var(--font-family-mono);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.05em;
}

.catalog-result-count span {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.product-grid-item {
    animation-duration: 0.28s;
}

.product-card {
    min-width: 0;
    background: #111111;
    border: 1px solid #222222;
    border-radius: 7px;
    box-shadow: none;
    transform: none;
}

.product-card:hover,
.product-card:focus-visible {
    transform: translateY(-2px);
    border-color: #3B3B3B;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.34);
    outline: none;
}

.product-card:focus-visible {
    border-color: #00C8D4;
}

.product-card-img-wrapper {
    position: relative;
    aspect-ratio: 1 / 0.94;
    padding: 1.15rem;
    background: #0A0A0A;
    border-bottom: 1px solid #1E1E1E;
}

.product-card-img {
    transform: scale(0.96);
    transition: transform 0.35s ease;
}

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

.product-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    color: #343434;
    user-select: none;
}

.product-image-placeholder i {
    font-size: 2rem;
    line-height: 1;
}

.product-image-placeholder span {
    font-size: 0.62rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.product-view-cue {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #777777;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid #292929;
    border-radius: 50%;
    font-size: 0.72rem;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.product-card:hover .product-view-cue,
.product-card:focus-visible .product-view-cue {
    color: #00C8D4;
    opacity: 1;
    transform: translateY(0);
}

.product-card-body {
    min-width: 0;
    padding: 0.95rem 1rem 1rem;
    text-align: left;
}

.product-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.55rem;
}

.product-category-label {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #777777;
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-availability {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    color: #7D7D7D;
    font-size: 0.62rem;
    font-weight: 600;
}

.product-availability > span {
    width: 5px;
    height: 5px;
    background: #00C8D4;
    border-radius: 50%;
}

.product-title {
    min-height: 2.55em;
    margin: 0;
    color: #F4F4F4;
    font-size: 0.98rem;
    font-weight: 650;
    letter-spacing: -0.025em;
    line-height: 1.28;
}

.product-specs {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 1.2rem;
    margin-top: 0.45rem;
    color: #777777;
    font-size: 0.67rem;
}

.product-specs span + span::before {
    margin-right: 0.45rem;
    color: #3C3C3C;
    content: '·';
}

.product-card-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.9rem;
}

.product-price-section {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.product-price-section small {
    color: #606060;
    font-size: 0.6rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.price-bob {
    overflow: hidden;
    color: #00C8D4;
    font-family: var(--font-family-mono);
    font-size: clamp(0.95rem, 1.25vw, 1.15rem);
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: -0.045em;
    text-overflow: ellipsis;
    text-shadow: none;
    white-space: nowrap;
}

.product-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    color: #656565;
    border: 1px solid #2A2A2A;
    border-radius: 50%;
    font-size: 0.72rem;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.product-card:hover .product-card-arrow,
.product-card:focus-visible .product-card-arrow {
    color: #00C8D4;
    border-color: rgba(0, 200, 212, 0.45);
    transform: translateX(2px);
}

.empty-catalog-state {
    background: #111111;
    border-color: #242424;
    border-radius: 7px;
}

@media (min-width: 1600px) {
    .products-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .catalog-layout.sidebar-collapsed .products-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) and (max-width: 1599.98px) {
    .catalog-layout.sidebar-collapsed .products-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

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

@media (max-width: 767.98px) {
    .navbar-top-bar {
        min-height: 50px;
    }

    .navbar-search-input {
        height: 42px;
    }

    .filter-dropdown-select {
        min-width: 0;
        border-radius: 6px;
    }

    .catalog-content {
        width: 100%;
        max-width: 100%;
        padding: 1.1rem 0.75rem 2rem;
        overflow: hidden;
    }

    .catalog-page-heading {
        align-items: flex-end;
        gap: 1rem;
        margin-bottom: 1rem;
        padding: 0.15rem 0 1rem;
    }

    .catalog-page-heading h1 {
        font-size: 1.45rem;
    }

    .catalog-page-heading p {
        max-width: 230px;
        font-size: 0.74rem;
    }

    .catalog-eyebrow {
        margin-bottom: 0.4rem;
        font-size: 0.6rem;
    }

    .catalog-result-count {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0;
    }

    .catalog-result-count strong {
        font-size: 1.1rem;
    }

    .catalog-result-count span {
        font-size: 0.56rem;
    }

    .products-grid {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .product-card-img-wrapper {
        padding: 0.65rem;
    }

    .product-view-cue {
        top: 0.45rem;
        right: 0.45rem;
        width: 24px;
        height: 24px;
        opacity: 1;
    }

    .product-card-body {
        padding: 0.72rem 0.72rem 0.8rem;
    }

    .product-card-meta {
        margin-bottom: 0.42rem;
    }

    .product-title {
        min-height: 2.5em;
        font-size: 0.82rem;
    }

    .product-card-bottom {
        padding-top: 0.7rem;
    }

    .product-card-arrow {
        width: 26px;
        height: 26px;
    }

    .price-bob {
        font-size: 0.88rem;
    }
}

@media (max-width: 419.98px) {
    .product-availability {
        display: none;
    }

    .product-specs {
        font-size: 0.6rem;
    }

    .product-image-placeholder span {
        display: none;
    }

    .catalog-page-heading p {
        display: none;
    }
}

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

/* ============================================================
   PRODUCT CARDS — Estilo compacto
   ============================================================ */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-intense);
    border-color: rgba(0, 200, 212, 0.3);
}

.product-card-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #0E0E0E;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem;
    overflow: hidden;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.product-card-body {
    padding: 0.85rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* Categoría / marca label */
.product-category-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.product-title {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.4rem;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-section {
    margin-top: auto;
    padding-top: 0.5rem;
}

.price-bob {
    font-size: 1.05rem;
    font-weight: 900;
    color: #00C8D4;
    line-height: 1;
    text-shadow: 0 0 14px rgba(0, 200, 212, 0.35);
    letter-spacing: -0.3px;
}

/* Stock badges */
.stock-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    z-index: 2;
}

.stock-in {
    background: rgba(0, 200, 212, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(0, 200, 212, 0.3);
}

.stock-out {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ============================================================
   WHATSAPP BUTTON
   ============================================================ */
.btn-whatsapp {
    background: var(--whatsapp-color);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    padding: 0.6rem 1rem;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
    text-decoration: none;
    width: 100%;
    box-shadow: var(--shadow-whatsapp);
}

.btn-whatsapp:hover {
    background: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
    color: #ffffff !important;
}

/* Quick View button */
.btn-quick-view {
    background: var(--bg-filter);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.6rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.btn-quick-view:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000000;
    box-shadow: var(--shadow-glow);
}

/* ============================================================
   EXCHANGE RATE FLOATING BADGE
   ============================================================ */
.exchange-rate-badge {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    z-index: 1050;
    box-shadow: var(--shadow-lg);
    min-width: 180px;
}

.exchange-rate-close {
    position: absolute;
    top: 0.3rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: var(--transition-fast);
}

.exchange-rate-close:hover {
    color: var(--text-main);
}

.exchange-rate-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.exchange-rate-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.exchange-rate-value .bi {
    color: var(--primary-color);
}

/* ============================================================
   ESTADO VACÍO
   ============================================================ */
.empty-catalog-state {
    text-align: center;
    padding: 4rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.empty-icon {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* ============================================================
   MODAL DE DETALLE
   ============================================================ */
.modal-content {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-main);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 200, 212, 0.08);
}

.modal-header {
    border-bottom-color: var(--border-color);
}

.modal-header .btn-close {
    filter: invert(1);
}

.quick-view-gallery {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 274px;
    height: 100%;
    padding: 1rem 3rem;
    overflow: hidden;
    touch-action: pan-y;
    background: #0E0E0E;
    border: 1px solid #2A2A2A;
    border-radius: var(--radius-md);
}

.quick-view-gallery:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.quick-view-gallery-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.quick-view-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #FFFFFF;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid #353535;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
    transform: translateY(-50%);
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.quick-view-gallery-prev {
    left: 0.55rem;
}

.quick-view-gallery-next {
    right: 0.55rem;
}

.quick-view-gallery-arrow:hover,
.quick-view-gallery-arrow:focus-visible {
    color: #0A0A0A;
    background: var(--primary-color);
    border-color: var(--primary-color);
    outline: none;
    transform: translateY(-50%) scale(1.06);
}

.quick-view-gallery-position {
    position: absolute;
    bottom: 0.65rem;
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 46px;
    padding: 0.25rem 0.55rem;
    color: var(--text-muted);
    background: rgba(10, 10, 10, 0.86);
    border: 1px solid #2A2A2A;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 650;
    line-height: 1;
    transform: translateX(-50%);
}

.quick-view-gallery-current {
    color: var(--primary-color);
}

.quick-view-gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-light);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.quick-view-gallery-placeholder i {
    font-size: 2rem;
}

.modal-color-chips-track {
    display: flex;
    gap: 0.35rem;
    max-width: 100%;
    padding: 0.1rem 0 0.25rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.modal-color-chips-track::-webkit-scrollbar {
    display: none;
}

.modal-color-chips-track .color-chip-btn {
    flex: 0 0 auto;
    scroll-snap-align: center;
}

@media (max-width: 767.98px) {
    .quick-view-gallery {
        min-height: 250px;
        padding-right: 2.75rem;
        padding-left: 2.75rem;
    }

    .quick-view-gallery-arrow {
        width: 42px;
        height: 42px;
    }
}

.modal-footer {
    border-top-color: var(--border-color);
}

/* ============================================================
   DETALLE PAGE OVERRIDES
   ============================================================ */
.card.shadow-lg {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

.card-body {
    background-color: var(--bg-card) !important;
}

.list-group-item {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
}

/* Color chip buttons (detail/modal) */
.color-chip-btn {
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-main);
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
    transition: var(--transition-fast);
    line-height: 1.3;
}

.color-chip-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(0, 200, 212, 0.06);
}

.color-chip-btn.active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #000000 !important;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(0, 200, 212, 0.3);
}

.color-chip-btn.active .badge {
    background-color: rgba(0, 0, 0, 0.2) !important;
    color: #000000 !important;
}

/* Spec badges */
.spec-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    background: var(--bg-filter);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* Badge overrides */
.badge.bg-primary-subtle {
    background-color: rgba(0, 200, 212, 0.1) !important;
    color: var(--primary-color) !important;
    border-color: rgba(0, 200, 212, 0.25) !important;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
    color: #000000 !important;
}

.badge.bg-white.text-primary {
    background-color: #FFFFFF !important;
    color: var(--primary-color) !important;
}

/* Button overrides */
.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: #000000 !important;
    box-shadow: var(--shadow-glow);
}

.btn-outline-secondary {
    color: var(--text-muted) !important;
    border-color: var(--border-color) !important;
}

.btn-outline-secondary:hover {
    background-color: var(--bg-card-elevated) !important;
    color: var(--text-main) !important;
    border-color: var(--text-muted) !important;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #000000 !important;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    box-shadow: var(--shadow-glow);
}

/* Text utility overrides */
.text-primary {
    color: var(--primary-color) !important;
}

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

/* Footer */
footer {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

.btn-outline-success {
    color: var(--whatsapp-color) !important;
    border-color: var(--whatsapp-color) !important;
}

.btn-outline-success:hover {
    background-color: var(--whatsapp-color) !important;
    color: #ffffff !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

.product-grid-item {
    animation: fadeInUp 0.35s ease-out both;
}

.product-grid-item:nth-child(1) { animation-delay: 0.02s; }
.product-grid-item:nth-child(2) { animation-delay: 0.04s; }
.product-grid-item:nth-child(3) { animation-delay: 0.06s; }
.product-grid-item:nth-child(4) { animation-delay: 0.08s; }
.product-grid-item:nth-child(5) { animation-delay: 0.10s; }
.product-grid-item:nth-child(6) { animation-delay: 0.12s; }
.product-grid-item:nth-child(7) { animation-delay: 0.14s; }
.product-grid-item:nth-child(8) { animation-delay: 0.16s; }
.product-grid-item:nth-child(9) { animation-delay: 0.18s; }
.product-grid-item:nth-child(10) { animation-delay: 0.20s; }

/* ============================================================
   RESPONSIVE — SIDEBAR MOBILE
   ============================================================ */
@media (max-width: 991.98px) {
    .catalog-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        top: 0 !important;
        left: 0;
        width: min(86vw, 320px);
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        z-index: 1050;
        transform: translateX(-100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
        box-shadow: none;
        overscroll-behavior: contain;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }

    .catalog-sidebar.open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.5);
    }

    .catalog-sidebar.sidebar-shifted {
        top: 0 !important;
        max-height: 100dvh;
    }

    .catalog-sidebar > .sidebar-header:first-child {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding-top: max(0.75rem, env(safe-area-inset-top));
        padding-bottom: 0.75rem;
        background: var(--bg-sidebar);
        border-bottom: 1px solid var(--border-color);
    }

    .sidebar-close {
        display: inline-flex;
        flex-shrink: 0;
    }

    .sidebar-link {
        min-height: 44px;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .sidebar-overlay {
        display: block;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: rgba(0, 0, 0, 0.72);
    }

    .catalog-content {
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-sidebar-column,
    .catalog-main-column,
    .catalog-sidebar,
    .sidebar-overlay {
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
}

@media (max-width: 767.98px) {
    .navbar-top-bar,
    .navbar-search-bar,
    .navbar-filters-bar {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .navbar-filter-controls,
    .navbar-filter-controls.has-active-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
    }

    .filter-dropdown-select {
        min-width: 0;
        width: 100%;
    }

    .catalog-section-context {
        grid-row: 2;
        grid-column: 1 / -1;
        width: 100%;
        max-width: none;
        margin-left: 0;
    }

    .navbar-filter-controls.has-active-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    }

    .navbar-filter-controls.has-active-filters .catalog-section-context {
        grid-column: 1 / 3;
    }

    .navbar-clear-filters {
        grid-row: 2;
        grid-column: 3;
        align-self: stretch;
    }

    .catalog-content {
        padding: 0.75rem;
    }

    .order-bar {
        margin-bottom: 1rem;
    }

    .order-chip {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .product-card-body {
        padding: 0.65rem;
    }

    .product-title {
        font-size: 0.75rem;
    }

    .price-bob {
        font-size: 0.85rem;
    }

    .exchange-rate-badge {
        bottom: 1rem;
        right: 1rem;
        padding: 0.5rem 0.75rem;
        min-width: 150px;
    }
}

/* La cuadrícula se finaliza al cierre del archivo para mantener una cascada predecible. */
.products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.product-grid-item {
    min-width: 0;
    animation-duration: 0.28s;
}

.product-card {
    min-width: 0;
    background: #111111;
    border: 1px solid #222222;
    border-radius: 7px;
    box-shadow: none;
    transform: none;
}

.product-card:hover,
.product-card:focus-visible {
    transform: translateY(-2px);
    border-color: #3B3B3B;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.34);
    outline: none;
}

.product-card:focus-visible {
    border-color: #00C8D4;
}

.product-card-img-wrapper {
    position: relative;
    aspect-ratio: 1 / 0.94;
    padding: 1.15rem;
    background: #0A0A0A;
    border-bottom: 1px solid #1E1E1E;
}

.product-card-img {
    transform: scale(0.96);
    transition: transform 0.35s ease;
}

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

.product-card-body {
    min-width: 0;
    padding: 0.95rem 1rem 1rem;
    text-align: left;
}

.product-category-label {
    margin: 0;
    overflow: hidden;
    color: #777777;
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-title {
    min-height: 2.55em;
    margin: 0;
    color: #F4F4F4;
    font-size: 0.98rem;
    font-weight: 650;
    letter-spacing: -0.025em;
    line-height: 1.28;
}

.product-price-section {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.price-bob {
    overflow: hidden;
    color: #00C8D4;
    font-family: var(--font-family-mono);
    font-size: clamp(0.95rem, 1.25vw, 1.15rem);
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: -0.045em;
    text-overflow: ellipsis;
    text-shadow: none;
    white-space: nowrap;
}

.empty-catalog-state {
    background: #111111;
    border-color: #242424;
    border-radius: 7px;
}

@media (min-width: 1600px) {
    .products-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .catalog-layout.sidebar-collapsed .products-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) and (max-width: 1599.98px) {
    .catalog-layout.sidebar-collapsed .products-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

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

@media (max-width: 767.98px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .product-card-img-wrapper {
        padding: 0.65rem;
    }

    .product-card-body {
        padding: 0.72rem 0.72rem 0.8rem;
    }

    .product-title {
        min-height: 2.5em;
        font-size: 0.82rem;
    }

    .price-bob {
        font-size: 0.88rem;
    }
}
