/**
 * SynckShop - Shop Page Styles (Pro Edition)
 * Diseño profesional y responsive tipo app nativa
 * Usa variables de base.css
 * 
 * @version 2.0.0
 */

/* ============================================
   CSS VARIABLES ESPECÍFICAS
   ============================================ */
.shop-page {
    --shop-sidebar-width: 300px;
    --shop-header-height: 64px;
    --shop-mobile-nav-height: 56px;
    --shop-card-gap: 20px;
    --shop-transition: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   PAGE LAYOUT
   ============================================ */
.shop-page {
    min-height: 100vh;
    background: white;
    padding-bottom: 5rem;
}

/* Breadcrumb */
.breadcrumb {
    padding: var(--spacing-3) 0;
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.breadcrumb a {
    color: var(--color-gray-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb i {
    font-size: 0.625rem;
    color: var(--color-gray-400);
}

/* ============================================
   HEADER
   ============================================ */
.shop-page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-4);
    padding: var(--spacing-4) 0;
    margin-bottom: var(--spacing-6);
}

.shop-page__title {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-3);
}

.shop-page__title h1 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 0;
    letter-spacing: -0.02em;
}

.shop-page__count {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
    font-weight: 500;
}

.shop-page__filtered {
    color: var(--color-primary);
    font-weight: 600;
}

/* Controls */
.shop-page__controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
}

/* Filter Toggle Button - Pill Style */
.shop-page__filter-toggle {
    display: none;
    align-items: center;
    gap: var(--spacing-2);
    padding: 0.75rem 1.25rem;
    background: var(--color-gray-900);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s var(--shop-transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.shop-page__filter-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.shop-page__filter-toggle:active {
    transform: translateY(0);
}

.shop-page__filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.375rem;
    height: 1.375rem;
    padding: 0 0.5rem;
    background: var(--color-primary);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-left: var(--spacing-1);
}

/* Sort Select - Modern Style */
.shop-page__sort {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
}

.shop-page__sort label {
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    font-weight: 500;
    white-space: nowrap;
}

.shop-page__sort select {
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-gray-800);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 9l4-4 4 4m0 6l-4 4-4-4'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    transition: all var(--transition-fast);
}

.shop-page__sort select:hover {
    border-color: var(--color-gray-300);
}

.shop-page__sort select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 10%, transparent);
}

/* ============================================
   CONTENT LAYOUT
   ============================================ */
.shop-page__content {
    display: grid;
    grid-template-columns: var(--shop-sidebar-width) 1fr;
    gap: var(--spacing-8);
    align-items: start;
}

/* ============================================
   SIDEBAR FILTERS - Card Style
   ============================================ */
.shop-page__sidebar {
    position: sticky;
    top: calc(var(--shop-header-height) + var(--spacing-4));
    max-height: calc(100vh - var(--shop-header-height) - var(--spacing-8));
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-gray-300) transparent;
}

.shop-page__sidebar::-webkit-scrollbar {
    width: 6px;
}

.shop-page__sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.shop-page__sidebar::-webkit-scrollbar-thumb {
    background: var(--color-gray-300);
    border-radius: var(--radius-full);
}

.shop-filters {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.shop-filters__body {
    overflow-x: hidden;
}

.shop-filters__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-5);
    background: linear-gradient(135deg, var(--color-gray-50) 0%, white 100%);
    border-bottom: 1px solid var(--color-gray-100);
}

.shop-filters__header h3 {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 0;
}

.shop-filters__header h3 i {
    color: var(--color-primary);
    font-size: var(--font-size-sm);
}

.shop-filters__close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: var(--color-gray-100);
    border: none;
    border-radius: var(--radius-lg);
    color: var(--color-gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.shop-filters__close:hover {
    background: var(--color-gray-200);
    color: var(--color-gray-800);
}

/* Active Filters Banner */
.shop-filters__active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-3) var(--spacing-5);
    background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 8%, transparent) 0%, color-mix(in srgb, var(--color-primary) 4%, transparent) 100%);
    border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.shop-filters__clear {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity var(--transition-fast);
}

.shop-filters__clear:hover {
    opacity: 0.8;
}

/* Filter Sections */
.shop-filters__section {
    border-bottom: 1px solid var(--color-gray-100);
}

.shop-filters__section:last-child {
    border-bottom: none;
}

.shop-filters__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--spacing-4) var(--spacing-5);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background var(--transition-fast);
}

.shop-filters__section-header:hover {
    background: var(--color-gray-50);
}

.shop-filters__section-header h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-gray-800);
    margin: 0;
}

.shop-filters__section-header i {
    font-size: 0.625rem;
    color: var(--color-gray-400);
    transition: transform 0.2s var(--shop-transition);
}

.shop-filters__section-content {
    padding: 0 var(--spacing-5) var(--spacing-4);
}

/* Filter List */
.shop-filters__list {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.shop-filters__list--scrollable {
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: var(--spacing-2);
    scrollbar-width: thin;
    scrollbar-color: var(--color-gray-300) transparent;
}

.shop-filters__list--scrollable::-webkit-scrollbar {
    width: 4px;
}

.shop-filters__list--scrollable::-webkit-scrollbar-track {
    background: transparent;
}

.shop-filters__list--scrollable::-webkit-scrollbar-thumb {
    background: var(--color-gray-300);
    border-radius: var(--radius-full);
}

/* Modern Checkbox Style */
.shop-filters__checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--color-gray-700);
    padding: 0.5rem 0.75rem;
    margin: 0 -0.75rem;
    border-radius: var(--radius-lg);
    transition: background var(--transition-fast);
}

.shop-filters__checkbox:hover {
    background: var(--color-gray-50);
}

.shop-filters__checkbox input {
    display: none;
}

.shop-filters__checkmark {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    background: white;
    border: 2px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    flex-shrink: 0;
    transition: all 0.2s var(--shop-transition);
}

.shop-filters__checkbox input:checked + .shop-filters__checkmark {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.shop-filters__checkbox input:checked + .shop-filters__checkmark::after {
    content: '';
    position: absolute;
    width: 0.375rem;
    height: 0.625rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translateY(-1px);
}

.shop-filters__checkbox:hover .shop-filters__checkmark {
    border-color: var(--color-primary);
}

.shop-filters__label {
    flex: 1;
    line-height: 1.4;
    font-weight: 500;
}

.shop-filters__count {
    font-size: var(--font-size-xs);
    color: var(--color-gray-400);
    font-weight: 500;
    background: var(--color-gray-100);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
}

.shop-filters__checkbox--single {
    padding: var(--spacing-4) var(--spacing-5);
    margin: 0;
    border-radius: 0;
}

/* Price Filter - Modern Inputs */
.shop-filters__price {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.shop-filters__price-inputs {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.shop-filters__price-field {
    display: flex;
    align-items: center;
    flex: 1;
    background: var(--color-gray-50);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.shop-filters__price-field:hover {
    background: var(--color-gray-100);
}

.shop-filters__price-field:focus-within {
    background: white;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.shop-filters__price-currency {
    padding: 0.625rem 0 0.625rem 0.875rem;
    color: var(--color-gray-500);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.shop-filters__price-input {
    flex: 1;
    width: 100%;
    padding: 0.625rem 0.875rem 0.625rem 0.25rem;
    border: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-gray-800);
    background: transparent;
}

.shop-filters__price-input:focus {
    outline: none;
}

.shop-filters__price-input::placeholder {
    color: var(--color-gray-400);
}

.shop-filters__price-separator {
    color: var(--color-gray-400);
    font-weight: 500;
}

.shop-filters__price-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--shop-transition);
}

.shop-filters__price-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--color-primary) 30%, transparent);
}

.shop-filters__price-btn:active {
    transform: translateY(0);
}

.shop-filters__price-range {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-xs);
    color: var(--color-gray-400);
    font-weight: 500;
    margin-top: 1rem;
}

/* Mobile Overlay */
.shop-filters__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: calc(var(--z-modal) - 1);
    opacity: 0;
    transition: opacity 0.3s var(--shop-transition);
    pointer-events: none;
}

.shop-filters__overlay--active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.shop-page__main {
    min-width: 0;
    position: relative;
}

/* Active Filters Tags - Pill Style */
.shop-page__active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-5);
    padding: var(--spacing-4);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.shop-page__filter-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-gray-100) 100%);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-gray-700);
    transition: all var(--transition-fast);
}

.shop-page__filter-tag:hover {
    background: var(--color-gray-200);
}

.shop-page__filter-tag a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    background: var(--color-gray-300);
    border-radius: var(--radius-full);
    color: var(--color-gray-600);
    font-size: 0.625rem;
    transition: all var(--transition-fast);
}

.shop-page__filter-tag a:hover {
    background: var(--color-error);
    color: white;
}

/* ============================================
   PRODUCTS GRID - Responsive & Modern
   ============================================ */
.shop-page__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--shop-card-gap);
}

/* List View */
.shop-page__grid--list {
    grid-template-columns: 1fr;
    gap: var(--spacing-4);
}

.shop-page__grid--list .product-card {
    display: flex !important;
    flex-direction: row !important;
    gap: 0;
    border-radius: var(--radius-2xl);
    overflow: visible !important;
    padding: 0 !important;
}

.shop-page__grid--list .product-card__image {
    aspect-ratio: 1 !important;
    border-radius: var(--radius-xl);
    min-width: 180px;
    height: 180px;
    margin-right: 1rem;
    flex-shrink: 0;
    min-height: 180px;
}

.shop-page__grid--list .product-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-6) var(--spacing-6) var(--spacing-6) 0;
    min-width: 0;
    overflow: hidden;
    flex: 1;
}

/* Loading State */
.shop-page__main {
    transition: opacity 0.3s var(--shop-transition);
}

.shop-page__main[style*="opacity: 0.5"] {
    pointer-events: none;
}

/* Loading Overlay */
.shop-page__loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-2xl);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--shop-transition);
}

.shop-page__main.is-loading .shop-page__loading-overlay {
    opacity: 1;
    visibility: visible;
}

.shop-page__spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid var(--color-gray-200);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   EMPTY STATE
   ============================================ */
.shop-page__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-16);
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.shop-page__empty-icon {
    width: 6rem;
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-gray-50) 100%);
    border-radius: 50%;
    margin-bottom: var(--spacing-6);
}

.shop-page__empty-icon i {
    font-size: 2.5rem;
    color: var(--color-gray-400);
}

.shop-page__empty h2,
.shop-page__empty h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 0 0 var(--spacing-2);
}

.shop-page__empty h3 {
    font-size: 1.125rem;
}

.shop-page__empty p {
    font-size: var(--font-size-base);
    color: var(--color-gray-500);
    margin: 0 0 var(--spacing-6);
    max-width: 300px;
}

.shop-page__empty > p {
    margin: 0 0 1.25rem;
}

.shop-page__empty .btn {
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.shop-page__suggestions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-200);
    text-align: left;
    width: 100%;
    max-width: 500px;
}

.shop-page__suggestions h4 {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.shop-page__suggestions ul {
    margin: 0;
    padding: 0 0 0 1.25rem;
    list-style: none;
}

.shop-page__suggestions li {
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--color-gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
}

.shop-page__suggestions li:before {
    content: "•";
    position: absolute;
    left: -1rem;
    color: var(--color-primary);
    font-weight: bold;
}

.shop-page__suggestions li:last-child {
    margin-bottom: 0;
}

/* ============================================
   PAGINATION - Modern Style
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    margin-top: var(--spacing-10);
    padding-top: var(--spacing-8);
}

.pagination__pages {
    display: flex;
    align-items: center;
    gap: var(--spacing-1);
}

.pagination__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: 0.75rem 1.25rem;
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-gray-700);
    text-decoration: none;
    transition: all 0.2s var(--shop-transition);
}

.pagination__btn:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-300);
    transform: translateY(-1px);
}

.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 var(--spacing-3);
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-gray-700);
    text-decoration: none;
    transition: all 0.2s var(--shop-transition);
}

.pagination__link:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-300);
    transform: translateY(-1px);
}

.pagination__link--active {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-color: var(--color-primary);
    color: white;
    pointer-events: none;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--color-primary) 25%, transparent);
}

.pagination__ellipsis {
    padding: 0 var(--spacing-2);
    color: var(--color-gray-400);
    font-weight: 500;
}

/* ============================================
   RESPONSIVE - Tablet (1024px)
   ============================================ */
@media (max-width: 1024px) {
    .shop-page__filter-toggle {
        display: flex;
    }
    
    .shop-page__content {
        grid-template-columns: 1fr;
        margin-bottom: 20px;
    }
    
    /* Mobile Sidebar - Slide from bottom (App-like) */
    .shop-page__sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        max-height: 85vh;
        z-index: var(--z-modal);
        transform: translateY(100%);
        transition: transform 0.4s var(--shop-transition);
        border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    .shop-page__sidebar--open {
        transform: translateY(0);
    }
    
    .shop-filters {
        height: 100%;
        max-height: 85vh;
        border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .shop-filters__header {
        flex-shrink: 0;
        z-index: 10;
        border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
        padding: var(--spacing-4) var(--spacing-5);
    }
    
    /* Drag Handle */
    .shop-filters__header::before {
        content: '';
        position: absolute;
        top: 0.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 2.5rem;
        height: 0.25rem;
        background: var(--color-gray-300);
        border-radius: var(--radius-full);
    }
    
    .shop-filters__close {
        display: flex;
    }
    
    .shop-filters__body {
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        min-height: 0;
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--spacing-4));
    }
    
    .shop-filters form {
        display: contents;
    }
    
    .shop-page__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-4);
    }
}

/* ============================================
   RESPONSIVE - Mobile (768px)
   ============================================ */
@media (max-width: 768px) {
    .shop-page__header {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-3);
        padding: var(--spacing-3) 0;
    }
    
    .shop-page__title {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-1);
    }
    
    .shop-page__title h1 {
        font-size: var(--font-size-xl);
    }
    
    .shop-page__controls {
        width: 100%;
        justify-content: space-between;
        gap: var(--spacing-2);
        flex-wrap: nowrap;
        overflow: hidden;
    }
    
    .shop-page__sort {
        flex: 1;
        min-width: 0;
    }
    
    .shop-page__sort label {
        display: none;
    }
    
    .shop-page__sort select {
        padding: 0.5rem 2rem 0.5rem 0.75rem;
        width: 100%;
        min-width: 0;
        font-size: 0.8125rem;
    }
    
    /* Grid 2 columns */
    .shop-page__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-3);
    }
    
    /* List View Mobile */
    .shop-page__grid--list {
        grid-template-columns: 1fr;
    }
    
    .shop-page__grid--list .product-card {
        display: flex !important;
        flex-direction: row !important;
        gap: 0;
        overflow: visible !important;
    }
    
    .shop-page__grid--list .product-card__image {
        aspect-ratio: 1 !important;
        min-width: 160px;
        height: 160px;
        min-height: 160px;
        margin-right: 0;
        flex-shrink: 0;
    }
    
    .shop-page__grid--list .product-card__content {
        padding: var(--spacing-3) var(--spacing-3) var(--spacing-3) var(--spacing-4);
    }
    
    /* Pagination Mobile */
    .pagination__btn span {
        display: none;
    }
    
    .pagination__btn {
        padding: 0.625rem;
    }
    
    .pagination__link {
        min-width: 2.5rem;
        height: 2.5rem;
    }
}

/* ============================================
   RESPONSIVE - Small Mobile (480px)
   ============================================ */
@media (max-width: 480px) {
    .breadcrumb {
        padding: var(--spacing-2) 0;
        font-size: var(--font-size-xs);
    }
    
    .shop-page__filter-toggle {
        padding: 0.625rem 1rem;
        font-size: var(--font-size-xs);
    }
    
    .shop-page__filter-badge {
        min-width: 1.125rem;
        height: 1.125rem;
        font-size: 0.625rem;
    }
    
    .shop-page__grid {
        gap: var(--spacing-2);
    }
    
    .shop-page__active-filters {
        padding: var(--spacing-3);
        gap: var(--spacing-1);
    }
    
    .shop-page__filter-tag {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: var(--spacing-1);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .shop-page__sidebar,
    .shop-page__filter-toggle,
    .pagination {
        display: none !important;
    }
    
    .shop-page__content {
        grid-template-columns: 1fr;
    }
    
    .shop-page__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .shop-page,
    .shop-page * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible styles */
.shop-filters__checkbox:focus-visible .shop-filters__checkmark,
.pagination__btn:focus-visible,
.pagination__link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ============================================
   BRAND HERO STYLES
   ============================================ */
/* Hero de marca (detalle de marca en catálogo) */
.brand-hero {
    margin: 0 0 1.5rem;
    border: 1px solid var(--color-gray-200);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.brand-hero__content {
    padding: 1.5rem;
}

.brand-hero__banner {
    position: relative;
    background: var(--color-gray-100);
    min-height: 250px;
}

.brand-hero__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-hero__header {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.brand-hero__logo {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    border: 1px solid var(--color-gray-200);
    background: var(--color-gray-50);
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 10px;
}

.brand-hero__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-hero__logo.brand-card__logo--placeholder {
    background: color-mix(in srgb, var(--color-primary) 12%, #fff);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.brand-hero__title {
    margin: 0;
}

.brand-card__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

.brand-hero__badges {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.brand-hero__badge {
    height: 3rem;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.brand-hero__badge:hover {
    opacity: 1;
}

/* Responsive brand-hero */
@media (max-width: 1024px) {
    .brand-hero {
        grid-template-columns: 1fr;
    }
    
    .brand-hero__banner {
        order: -1;
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .brand-hero__content {
        padding: 1.25rem;
    }
    
    .brand-hero__banner {
        min-height: 180px;
    }
    
    .brand-hero__logo {
        width: 80px;
        height: 80px;
    }
    
    .brand-hero__title {
        font-size: 1.25rem;
    }
    
    .brand-hero__badges {
        gap: 0.75rem;
        margin-top: 1rem;
    }
    
    .brand-hero__badge {
        height: 32px;
    }
}

@media (max-width: 480px) {
    .brand-hero__content {
        padding: 1rem;
    }
    
    .brand-hero__banner {
        min-height: 150px;
    }
    
    .brand-hero__logo {
        width: 64px;
        height: 64px;
    }
    
    .brand-hero__title {
        font-size: 1.1rem;
    }
    
    .brand-hero__header {
        gap: 0.75rem;
    }
    
    .brand-hero__badges {
        gap: 0.5rem;
        margin-top: 0.75rem;
    }
    
    .brand-hero__badge {
        height: 28px;
    }
}

/* ============================================
   CATEGORY HERO STYLES
   ============================================ */
/* Hero de categoría con diseño de 2 columnas */
.category-hero {
    margin: 0 0 1.5rem;
    border: 1px solid var(--color-gray-200);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 0;
    max-height: 360px;
}

.category-hero__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-hero__info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-hero__image {
    width: 96px;
    height: 96px;
    min-width: 96px;
    min-height: 96px;
    max-width: 96px;
    max-height: 96px;
    border-radius: 50%;
    border: 2px solid var(--color-gray-200);
    background: var(--color-gray-50);
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 10px;
    flex-shrink: 0;
}

.category-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.category-hero__image--placeholder {
    background: color-mix(in srgb, var(--color-primary) 12%, #fff);
    color: var(--color-primary);
    font-size: 2rem;
}

.category-hero__image--placeholder i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    line-height: 1;
}

.category-hero__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    line-height: 1.3;
}

.category-hero__description {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-gray-600);
    line-height: 1.6;
}

.category-hero__banner {
    position: relative;
    background: var(--color-gray-100);
    min-height: 250px;
    aspect-ratio: 16/9;
}

.category-hero__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive category-hero */
@media (max-width: 1024px) {
    .category-hero {
        grid-template-columns: 1fr;
    }
    
    .category-hero__banner {
        order: -1;
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .category-hero,
    .hero-skeleton {
        max-height: none;
    }

    .category-hero__content {
        padding: 1.25rem;
        display: grid;
        grid-template-columns: 80px 1fr;
        gap: 1rem;
        align-items: start;
    }
    
    .category-hero__info {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .category-hero__image {
        width: 80px;
        height: 80px;
        min-width: 80px;
        min-height: 80px;
        max-width: 80px;
        max-height: 80px;
    }
    
    .category-hero__description {
        margin: 0;
        padding: 0;
        font-size: 0.8125rem;
    }
    
    .category-hero__banner {
        min-height: 180px;
    }
    
    .category-hero__title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .category-hero__content {
        padding: 1rem;
        display: grid !important;
        grid-template-columns: 64px 1fr;
        grid-template-rows: auto auto;
        column-gap: 0.75rem;
        row-gap: 0.5rem;
    }
    
    .category-hero__image {
        width: 64px;
        height: 64px;
        max-width: 64px;
        max-height: 64px;
        display: grid;
        grid-template-columns: 1fr;
        place-items: center;
        gap: 0;
    }
    
    .category-hero__info {
        gap: 0.5rem;
    }
    
    .category-hero__image {
        width: 64px;
        height: 64px;
        max-width: 64px;
        max-height: 64px;
        min-width: 64px;
        min-height: 64px;
    }
    
    .category-hero__description {
        font-size: 0.625rem;
    }
}

/* ============================================
   HERO SKELETON
   ============================================ */
.hero-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    margin: 0 0 1.5rem;
    border: 1px solid var(--color-gray-200);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 0;
    max-height: 360px;
}

.hero-skeleton__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-skeleton__image {
    width: 96px;
    height: 96px;
    min-width: 96px;
    min-height: 96px;
    border-radius: 50%;
    border: 2px solid var(--color-gray-200);
    flex-shrink: 0;
}

.hero-skeleton__info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-skeleton__banner {
    position: relative;
    background: var(--color-gray-100);
    min-height: 250px;
    aspect-ratio: 16/9;
}

.skeleton-line {
    height: 16px;
    border-radius: 4px;
}

/* Shimmer animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton-shimmer {
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

/* Responsive skeleton */
@media (max-width: 1024px) {
    .hero-skeleton {
        grid-template-columns: 1fr;
    }
    
    .hero-skeleton__banner {
        min-height: 200px;
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero-skeleton__content {
        padding: 1rem;
    }
    
    .hero-skeleton__image {
        width: 64px;
        height: 64px;
        min-width: 64px;
        min-height: 64px;
    }
    
    .hero-skeleton__banner {
        min-height: 150px;
    }
}

/* Hero loading state */
.brand-hero.hero-loading,
.category-hero.hero-loading {
    opacity: 0;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
}

.brand-hero:not(.hero-loading),
.category-hero:not(.hero-loading) {
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

/* ============================================
   SHOP CATALOG - Compact Visual Scale
   ============================================ */
.shop-page {
    --shop-sidebar-width: 252px;
    --shop-card-gap: 0.875rem;
    padding-bottom: 3rem;
}

.breadcrumb {
    padding: 0.55rem 0;
    font-size: 0.75rem;
}

.shop-page > .container {
    max-width: 1240px;
}

.shop-page__header {
    gap: 0.875rem;
    padding: 0.875rem 0;
    margin-bottom: 1rem;
}

.shop-page__title {
    gap: 0.5rem;
}

.shop-page__title h1 {
    font-size: 1.35rem;
    letter-spacing: 0;
}

.shop-page__count {
    font-size: 0.78rem;
}

.shop-page__controls {
    gap: 0.625rem;
}

.shop-page__filter-toggle {
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-size: 0.78rem;
    box-shadow: none;
}

.shop-page__filter-toggle:hover {
    transform: none;
    box-shadow: none;
}

.shop-page__filter-badge {
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.35rem;
    font-size: 0.6rem;
}

.shop-page__sort {
    gap: 0.5rem;
}

.shop-page__sort label {
    font-size: 0.78rem;
}

.shop-page__sort select {
    padding: 0.48rem 1.9rem 0.48rem 0.7rem;
    border-radius: 8px;
    font-size: 0.78rem;
    background-size: 0.85rem;
}

.shop-page__sort select:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.shop-page__content {
    grid-template-columns: var(--shop-sidebar-width) minmax(0, 1fr);
    gap: 1.25rem;
}

.shop-page__sidebar {
    top: calc(var(--shop-header-height) + 0.75rem);
    max-height: calc(100vh - var(--shop-header-height) - 1.5rem);
}

.shop-filters {
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04);
}

.shop-filters__header {
    padding: 0.8rem 0.875rem;
    background: #fff;
}

.shop-filters__header h3 {
    gap: 0.4rem;
    font-size: 0.9rem;
}

.shop-filters__active {
    padding: 0.55rem 0.875rem;
    background: #f8fafc;
    border-bottom-color: var(--color-gray-100);
}

.shop-filters__clear,
.shop-filters__active-label {
    font-size: 0.74rem;
}

.shop-filters__section-header {
    padding: 0.7rem 0.875rem;
}

.shop-filters__section-header h4 {
    font-size: 0.8rem;
}

.shop-filters__section-content {
    padding: 0 0.875rem 0.75rem;
}

.shop-filters__list--scrollable {
    max-height: 180px;
}

.shop-filters__checkbox {
    gap: 0.5rem;
    padding: 0.38rem 0.5rem;
    margin: 0 -0.5rem;
    border-radius: 6px;
    font-size: 0.78rem;
}

.shop-filters__checkbox--single {
    padding: 0.75rem 0.875rem;
}

.shop-filters__checkmark {
    width: 1rem;
    height: 1rem;
    border-width: 1px;
    border-radius: 4px;
}

.shop-filters__checkbox input:checked + .shop-filters__checkmark {
    transform: none;
}

.shop-filters__count {
    padding: 0.1rem 0.35rem;
    font-size: 0.68rem;
}

.shop-filters__price {
    gap: 0.6rem;
}

.shop-filters__price-field {
    border-width: 1px;
    border-color: var(--color-gray-200);
    border-radius: 6px;
}

.shop-filters__price-currency {
    padding: 0.48rem 0 0.48rem 0.65rem;
    font-size: 0.78rem;
}

.shop-filters__price-input {
    padding: 0.48rem 0.6rem 0.48rem 0.2rem;
    font-size: 0.78rem;
}

.shop-filters__price-field:focus-within {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.shop-filters__price-btn {
    padding: 0.55rem 0.75rem;
    background: var(--color-primary);
    border-radius: 6px;
    font-size: 0.78rem;
}

.shop-filters__price-btn:hover {
    transform: none;
    box-shadow: none;
}

.shop-filters__price-range {
    margin-top: 0.55rem;
    font-size: 0.68rem;
}

.shop-page__active-filters {
    gap: 0.4rem;
    margin-bottom: 0.875rem;
    padding: 0.75rem;
    border: 1px solid var(--color-gray-100);
    border-radius: 8px;
    box-shadow: none;
}

.shop-page__filter-tag {
    gap: 0.4rem;
    padding: 0.35rem 0.55rem;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.72rem;
}

.shop-page__filter-tag a {
    width: 1rem;
    height: 1rem;
    font-size: 0.58rem;
}

.shop-page__grid {
    grid-template-columns: repeat(4, minmax(172px, 1fr));
    gap: var(--shop-card-gap);
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.shop-page__grid > [role="listitem"] {
    display: flex;
    height: 100%;
    min-width: 0;
}

.shop-page__grid > [role="listitem"] > .product-card,
.shop-page__grid > [role="listitem"] .product-card {
    width: 100%;
    height: 100%;
}

.shop-page__grid .product-card__content {
    flex: 1 1 auto;
}

.shop-page__grid .product-card__title {
    min-height: calc(0.8125rem * 1.32 * 2);
}

.shop-page__grid .product-card__rating {
    min-height: 0.9rem;
}

.shop-page__grid .product-card__price {
    min-height: 1.35rem;
}

.shop-page__grid--list {
    gap: 0.75rem;
    grid-auto-rows: auto;
}

.shop-page__grid--list .product-card {
    height: auto;
    border-radius: 8px;
    overflow: hidden !important;
}

.shop-page__grid--list .product-card__image {
    min-width: 132px;
    width: 132px;
    height: 132px;
    min-height: 132px;
    margin-right: 0.75rem;
    border-radius: 8px;
}

.shop-page__grid--list .product-card__content {
    padding: 0.75rem 0.875rem 0.75rem 0;
}

.shop-page__loading-overlay {
    border-radius: 8px;
}

.shop-page__spinner {
    width: 2rem;
    height: 2rem;
    border-width: 2px;
}

.shop-page__empty {
    padding: 2.5rem 1.5rem;
    border: 1px solid var(--color-gray-100);
    border-radius: 8px;
    box-shadow: none;
}

.shop-page__empty-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.shop-page__empty-icon i {
    font-size: 1.75rem;
}

.shop-page__empty h2,
.shop-page__empty h3 {
    font-size: 1rem;
}

.shop-page__empty p {
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.shop-page__empty .btn {
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
}

.shop-page__suggestions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.shop-page__suggestions h4,
.shop-page__suggestions li {
    font-size: 0.78rem;
}

.pagination {
    gap: 0.4rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}

.pagination__pages {
    gap: 0.25rem;
}

.pagination__btn,
.pagination__link {
    border-radius: 8px;
    font-size: 0.78rem;
}

.pagination__btn {
    padding: 0.55rem 0.75rem;
}

.pagination__link {
    min-width: 2.1rem;
    height: 2.1rem;
    padding: 0 0.55rem;
}

.pagination__link--active {
    background: var(--color-primary);
    box-shadow: none;
}

.brand-hero,
.category-hero,
.hero-skeleton {
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04);
}

.brand-hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.category-hero,
.hero-skeleton {
    grid-template-columns: 28% 72%;
    max-height: 260px;
}

.brand-hero__content,
.category-hero__content,
.hero-skeleton__content {
    padding: 1rem;
    gap: 0.75rem;
}

.brand-hero__banner,
.category-hero__banner,
.hero-skeleton__banner {
    min-height: 180px;
}

.brand-hero__logo,
.category-hero__image,
.hero-skeleton__image {
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    max-width: 72px;
    max-height: 72px;
    border-radius: 8px;
    padding: 8px;
}

.brand-hero__logo.brand-card__logo--placeholder,
.category-hero__image--placeholder {
    font-size: 1.25rem;
}

.brand-hero__header {
    gap: 0.75rem;
}

.brand-hero__title,
.category-hero__title {
    font-size: 1.1rem;
    line-height: 1.25;
}

.brand-hero__badges {
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.brand-hero__badge {
    height: 2rem;
}

.category-hero__info,
.hero-skeleton__info {
    gap: 0.35rem;
}

.category-hero__description {
    font-size: 0.78rem;
    line-height: 1.45;
}

@media (max-width: 1200px) {
    .shop-page__grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 1024px) {
    .shop-page__content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .shop-page__grid {
        grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
        gap: 0.75rem;
    }

    .shop-page__sidebar,
    .shop-filters,
    .shop-filters__header {
        border-radius: 8px 8px 0 0;
    }
}

@media (max-width: 768px) {
    .shop-page__header {
        gap: 0.75rem;
        padding: 0.75rem 0;
    }

    .shop-page__title h1 {
        font-size: 1.15rem;
    }

    .shop-page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.625rem;
    }

    .shop-page__grid--list .product-card__image {
        min-width: 104px;
        width: 104px;
        height: 104px;
        min-height: 104px;
        margin-right: 0.625rem;
    }

    .shop-page__grid--list .product-card__content {
        padding: 0.625rem 0.7rem 0.625rem 0;
    }

    .brand-hero,
    .category-hero,
    .hero-skeleton {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .brand-hero__banner,
    .category-hero__banner,
    .hero-skeleton__banner {
        min-height: 132px;
    }

    .brand-hero__content,
    .category-hero__content,
    .hero-skeleton__content {
        padding: 0.875rem;
    }

    .brand-hero__logo,
    .category-hero__image,
    .hero-skeleton__image {
        width: 56px;
        height: 56px;
        min-width: 56px;
        min-height: 56px;
        max-width: 56px;
        max-height: 56px;
    }

    .brand-hero__title,
    .category-hero__title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .category-hero,
    .hero-skeleton {
        max-height: none;
    }

    .shop-page__controls {
        gap: 0.45rem;
    }

    .shop-page__filter-toggle,
    .shop-page__sort select {
        font-size: 0.72rem;
    }

    .shop-page__grid {
        gap: 0.5rem;
    }

    .shop-page__active-filters {
        padding: 0.625rem;
    }

    .brand-hero__banner,
    .category-hero__banner,
    .hero-skeleton__banner {
        min-height: 110px;
    }
}

@media (max-width: 1024px) {
    .shop-filters__overlay {
        z-index: 1390;
        background: rgba(15, 23, 42, 0.52);
        backdrop-filter: blur(6px);
    }

    .shop-page__sidebar {
        inset: auto 0 0 0;
        height: auto;
        max-height: min(88dvh, calc(100dvh - 16px));
        z-index: 1400;
        transform: translate3d(0, calc(100% + 24px), 0);
        padding: 0;
    }

    .shop-page__sidebar--open {
        transform: translate3d(0, 0, 0);
    }

    .shop-filters {
        height: auto;
        max-height: min(88dvh, calc(100dvh - 16px));
        background: #ffffff;
        border-radius: 22px 22px 0 0;
        box-shadow: 0 -18px 48px rgba(15, 23, 42, 0.22);
    }

    body.shop-filters-open .header {
        opacity: 0;
        pointer-events: none;
    }
}

@media (max-width: 768px) {
    .shop-page__controls {
        align-items: stretch;
    }

    .shop-page__filter-toggle {
        flex: 0 0 auto;
    }

    .shop-page__sort {
        flex: 1 1 auto;
    }

    .shop-page__grid,
    .shop-page__grid.shop-page__grid--list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .shop-page__grid > [role="listitem"] {
        width: 100%;
    }

    .shop-page__grid > [role="listitem"] > .product-card,
    .shop-page__grid > [role="listitem"] .product-card,
    .shop-page__grid .product-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch;
        width: 100%;
        min-width: 0;
        height: auto;
        border-radius: 14px;
        overflow: hidden !important;
    }

    .shop-page__grid .product-card__image,
    .shop-page__grid.shop-page__grid--list .product-card__image {
        flex: 0 0 118px;
        width: 118px;
        min-width: 118px;
        height: 118px;
        min-height: 118px;
        margin-right: 0;
        border-radius: 0;
    }

    .shop-page__grid .product-card__content,
    .shop-page__grid.shop-page__grid--list .product-card__content {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
        padding: 0.8rem 0.9rem;
    }

    .shop-page__grid .product-card__title {
        min-height: 0;
    }
}


