/**
 * ----------------------------------------------------------------------------
 * ARCHIVO: tienda/estilos.css
 * ----------------------------------------------------------------------------
 * Define la identidad visual corporativa del catálogo público: header sticky,
 * hero comercial, sidebar de filtros, cards responsive, estados vacíos,
 * paginación y soporte móvil con drawer lateral. Mantiene un enfoque
 * mobile-first con variables cromáticas oficiales del proyecto.
 * ----------------------------------------------------------------------------
 */

:root {
    /* Rojo corporativo: botones primarios, estados activos, focos y acentos. */
    --brand-red: #E30613;
    /* Rojo corporativo profundo: hover, degradados y sombras del color principal. */
    --brand-red-dark: #B80510;
    /* Negro corporativo: títulos, barra superior, enlaces principales y texto fuerte. */
    --brand-black: #111111;
    /* Gris oscuro: texto secundario y apoyos visuales de lectura. */
    --brand-gray-700: #4B5563;
    /* Gris medio: bordes, separadores y estados neutros. */
    --brand-gray-500: #9CA3AF;
    /* Gris claro: superficies suaves, chips neutros y fondos de apoyo. */
    --brand-gray-100: #F3F4F6;
    /* Gris muy claro: fondo general de la plantilla pública. */
    --brand-gray-050: #F8F9FB;
    /* Valores RGB para transparencias reutilizadas en toda la plantilla. */
    --brand-red-rgb: 227, 6, 19;
    --brand-black-rgb: 17, 17, 17;
    --brand-gray-700-rgb: 75, 85, 99;
    --brand-gray-500-rgb: 156, 163, 175;
    /* Alias legacy para no romper componentes existentes de la raíz pública. */
    --purple-primary: var(--brand-black);
    --purple-tile: #1F2937;
    --purple-bright: var(--brand-red);
    --purple-medium: var(--brand-red-dark);
    --orange-cta: var(--brand-red);
    --orange-hover: var(--brand-red-dark);
    --white: #FFFFFF;
    --gray-light: var(--brand-gray-100);
    --black-footer: var(--brand-black);
    --gray-text: #2F343B;
    --gray-soft: #D1D5DB;
    --surface-card: rgba(255, 255, 255, 0.94);
    --surface-muted: rgba(255, 255, 255, 0.8);
    --shadow-soft: 0 18px 48px rgba(17, 17, 17, 0.08);
    --shadow-strong: 0 24px 60px rgba(17, 17, 17, 0.14);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.store-body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    color: var(--gray-text);
    background:
        radial-gradient(circle at top left, rgba(var(--brand-red-rgb), 0.08), transparent 32%),
        radial-gradient(circle at top right, rgba(var(--brand-black-rgb), 0.06), transparent 24%),
        linear-gradient(180deg, var(--brand-gray-050) 0%, #EEF1F4 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-backdrop {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(var(--brand-black-rgb), 0.04), transparent 40%),
        linear-gradient(300deg, rgba(var(--brand-red-rgb), 0.06), transparent 35%);
    pointer-events: none;
    z-index: -1;
}

.header-topline {
    background: linear-gradient(90deg, var(--brand-black), var(--brand-red));
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
}

.header-topline-inner,
.header-main {
    width: 100%;
    margin: 0;
    padding-inline: 24px;
}

.store-main,
.nr-footer-inner {
    width: calc(100% - 36px);
    margin: 0 auto;
}

.header-topline-inner {
    padding: 12px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    justify-content: space-between;
}

.site-header {
    position: static;
    backdrop-filter: blur(16px);
}

.header-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: center;
    padding-top: 18px;
    padding-bottom: 22px;
    background: rgba(255, 255, 255, 0.88);
}

.brand-cluster {
    display: inline-grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    justify-self: start;
}

.brand-block {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    color: var(--purple-primary);
}

.brand-kicker,
.section-kicker,
.hero-kicker,
.footer-eyebrow {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
}

.brand-block strong {
    display: block;
    font-family: 'Barlow', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1;
}

.header-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    background: var(--white);
    border: 1px solid rgba(var(--brand-gray-500-rgb), 0.35);
    border-radius: 999px;
    padding: 8px;
    box-shadow: var(--shadow-soft);
}

.header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 14px;
    min-height: 48px;
}

.header-search button,
.btn,
.pagination-item,
.filters-reset,
.sidebar-close {
    border: 0;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.header-search button {
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--orange-cta), var(--orange-hover));
    color: var(--white);
    font-weight: 700;
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
}

.header-home-link {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(var(--brand-gray-500-rgb), 0.34);
    background: rgba(255, 255, 255, 0.88);
    color: var(--purple-primary);
    box-shadow: 0 10px 24px rgba(var(--brand-black-rgb), 0.08);
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
    align-self: center;
}

.header-home-link:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--brand-red-rgb), 0.28);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 14px 30px rgba(var(--brand-black-rgb), 0.12);
}

.header-home-link i {
    font-size: 1rem;
    line-height: 1;
}

.header-link {
    color: var(--purple-primary);
    font-weight: 700;
}

.header-pill {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(var(--brand-black-rgb), 0.05);
    color: var(--purple-primary);
}

.header-pill strong {
    font-size: 0.92rem;
}

.header-pill.is-auth {
    background: linear-gradient(120deg, rgba(var(--brand-red-rgb), 0.12), rgba(var(--brand-black-rgb), 0.08));
}

.store-main {
    padding: 28px 0 56px;
}

.catalog-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 0 34px;
}

.catalog-hero-copy,
.catalog-access-card,
.catalog-sidebar-inner,
.catalog-content,
.not-found-card {
    border-radius: var(--radius-xl);
    background: var(--surface-card);
    box-shadow: var(--shadow-soft);
}

.catalog-hero-copy {
    padding: clamp(24px, 4vw, 42px);
    position: relative;
    overflow: hidden;
}

.catalog-hero-copy::after {
    content: '';
    position: absolute;
    inset: auto -80px -80px auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--brand-red-rgb), 0.14), transparent 70%);
}

.catalog-hero-copy h1,
.not-found-card h1 {
    font-family: 'Barlow', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.04;
    margin: 16px 0 14px;
    color: var(--purple-primary);
}

.catalog-hero-copy p,
.catalog-access-card p,
.catalog-content-head p,
.not-found-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(51, 51, 51, 0.84);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.hero-stats article,
.catalog-mobile-summary {
    border-radius: var(--radius-md);
    background: rgba(var(--brand-black-rgb), 0.04);
    padding: 16px 18px;
}

.hero-stats strong,
.catalog-mobile-summary strong {
    display: block;
    font-size: 1.5rem;
    color: var(--purple-primary);
}

.hero-stats span,
.catalog-mobile-summary span {
    font-size: 0.92rem;
    color: rgba(51, 51, 51, 0.72);
}

.catalog-access-card {
    padding: 24px;
    display: grid;
    gap: 16px;
    align-content: start;
    background:
        linear-gradient(135deg, rgba(var(--brand-black-rgb), 0.98), rgba(var(--brand-red-rgb), 0.92)),
        var(--purple-primary);
    color: var(--white);
}

.catalog-access-card h2 {
    margin: 0;
    font-family: 'Barlow', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    line-height: 1.1;
}

.catalog-access-card p {
    color: rgba(255, 255, 255, 0.82);
}

.access-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.access-pill.is-auth {
    background: rgba(var(--brand-red-rgb), 0.18);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 700;
}

.btn:hover,
.pagination-item:hover,
.filters-reset:hover,
.sidebar-close:hover {
    transform: translateY(-1px);
}

.btn-product-primary,
.btn-filter-submit,
.btn-mobile-filter,
.btn-login-inline {
    background: linear-gradient(120deg, var(--orange-cta), var(--orange-hover));
    color: var(--white);
    box-shadow: 0 12px 24px rgba(var(--brand-red-rgb), 0.22);
}

.btn-product-secondary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 244, 246, 0.96));
    border: 1px solid rgba(var(--brand-gray-500-rgb), 0.34);
    color: var(--purple-primary);
    box-shadow: 0 12px 28px rgba(var(--brand-black-rgb), 0.08);
}

.catalog-shell {
    --catalog-sidebar-collapsed: 78px;
    --catalog-sidebar-expanded: 320px;
    --catalog-sidebar-width: 1fr;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    position: relative;
    align-items: start;
}

.catalog-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.catalog-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(92vw, 380px);
    transform: translateX(-105%);
    transition: transform 0.24s ease;
    z-index: 90;
}

.catalog-sidebar.is-open {
    transform: translateX(0);
}

.catalog-sidebar-inner {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    border-radius: 0 28px 28px 0;
}

.catalog-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.catalog-sidebar-title-group,
.catalog-sidebar-actions,
.catalog-sidebar-rail,
.catalog-sidebar-rail-copy {
    display: flex;
    align-items: center;
}

.catalog-sidebar-title-group {
    gap: 12px;
    min-width: 0;
}

.catalog-sidebar-title-icon,
.catalog-sidebar-rail-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(77, 56, 129, 0.09);
    color: var(--purple-primary);
    box-shadow: inset 0 0 0 1px rgba(77, 56, 129, 0.08);
    flex-shrink: 0;
}

.catalog-sidebar-title-copy {
    min-width: 0;
}

.catalog-sidebar-title-copy h2 {
    font-size: 1.55rem;
    line-height: 0.92;
    letter-spacing: -0.03em;
}

.catalog-sidebar-kicker {
    display: block;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(77, 56, 129, 0.56);
    margin-bottom: 3px;
}

.catalog-sidebar-actions {
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.catalog-sidebar-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(77, 56, 129, 0.08);
    color: var(--purple-primary);
    font-weight: 700;
    gap: 8px;
    transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.catalog-sidebar-pin {
    width: 36px;
    min-width: 36px;
    padding: 0;
}

.catalog-sidebar-pin span {
    display: none;
}

.catalog-sidebar-action:hover {
    background: rgba(77, 56, 129, 0.14);
    transform: translateY(-1px);
}

.catalog-sidebar-pin[aria-pressed="true"] {
    background: linear-gradient(135deg, rgba(77, 56, 129, 0.18), rgba(209, 29, 32, 0.18));
    box-shadow: inset 0 0 0 1px rgba(77, 56, 129, 0.14);
}

.catalog-sidebar-rail {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 0;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(77, 56, 129, 0.08), rgba(77, 56, 129, 0.03));
    color: var(--purple-primary);
    text-align: left;
    transition: background 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.catalog-sidebar-rail:hover {
    background: linear-gradient(180deg, rgba(77, 56, 129, 0.14), rgba(77, 56, 129, 0.05));
    box-shadow: 0 12px 28px rgba(77, 56, 129, 0.12);
    transform: translateY(-1px);
}

.catalog-sidebar-rail-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.catalog-sidebar-rail-copy strong,
.catalog-sidebar-rail-copy small {
    line-height: 1.15;
}

.catalog-sidebar-rail-copy small {
    color: rgba(77, 56, 129, 0.64);
    font-size: 0.76rem;
    font-weight: 700;
}

.catalog-sidebar-body {
    min-width: 0;
}

.catalog-sidebar-head h2,
.filters-block h3,
.catalog-content-head h2 {
    margin: 0;
    color: var(--purple-primary);
    font-family: 'Barlow', 'Plus Jakarta Sans', sans-serif;
}

.catalog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 15, 40, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s ease, visibility 0.24s ease;
    z-index: 80;
}

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

.catalog-content {
    padding: 26px;
}

.catalog-content-head {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.catalog-results {
    min-height: 280px;
}

.catalog-results-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(77, 56, 129, 0.12);
}

.catalog-results-summary {
    display: grid;
    gap: 4px;
}

.catalog-results-head strong {
    color: var(--purple-primary);
    font-size: 1.22rem;
}

.catalog-results-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.catalog-order-inline {
    display: inline-grid;
    gap: 6px;
}

.catalog-order-inline span {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(var(--brand-gray-700-rgb), 0.88);
}

.catalog-order-inline select {
    min-height: 46px;
    min-width: 220px;
    border: 1px solid rgba(var(--brand-gray-500-rgb), 0.34);
    border-radius: 16px;
    background: var(--white);
    padding: 0 14px;
    outline: none;
    color: var(--purple-primary);
    font-weight: 700;
}

.catalog-order-inline select:focus {
    border-color: rgba(var(--brand-red-rgb), 0.6);
    box-shadow: 0 0 0 4px rgba(var(--brand-red-rgb), 0.12);
}

.catalog-range {
    color: rgba(51, 51, 51, 0.68);
    font-size: 0.95rem;
    text-align: right;
}

.catalog-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(var(--brand-black-rgb), 0.04);
    border: 1px solid rgba(var(--brand-gray-500-rgb), 0.18);
}

.catalog-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: rgba(var(--brand-gray-700-rgb), 0.88);
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-view-button.is-active {
    background: var(--white);
    color: var(--purple-primary);
    box-shadow: 0 10px 22px rgba(var(--brand-black-rgb), 0.08);
}

.catalog-view-button i {
    font-size: 0.92rem;
}

.active-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.active-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(var(--brand-red-rgb), 0.08);
    color: var(--purple-primary);
    font-size: 0.9rem;
    font-weight: 700;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.catalog-table-groups {
    display: grid;
    gap: 22px;
}

.catalog-table-group {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 247, 252, 0.98) 100%);
    box-shadow: var(--shadow-soft);
}

.catalog-table-group-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: center;
}

.catalog-table-group-media {
    display: none;
}

.catalog-table-group-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.catalog-table-group-copy {
    display: grid;
    gap: 8px;
}

.catalog-table-group-kicker {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(var(--brand-gray-700-rgb), 0.82);
}

.catalog-table-group-copy h3 {
    margin: 0;
    color: var(--purple-primary);
    font-size: clamp(1.1rem, 1.6vw, 1.38rem);
    line-height: 1.2;
}

.catalog-table-group-context {
    margin: 0;
    color: rgba(51, 51, 51, 0.72);
    line-height: 1.5;
}

.catalog-table-group-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.catalog-table-group-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(var(--brand-red-rgb), 0.08);
    color: var(--purple-primary);
    font-size: 0.84rem;
    font-weight: 800;
}

.catalog-table-group-availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(var(--brand-red-rgb), 0.14);
    background: rgba(var(--brand-red-rgb), 0.06);
    color: var(--purple-primary);
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.catalog-table-group-availability:hover {
    background: rgba(var(--brand-red-rgb), 0.1);
    border-color: rgba(var(--brand-red-rgb), 0.24);
    color: var(--purple-primary);
    transform: translateY(-1px);
}

.catalog-table-group-availability i {
    font-size: 0.78rem;
}

.catalog-table-scroll {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid rgba(var(--brand-gray-500-rgb), 0.2);
    background: var(--white);
}

.catalog-table-view {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
}

.catalog-table-view thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 14px 12px;
    background: rgba(248, 247, 252, 0.98);
    color: var(--purple-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 1px solid rgba(var(--brand-gray-500-rgb), 0.18);
}

.catalog-table-view tbody td {
    padding: 14px 12px;
    vertical-align: middle;
    color: rgba(51, 51, 51, 0.84);
    border-bottom: 1px solid rgba(var(--brand-gray-500-rgb), 0.14);
}

.catalog-table-view tbody tr:last-child td {
    border-bottom: 0;
}

.catalog-table-view tbody tr:hover td {
    background: rgba(var(--brand-red-rgb), 0.035);
}

.catalog-table-code,
.catalog-table-model,
.catalog-table-brand {
    display: grid;
    gap: 4px;
}

.catalog-table-code strong,
.catalog-table-model strong,
.catalog-table-brand strong {
    color: var(--purple-primary);
    line-height: 1.35;
}

.catalog-table-code small,
.catalog-table-model small {
    color: rgba(var(--brand-gray-700-rgb), 0.72);
    line-height: 1.35;
}

.catalog-table-title-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    color: var(--brand-red);
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
}

.catalog-table-title-link:hover {
    color: var(--brand-red-dark);
    text-decoration: underline;
}

.catalog-table-empty {
    color: rgba(var(--brand-gray-700-rgb), 0.48);
}

.product-card {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 100%;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.product-card-media {
    display: grid;
    place-items: center;
    height: 280px;
    padding: 22px;
    background: var(--white);
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    box-shadow: inset 0 -1px 0 rgba(var(--brand-black-rgb), 0.06);
}

.product-card-media img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 236px;
    object-fit: contain;
    object-position: center center;
}

.product-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 20px 20px;
}

.product-badge-row {
    display: grid;
    grid-template-rows: repeat(2, 28px);
    align-content: start;
    gap: 8px;
    min-height: 64px;
    overflow: hidden;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    width: fit-content;
    max-width: 100%;
    border-radius: 999px;
    background: rgba(var(--brand-red-rgb), 0.08);
    color: var(--purple-primary);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.34;
    color: var(--purple-primary);
    height: 4.02em;
    min-height: 4.02em;
    max-height: 4.02em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.product-title a:hover {
    color: var(--brand-red);
}

.product-identity-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.product-identity-box {
    display: grid;
    align-content: start;
    gap: 4px;
    min-height: 74px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(var(--brand-black-rgb), 0.035);
    border: 1px solid rgba(var(--brand-gray-500-rgb), 0.24);
}

.product-identity-box span {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(var(--brand-gray-700-rgb), 0.82);
}

.product-identity-box strong {
    font-size: 0.94rem;
    color: var(--purple-primary);
    line-height: 1.35;
    word-break: break-word;
}

.product-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    font-size: 0.9rem;
    color: rgba(51, 51, 51, 0.74);
    margin-top: auto;
}

.product-meta span {
    display: grid;
    align-content: center;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(var(--brand-gray-500-rgb), 0.12);
}

.product-summary {
    margin: 0;
    color: rgba(51, 51, 51, 0.82);
    line-height: 1.68;
    min-height: 5em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.product-spec-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    align-content: start;
    min-height: 120px;
}

.product-spec-list li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(var(--brand-black-rgb), 0.03);
    font-size: 0.9rem;
}

.product-spec-list li span {
    color: rgba(51, 51, 51, 0.72);
}

.product-spec-list li strong {
    color: var(--purple-primary);
    text-align: right;
}

.product-price-box {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
}

.product-price-box {
    background: rgba(245, 124, 0, 0.08);
}

.product-price {
    font-size: 1.32rem;
    color: var(--purple-primary);
}

.product-stock {
    color: rgba(51, 51, 51, 0.72);
    font-size: 0.92rem;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    gap: 10px;
    margin-top: 12px;
}

.product-actions .btn {
    display: flex;
    width: 100%;
    position: relative;
    min-height: 58px;
    padding: 12px 14px 12px 16px;
    border-radius: 12px;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    line-height: 1;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.product-actions > * {
    width: 100%;
}

.product-actions .btn:hover {
    transform: translateY(-2px);
}

.product-actions .btn:active {
    transform: translateY(0);
}

.product-actions .btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 45%);
    pointer-events: none;
}

.product-action-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.product-action-copy strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.product-action-copy small {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: 0.03em;
    text-transform: none;
    opacity: 0.82;
}

.product-action-icon {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.product-actions .btn:hover .product-action-icon {
    transform: translateX(2px);
}

.btn-product-primary {
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-product-primary .product-action-icon {
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
}

.btn-product-secondary .product-action-icon {
    background: rgba(77, 56, 129, 0.08);
    color: var(--purple-primary);
}

.filters-form {
    display: grid;
    gap: 14px;
}

.filters-block,
.filter-tag-group,
.filter-field {
    display: grid;
    gap: 8px;
}

.filters-block {
    padding: 14px;
    border-radius: var(--radius-md);
    background: rgba(77, 56, 129, 0.035);
}

.filters-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.filters-reset,
.sidebar-close {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(77, 56, 129, 0.08);
    color: var(--purple-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.filters-reset {
    margin-left: auto;
}

.filter-field span,
.filter-tag-group h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--purple-primary);
    letter-spacing: 0.01em;
}

.filters-block h3 {
    font-size: 1rem;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.filter-tag-group {
    gap: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.filter-tag-group summary {
    list-style: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid rgba(77, 56, 129, 0.10);
    border-radius: 14px;
    background: rgba(77, 56, 129, 0.04);
    box-shadow: none;
    user-select: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.filter-tag-group summary::-webkit-details-marker {
    display: none;
}

.filter-tag-group summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.76rem;
    color: rgba(var(--brand-gray-700-rgb), 0.82);
    justify-self: end;
    transition: transform 0.18s ease, color 0.18s ease;
}

.filter-tag-group summary span {
    min-width: 0;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--purple-primary);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.filter-tag-group summary small {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(var(--brand-gray-700-rgb), 0.82);
    padding-right: 4px;
    white-space: nowrap;
}

.filter-tag-group[open] summary {
    border-color: rgba(var(--brand-red-rgb), 0.24);
    background: rgba(var(--brand-red-rgb), 0.06);
    box-shadow: 0 0 0 3px rgba(var(--brand-red-rgb), 0.08);
}

.filter-tag-group[open] summary::after {
    transform: rotate(180deg);
    color: var(--purple-primary);
}

.filter-field input,
.filter-field select {
    min-height: 42px;
    width: 100%;
    border: 1px solid rgba(var(--brand-gray-500-rgb), 0.34);
    border-radius: 14px;
    background: var(--white);
    padding: 0 12px;
    outline: none;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.2;
}

.filter-field input:focus,
.filter-field select:focus {
    border-color: rgba(var(--brand-red-rgb), 0.6);
    box-shadow: 0 0 0 4px rgba(var(--brand-red-rgb), 0.12);
}

.filter-tag-options {
    display: grid;
    gap: 6px;
    padding: 8px 2px 2px;
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(var(--brand-black-rgb), 0.03);
    cursor: pointer;
}

.filter-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--orange-cta);
}

.filter-check span {
    font-size: 0.84rem;
}

.filter-check small {
    font-size: 0.74rem;
    color: rgba(51, 51, 51, 0.55);
}

.filters-actions {
    display: grid;
}

.catalog-pagination {
    margin-top: 22px;
}

.pagination-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-item {
    min-width: 46px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    background: rgba(var(--brand-black-rgb), 0.05);
    color: var(--purple-primary);
    font-weight: 700;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 46px;
    color: rgba(var(--brand-gray-700-rgb), 0.82);
    font-weight: 800;
    letter-spacing: 0.12em;
}

.pagination-item.is-active {
    background: linear-gradient(120deg, var(--brand-black), var(--brand-red));
    color: var(--white);
}

.pagination-item:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.empty-state,
.not-found-card {
    padding: clamp(26px, 5vw, 52px);
    text-align: center;
}

.empty-state {
    border-radius: var(--radius-lg);
    background: rgba(var(--brand-black-rgb), 0.04);
}

.empty-state-icon,
.not-found-code {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    margin: 0 auto 18px;
    background: linear-gradient(120deg, var(--orange-cta), var(--orange-hover));
    color: var(--white);
    font-weight: 800;
    font-size: 1.6rem;
}

.empty-state h3,
.not-found-card h1 {
    margin: 0 0 10px;
}

.empty-state p {
    margin: 0;
    color: rgba(51, 51, 51, 0.72);
    line-height: 1.7;
}

.catalog-loading .catalog-results {
    position: relative;
}

.catalog-skeleton-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.catalog-skeleton-card {
    height: 380px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(90deg, rgba(77, 56, 129, 0.06) 25%, rgba(77, 56, 129, 0.12) 37%, rgba(77, 56, 129, 0.06) 63%);
    background-size: 400% 100%;
    animation: storeShimmer 1.2s ease infinite;
}

@keyframes storeShimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0 0;
    }
}

.nr-footer {
    margin-top: 40px;
    background:
        radial-gradient(circle at top right, rgba(245, 124, 0, 0.16), transparent 22%),
        linear-gradient(180deg, #181b20 0%, #0f1114 100%);
    color: rgba(255, 255, 255, 0.84);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nr-footer-inner {
    width: min(100% - 32px, 1380px);
    margin: 0 auto;
    padding: clamp(34px, 4vw, 48px) 0 24px;
}

.nr-footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.nr-footer-brand {
    display: grid;
    gap: 14px;
}

.nr-footer-logo {
    width: auto;
    height: 58px;
    object-fit: contain;
}

.nr-footer-brand p {
    margin: 0;
    max-width: 460px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

.nr-footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-weight: 700;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.nr-footer-cta:hover {
    transform: translateY(-1px);
    border-color: rgba(190, 24, 51, 0.48);
    background: rgba(190, 24, 51, 0.16);
    color: #ffffff;
}

.store-flash {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    padding: 16px 20px;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.store-flash.is-success {
    background: linear-gradient(135deg, rgba(77, 56, 129, 0.12), rgba(92, 62, 190, 0.08));
    color: var(--purple-primary);
}

.store-flash.is-error {
    background: linear-gradient(135deg, rgba(245, 124, 0, 0.14), rgba(245, 124, 0, 0.08));
    color: var(--gray-text);
}

.store-flash p {
    margin: 0;
    font-weight: 700;
    line-height: 1.6;
}

.customer-auth-shell {
    width: min(720px, 100%);
    margin: 0 auto;
}

.customer-auth-card {
    display: grid;
    gap: 20px;
    padding: clamp(24px, 4vw, 38px);
    border-radius: var(--radius-xl);
    background: var(--surface-card);
    box-shadow: var(--shadow-soft);
}

.customer-auth-copy {
    display: grid;
    gap: 10px;
}

.customer-auth-copy h1 {
    margin: 0;
    font-family: 'Barlow', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.06;
    color: var(--purple-primary);
}

.customer-auth-copy p {
    margin: 0;
    line-height: 1.75;
    color: rgba(51, 51, 51, 0.82);
}

.customer-auth-form {
    display: grid;
    gap: 18px;
}

.customer-auth-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.customer-dashboard-shell {
    display: grid;
    gap: 22px;
}

.customer-dashboard-hero,
.customer-dashboard-summary,
.customer-panel-card {
    border-radius: var(--radius-xl);
    background: var(--surface-card);
    box-shadow: var(--shadow-soft);
}

.customer-dashboard-hero {
    display: grid;
    gap: 18px;
    padding: clamp(24px, 4vw, 38px);
}

.customer-dashboard-copy {
    display: grid;
    gap: 10px;
}

.customer-dashboard-copy h1,
.customer-panel-head h2 {
    margin: 0;
    font-family: 'Barlow', 'Plus Jakarta Sans', sans-serif;
    color: var(--purple-primary);
}

.customer-dashboard-copy h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
}

.customer-dashboard-copy p,
.customer-panel-head p,
.customer-menu-card p {
    margin: 0;
    line-height: 1.7;
    color: rgba(51, 51, 51, 0.8);
}

.customer-dashboard-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.customer-dashboard-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    overflow: hidden;
}

.customer-dashboard-summary article {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.76);
}

.customer-dashboard-summary span,
.customer-profile-list span,
.customer-menu-state {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.customer-dashboard-summary span,
.customer-profile-list span {
    color: rgba(77, 56, 129, 0.72);
}

.customer-dashboard-summary strong,
.customer-profile-list strong {
    color: var(--gray-text);
    line-height: 1.45;
}

.customer-dashboard-grid {
    display: grid;
    gap: 22px;
}

.customer-panel-card {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.customer-panel-card h2,
.customer-menu-card h3 {
    margin: 0;
    color: var(--purple-primary);
}

.customer-profile-list {
    display: grid;
    gap: 12px;
}

.customer-profile-list div {
    display: grid;
    gap: 5px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(77, 56, 129, 0.04);
    border: 1px solid rgba(77, 56, 129, 0.08);
}

.customer-panel-head {
    display: grid;
    gap: 10px;
}

.customer-menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.customer-menu-card {
    display: grid;
    gap: 10px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(77, 56, 129, 0.045);
    border: 1px solid rgba(77, 56, 129, 0.08);
}

.customer-menu-state {
    color: var(--orange-cta);
}

.nr-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.nr-footer-col {
    display: grid;
    gap: 14px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nr-footer-col h4 {
    margin: 0;
    color: #ffffff;
    font-family: 'Barlow', 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.nr-footer-stack,
.nr-footer-copy {
    display: grid;
    gap: 10px;
}

.nr-footer-copy p,
.nr-footer-copy small {
    margin: 0;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
}

.nr-footer-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.7;
    transition: color .18s ease, transform .18s ease;
}

.nr-footer-link i {
    width: 16px;
    margin-top: 5px;
    color: rgba(190, 24, 51, 0.92);
    flex-shrink: 0;
}

.nr-footer-link:hover {
    transform: translateX(2px);
    color: #ffffff;
}

.nr-footer-bottom-link {
    color: rgba(190, 24, 51, 0.92);
    font-weight: 700;
    transition: color .18s ease;
}

.nr-footer-bottom-link:hover {
    color: #ffffff;
}

.nr-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 20px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.62);
}

.not-found-shell {
    width: min(960px, calc(100% - 32px));
    margin: 48px auto;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

@media (min-width: 768px) {
    .header-main {
        grid-template-columns: 280px minmax(340px, 1fr) auto;
    }

    .header-actions {
        justify-content: flex-end;
    }

    .catalog-hero {
        grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
        align-items: stretch;
    }

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

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

    .nr-footer-top {
        grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
        align-items: start;
    }

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

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

    .customer-dashboard-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: start;
    }

    .customer-dashboard-summary {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .customer-dashboard-grid {
        grid-template-columns: 360px minmax(0, 1fr);
        align-items: start;
    }

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

@media (max-width: 520px) {
    .product-actions .btn {
        min-height: 56px;
        padding: 11px 12px 11px 14px;
        border-radius: 10px;
    }

    .product-action-copy strong {
        font-size: 0.92rem;
    }

    .product-action-copy small {
        font-size: 0.7rem;
        letter-spacing: 0.02em;
    }

    .product-action-icon {
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }
}

@media (min-width: 768px) {
    .catalog-shell {
        --catalog-sidebar-width: var(--catalog-sidebar-collapsed);
        grid-template-columns: var(--catalog-sidebar-width) minmax(0, 1fr);
        align-items: start;
        transition: grid-template-columns 0.28s ease;
    }

    .catalog-shell.is-sidebar-expanded,
    .catalog-shell.is-sidebar-pinned {
        --catalog-sidebar-width: var(--catalog-sidebar-expanded);
    }

    .catalog-mobile-bar,
    .catalog-overlay {
        display: none;
    }

    .catalog-sidebar {
        position: sticky;
        top: 118px;
        transform: none;
        width: auto;
        z-index: 1;
        transition: width 0.28s ease;
    }

    .catalog-sidebar-inner {
        height: auto;
        border-radius: var(--radius-xl);
        padding: 18px;
        transition: padding 0.28s ease, box-shadow 0.28s ease;
    }

    .catalog-shell.is-sidebar-expanded .catalog-sidebar-inner,
    .catalog-shell.is-sidebar-pinned .catalog-sidebar-inner {
        box-shadow: 0 16px 34px rgba(20, 15, 40, 0.08);
    }

    .catalog-sidebar-head,
    .catalog-sidebar-body,
    .catalog-sidebar-rail {
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    }

    .catalog-shell:not(.is-sidebar-expanded):not(.is-sidebar-pinned) .catalog-sidebar-inner {
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .catalog-shell:not(.is-sidebar-expanded):not(.is-sidebar-pinned) .catalog-sidebar-head,
    .catalog-shell:not(.is-sidebar-expanded):not(.is-sidebar-pinned) .catalog-sidebar-body {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        max-height: 0;
        overflow: hidden;
        margin: 0;
        transform: translateX(-8px);
    }

    .catalog-shell:not(.is-sidebar-expanded):not(.is-sidebar-pinned) .catalog-sidebar-rail {
        width: 78px;
        min-height: 78px;
        justify-content: center;
        padding: 0;
        margin: 0;
        border-radius: 24px;
        box-shadow: var(--shadow-soft);
    }

    .catalog-shell:not(.is-sidebar-expanded):not(.is-sidebar-pinned) .catalog-sidebar-rail-copy {
        display: none;
    }

    .catalog-shell:not(.is-sidebar-expanded):not(.is-sidebar-pinned) .catalog-sidebar-rail-icon {
        width: 46px;
        height: 46px;
        border-radius: 16px;
    }

    .catalog-shell.is-sidebar-expanded .catalog-sidebar-head,
    .catalog-shell.is-sidebar-expanded .catalog-sidebar-body,
    .catalog-shell.is-sidebar-pinned .catalog-sidebar-head,
    .catalog-shell.is-sidebar-pinned .catalog-sidebar-body {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .catalog-shell.is-sidebar-expanded .catalog-sidebar-rail,
    .catalog-shell.is-sidebar-pinned .catalog-sidebar-rail {
        display: none;
    }

    .catalog-shell.is-sidebar-expanded .catalog-sidebar-body,
    .catalog-shell.is-sidebar-pinned .catalog-sidebar-body {
        max-height: none;
    }

    .catalog-content {
        min-height: 640px;
    }

    .catalog-table-group {
        padding: 22px;
    }

    .catalog-table-group-head {
        grid-template-columns: 128px minmax(0, 1fr);
        gap: 18px;
    }

    .catalog-table-group-media {
        display: grid;
        place-items: center;
        height: 128px;
        padding: 12px;
        border-radius: 18px;
        background: var(--white);
        border: 1px solid rgba(var(--brand-gray-500-rgb), 0.18);
    }

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

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

@media (min-width: 768px) and (max-width: 1099.98px) {
    .catalog-shell {
        --catalog-sidebar-expanded: 286px;
    }

    .catalog-sidebar {
        top: 104px;
    }

    .catalog-content {
        padding: 22px;
    }

    .catalog-sidebar-kicker {
        display: none;
    }

    .catalog-sidebar-title-copy h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 767.98px) {
    .catalog-sidebar-pin,
    .catalog-sidebar-rail {
        display: none;
    }

    .catalog-sidebar-head {
        margin-bottom: 16px;
    }

    .catalog-sidebar-title-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }
}

@media (min-width: 1400px) {
    .header-topline-inner,
    .header-main {
        padding-inline: 28px;
    }

    .store-main,
    .nr-footer-inner {
        width: calc(100% - 52px);
    }

    .catalog-shell {
        grid-template-columns: var(--catalog-sidebar-width, 280px) minmax(0, 1fr);
        gap: 24px;
    }

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

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

@media (min-width: 1700px) {
    .catalog-shell {
        grid-template-columns: 300px minmax(0, 1fr);
    }

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

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

@media (max-width: 767px) {
    .site-header {
        box-shadow: 0 8px 24px rgba(38, 24, 76, 0.08);
    }

    .header-topline-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-block: 14px;
        font-size: 0.95rem;
        line-height: 1.35;
    }

    .header-main {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-top: 14px;
        padding-bottom: 16px;
        background: rgba(248, 247, 252, 0.96);
    }

    .brand-cluster {
        width: 100%;
        gap: 12px;
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .header-home-link {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(38, 24, 76, 0.08);
    }

    .header-home-link i {
        font-size: 0.92rem;
    }

    .brand-kicker {
        font-size: 0.66rem;
        letter-spacing: 0.16em;
    }

    .brand-block strong {
        font-size: clamp(1.7rem, 8.5vw, 2.25rem);
        line-height: 0.96;
    }

    .header-search {
        width: 100%;
        margin: 0;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding: 6px;
        border-radius: 28px;
    }

    .header-search input {
        min-height: 44px;
        padding: 0 12px;
        font-size: 0.95rem;
    }

    .header-search button {
        min-height: 44px;
        padding: 0 18px;
        font-size: 0.95rem;
    }

    .header-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        align-items: stretch;
    }

    .header-link,
    .header-pill {
        width: 100%;
        min-height: 54px;
        border-radius: 16px;
        justify-content: center;
    }

.header-link {
        display: inline-flex;
        align-items: center;
        padding: 12px 14px;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(var(--brand-gray-500-rgb), 0.32);
        box-shadow: 0 8px 22px rgba(var(--brand-black-rgb), 0.06);
    }

    .site-header.is-compact .header-topline,
    .site-header.is-compact .brand-block,
    .site-header.is-compact .header-actions {
        display: none;
    }

    .site-header.is-compact .header-main {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .header-topline-inner,
    .header-main {
        padding-inline: 16px;
    }

    .store-main,
    .nr-footer-inner {
        width: calc(100% - 24px);
    }

    .product-identity-row,
    .product-meta {
        grid-template-columns: 1fr;
    }

    .product-badge-row,
    .product-spec-list {
        min-height: 0;
    }

    .product-title,
    .product-summary,
    .product-identity-box {
        min-height: 0;
    }

    .catalog-results-tools,
    .catalog-order-inline,
    .catalog-view-toggle {
        width: 100%;
    }

    .catalog-order-inline select {
        min-width: 0;
        width: 100%;
    }

    .catalog-view-button {
        flex: 1 1 0;
    }

    .catalog-range {
        text-align: left;
    }

    .catalog-table-group {
        padding: 16px;
    }

    .catalog-table-view {
        min-width: 680px;
    }

    .product-card-media {
        height: 240px;
        padding: 18px;
    }

    .product-card-media img {
        max-height: 204px;
    }
}

/**
 * ----------------------------------------------------------------------------
 * BLOQUE: DETALLE DE PRODUCTO
 * ----------------------------------------------------------------------------
 * Define la experiencia visual premium de articulo.php: breadcrumb limpio,
 * galería amplia, resumen comercial, pestañas de contenido, recursos y
 * relacionados reutilizando la línea visual del catálogo público.
 * ----------------------------------------------------------------------------
 */

.article-body .store-main {
    padding-top: 20px;
}

.article-main {
    display: grid;
    gap: 22px;
}

.article-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(var(--brand-gray-500-rgb), 0.22);
    box-shadow: 0 12px 32px rgba(var(--brand-black-rgb), 0.08);
    font-size: 0.9rem;
}

.article-breadcrumb a {
    text-decoration: none;
}

.article-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: rgba(51, 51, 51, 0.72);
    background: rgba(243, 244, 246, 0.96);
    border: 1px solid rgba(var(--brand-gray-500-rgb), 0.22);
    font-weight: 700;
    line-height: 1;
    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.article-breadcrumb a.article-breadcrumb-item {
    color: var(--purple-primary);
}

.article-breadcrumb a.article-breadcrumb-item:hover {
    color: var(--brand-red);
    background: #ffffff;
    border-color: rgba(var(--brand-red-rgb), 0.2);
    box-shadow: 0 8px 22px rgba(var(--brand-black-rgb), 0.1);
    transform: translateY(-1px);
}

.article-breadcrumb-item i {
    font-size: 0.82rem;
}

.article-breadcrumb-item span {
    color: inherit;
}

.article-breadcrumb-item.is-active {
    color: var(--brand-red);
    background: rgba(var(--brand-red-rgb), 0.08);
    border-color: rgba(var(--brand-red-rgb), 0.16);
    box-shadow: inset 0 0 0 1px rgba(var(--brand-red-rgb), 0.04);
}

.article-breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    color: rgba(51, 51, 51, 0.34);
    font-size: 0.7rem;
}

@media (max-width: 767.98px) {
    .article-breadcrumb {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 4px 6px;
        padding: 14px 16px;
        border-radius: 18px;
    }

    .article-breadcrumb-item {
        min-height: auto;
        padding: 0;
        font-size: 0.82rem;
        gap: 5px;
        border: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        white-space: normal;
        line-height: 1.45;
    }

    .article-breadcrumb-separator {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 10px;
        min-height: 20px;
        padding: 0;
        font-size: 0.58rem;
    }

    .article-breadcrumb a.article-breadcrumb-item {
        color: rgba(51, 51, 51, 0.74);
    }

    .article-breadcrumb a.article-breadcrumb-item:hover {
        transform: none;
        box-shadow: none;
        background: transparent;
        border-color: transparent;
    }

    .article-breadcrumb-item.is-active {
        flex: 1 0 100%;
        margin-top: 6px;
        padding-top: 10px;
        border-top: 1px solid rgba(var(--brand-gray-500-rgb), 0.28);
        color: #1f2937;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        line-height: 1.3;
        white-space: normal;
        font-size: 0.94rem;
        font-weight: 800;
    }

    .article-breadcrumb-item i {
        font-size: 0.72rem;
    }
}

.article-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.article-gallery-card,
.article-summary-card,
.article-tabs-card,
.article-related-section {
    border-radius: var(--radius-xl);
    background: var(--surface-card);
    box-shadow: var(--shadow-soft);
}

.article-gallery-card {
    padding: 24px;
    display: grid;
    gap: 16px;
}

.article-gallery-stage {
    display: grid;
    place-items: center;
    min-height: 480px;
    padding: 28px;
    border-radius: 28px;
    background: var(--white);
    box-shadow: inset 0 -1px 0 rgba(var(--brand-black-rgb), 0.06);
}

.article-gallery-stage img {
    width: 100%;
    max-height: 430px;
    object-fit: contain;
}

.article-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 12px;
}

.article-thumb {
    display: grid;
    place-items: center;
    min-height: 88px;
    padding: 10px;
    border: 1px solid rgba(var(--brand-gray-500-rgb), 0.34);
    border-radius: 18px;
    background: var(--white);
}

.article-thumb.is-active {
    border-color: rgba(var(--brand-red-rgb), 0.7);
    box-shadow: 0 0 0 4px rgba(var(--brand-red-rgb), 0.12);
}

.article-thumb img {
    width: 100%;
    max-height: 64px;
    object-fit: contain;
}

.article-summary-card {
    padding: 28px;
    display: grid;
    gap: 18px;
    align-content: start;
}

.article-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(var(--brand-red-rgb), 0.08);
    color: var(--purple-primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.article-title {
    margin: 0;
    font-family: 'Barlow', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    line-height: 1.05;
    color: var(--purple-primary);
}

.article-subtitle {
    margin: 0;
    color: rgba(51, 51, 51, 0.78);
    font-size: 1.02rem;
    line-height: 1.75;
}

.article-identity-grid,
.article-taxonomy-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.article-identity-grid article,
.article-taxonomy-list div {
    display: grid;
    gap: 5px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(var(--brand-black-rgb), 0.035);
    border: 1px solid rgba(var(--brand-gray-500-rgb), 0.24);
}

.article-identity-grid span,
.article-taxonomy-list span {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(var(--brand-gray-700-rgb), 0.82);
}

.article-identity-grid strong,
.article-taxonomy-list strong {
    font-size: 0.98rem;
    line-height: 1.35;
    color: var(--gray-text);
    word-break: break-word;
}

.article-price-panel {
    display: grid;
    gap: 10px;
    padding: 20px 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(var(--brand-red-rgb), 0.12), rgba(var(--brand-black-rgb), 0.06));
}

.article-price-value {
    font-family: 'Barlow', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--purple-primary);
    line-height: 1;
}

.article-price-stock,
.article-price-lock-title {
    font-weight: 700;
    color: var(--gray-text);
}

.article-price-panel p {
    margin: 0;
    line-height: 1.7;
    color: rgba(51, 51, 51, 0.78);
}

.article-resource-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-resource-row a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(var(--brand-gray-500-rgb), 0.34);
    color: var(--purple-primary);
    font-weight: 700;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

.article-resource-row .article-resource-pill i {
    font-size: 0.92rem;
}

.article-resource-row .article-resource-pill.is-pdf {
    color: var(--brand-red-dark);
    background: rgba(var(--brand-red-rgb), 0.06);
    border-color: rgba(var(--brand-red-rgb), 0.26);
}

.article-resource-row .article-resource-pill:hover {
    border-color: rgba(var(--brand-gray-700-rgb), 0.4);
    box-shadow: 0 10px 22px rgba(var(--brand-black-rgb), 0.08);
}

.article-resource-row .article-resource-pill.is-pdf:hover {
    color: var(--brand-red);
    border-color: rgba(var(--brand-red-rgb), 0.44);
    box-shadow: 0 12px 24px rgba(var(--brand-red-rgb), 0.12);
}

.article-tabs-card,
.article-related-section {
    padding: 26px;
}

.article-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.article-tab-button {
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: rgba(var(--brand-black-rgb), 0.05);
    color: var(--purple-primary);
    font-weight: 700;
    cursor: pointer;
}

.article-tab-button.is-active {
    background: linear-gradient(120deg, var(--brand-black), var(--brand-red));
    color: var(--white);
}

.article-tab-panel {
    display: none;
}

.article-tab-panel.is-active {
    display: block;
}

.article-richtext {
    color: rgba(51, 51, 51, 0.84);
    line-height: 1.9;
    font-size: 1rem;
}

.article-spec-grid,
.article-resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.article-resource-column {
    display: grid;
    gap: 14px;
    align-content: start;
}

.article-spec-grid article,
.article-resource-card {
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(var(--brand-black-rgb), 0.035);
    border: 1px solid rgba(var(--brand-gray-500-rgb), 0.24);
}

.article-spec-grid span,
.article-resource-card span {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(var(--brand-gray-700-rgb), 0.82);
}

.article-spec-grid strong,
.article-resource-card strong {
    font-size: 1rem;
    line-height: 1.45;
    color: var(--gray-text);
}

.article-related-section {
    display: grid;
    gap: 18px;
}

.article-related-head {
    margin-bottom: 0;
}

.article-related-grid {
    gap: 20px;
}

@media (min-width: 1100px) {
    .article-hero {
        grid-template-columns: minmax(0, 1.22fr) minmax(480px, 0.78fr);
        align-items: start;
    }

    .article-gallery-stage {
        min-height: 560px;
    }

    .article-gallery-stage img {
        max-height: 500px;
    }
}

@media (min-width: 1400px) {
    .article-hero {
        grid-template-columns: minmax(0, 1.28fr) minmax(520px, 0.72fr);
        gap: 24px;
    }
}

@media (max-width: 991px) {
    .article-identity-grid,
    .article-taxonomy-list,
    .article-spec-grid,
    .article-resource-grid {
        grid-template-columns: 1fr;
    }

    .article-gallery-stage {
        min-height: 340px;
    }

    .article-gallery-stage img {
        max-height: 300px;
    }
}



.brand-block.brand-logo-block{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    width:220px !important;
    min-width:220px !important;
    height:76px !important;
    padding:0 !important;
    overflow:visible !important;
    background:transparent !important;
}

.brand-block.brand-logo-block img{
    display:block !important;
    width:210px !important;
    height:auto !important;
    max-height:70px !important;
    object-fit:contain !important;
    opacity:1 !important;
    visibility:visible !important;
}


/* Ajuste visual desktop para enlaces del header */
@media (min-width: 768px) {
    .header-actions {
        gap: 8px;
        flex-wrap: nowrap;
    }

.header-link{
    display:inline-flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    min-height:42px;
    padding:6px 12px;
    border-radius:999px;
    background:rgba(var(--brand-black-rgb),0.045);
    color:var(--purple-primary);
    font-size:.80rem;
    font-weight:700;
    line-height:1;
    white-space:nowrap;
    transition:.2s;
}

.header-link i{
    font-size:.85rem;
}

.header-link span{
    line-height:1;
}

    .header-link:hover {
        background: rgba(var(--brand-red-rgb), 0.08);
        color: var(--brand-red-dark);
        transform: translateY(-1px);
    }

    .header-pill {
        min-height: 38px;
        padding: 0 15px;
        border-radius: 999px;
        justify-content: center;
    }

    .header-pill strong {
        font-size: 0.84rem;
        line-height: 1;
    }
}

@media (min-width: 768px) {
    .header-link-muted {
        background: rgba(var(--brand-red-rgb), 0.07);
    }
}


.header-topline-right{
    display:flex;
    align-items:center;
    gap:16px;
}

.header-old-site{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    height:30px;
    padding:0 14px;
    border-radius:999px;
    background:rgba(255,255,255,.18);
    border:1px solid rgba(255,255,255,.22);
    color:#fff;
    font-size:.78rem;
    font-weight:700;
    text-decoration:none;
    transition:all .20s ease;
    white-space:nowrap;
}

.header-old-site:hover{
    background:#ffffff;
    color:var(--brand-red);
    transform:translateY(-1px);
}

.header-old-site i{
    font-size:.72rem;
}
