/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM CATALOG PAGE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Header Solid */
.header--solid {
    background: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-border-subtle);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CATALOG HERO - ENHANCED
   ═══════════════════════════════════════════════════════════════════════════ */
.catalog-hero {
    position: relative;
    padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-3xl);
    overflow: hidden;
}

.catalog-hero__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.85) 100%),
        url('../assets/images/collection-necklaces.jpg');
    background-size: cover;
    background-position: center 30%;
}

.catalog-hero__content {
    position: relative;
    text-align: center;
}

.catalog-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(201, 169, 98, 0.1);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-full);
}

.catalog-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.catalog-hero__desc {
    color: var(--color-text-secondary);
    font-size: var(--text-lg);
    max-width: 500px;
    margin: 0 auto var(--space-2xl);
}

/* Hero Stats */
.catalog-hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 500;
    color: var(--color-gold);
}

.stat__label {
    font-family: var(--font-accent);
    font-size: 0.95rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat__divider {
    width: 1px;
    height: 40px;
    background: var(--color-border-subtle);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM TOOLBAR
   ═══════════════════════════════════════════════════════════════════════════ */
.catalog-toolbar {
    position: sticky;
    top: var(--header-height);
    z-index: 90;
    background: rgba(var(--color-bg-primary-rgb, 10, 10, 10), 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-subtle);
    padding: var(--space-lg) 0;
}

/* Row 1: Search */
.toolbar-search {
    margin-bottom: var(--space-lg);
}

.search-premium {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-premium__inner {
    position: relative;
    display: flex;
    align-items: center;
}

.search-premium__icon {
    position: absolute;
    left: var(--space-lg);
    width: 22px;
    height: 22px;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: color var(--transition-fast);
}

.search-premium__input {
    width: 100%;
    padding: var(--space-lg) var(--space-3xl) var(--space-lg) 52px;
    background: var(--color-bg-elevated);
    border: 2px solid var(--color-border-subtle);
    border-radius: var(--radius-xl);
    color: var(--color-text-primary);
    font-size: var(--text-base);
    transition: all var(--transition-base);
}

.search-premium__input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.15), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.search-premium__input:focus+.search-premium__icon,
.search-premium:focus-within .search-premium__icon {
    color: var(--color-gold);
}

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

.search-premium__shortcut {
    position: absolute;
    right: 60px;
    display: flex;
    gap: 4px;
    opacity: 0.5;
}

.search-premium__shortcut kbd {
    padding: 4px 8px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-family: inherit;
    color: var(--color-text-muted);
}

.search-premium__clear {
    position: absolute;
    right: var(--space-md);
    width: 32px;
    height: 32px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-fast);
}

.search-premium__clear svg {
    width: 14px;
    height: 14px;
    color: var(--color-text-secondary);
}

.search-premium__input:not(:placeholder-shown)~.search-premium__clear {
    opacity: 1;
    transform: scale(1);
}

.search-premium__clear:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
}

.search-premium__clear:hover svg {
    color: var(--color-bg-primary);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + var(--space-sm));
    left: 0;
    right: 0;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 100;
}

.search-premium:focus-within .search-suggestions,
.search-suggestions.active {
    display: block;
    animation: fadeInUp 0.2s ease;
}

.search-suggestions__header {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: var(--space-sm) var(--space-md);
}

.search-suggestion {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    padding: var(--space-md);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-suggestion:hover {
    background: rgba(201, 169, 98, 0.1);
    color: var(--color-gold);
}

.search-suggestion svg {
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

/* Row 2: Filters */
.toolbar-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.filters-group {
    display: flex;
    gap: var(--space-md);
}

/* Mobile filter toggle - oculto en desktop */
.mobile-filter-toggle {
    display: none;
}

/* Premium Filter */
.filter-premium {
    position: relative;
}

.filter-premium__trigger {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-premium__trigger:hover {
    border-color: var(--color-gold);
}

.filter-premium.active .filter-premium__trigger {
    border-color: var(--color-gold);
    background: rgba(201, 169, 98, 0.1);
}

.filter-premium__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 169, 98, 0.1);
    border-radius: var(--radius-md);
}

.filter-premium__icon svg {
    width: 18px;
    height: 18px;
    color: var(--color-gold);
}

.filter-premium__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.filter-premium__label {
    font-family: var(--font-accent);
    font-size: 0.95rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-premium__value {
    font-size: var(--text-sm);
    color: var(--color-text-primary);
    font-weight: 500;
}

.filter-premium__arrow {
    width: 16px;
    height: 16px;
    color: var(--color-text-muted);
    transition: transform var(--transition-fast);
}

.filter-premium.active .filter-premium__arrow {
    transform: rotate(180deg);
    color: var(--color-gold);
}

/* Filter Dropdown */
.filter-premium__dropdown {
    position: absolute;
    top: calc(100% + var(--space-sm));
    left: 0;
    min-width: 280px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 100;
}

.filter-premium.active .filter-premium__dropdown {
    display: block;
    animation: fadeInUp 0.2s ease;
}

.filter-dropdown__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border-subtle);
}

.filter-dropdown__header span {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-primary);
}

.filter-dropdown__reset {
    background: none;
    border: none;
    color: var(--color-gold);
    font-size: var(--text-xs);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-dropdown__reset:hover {
    text-decoration: underline;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-option:hover {
    background: rgba(201, 169, 98, 0.05);
}

.filter-option input {
    display: none;
}

.filter-option__check {
    width: 22px;
    height: 22px;
    border: 2px solid var(--color-border-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.filter-option__check::after {
    content: '';
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0A0A' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--transition-fast);
}

.filter-option input:checked+.filter-option__check {
    background: var(--color-gold);
    border-color: var(--color-gold);
}

.filter-option input:checked+.filter-option__check::after {
    opacity: 1;
    transform: scale(1);
}

.filter-option__icon {
    font-size: 18px;
}

.filter-option__text {
    flex: 1;
    font-size: var(--text-sm);
    color: var(--color-text-primary);
}

.filter-option__count {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    background: var(--color-bg-secondary);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* Material Swatches */
.filter-option__swatch {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.filter-option__swatch--diamond {
    background: linear-gradient(135deg, #fff 0%, #e8e8e8 50%, #fff 100%);
    position: relative;
}

.filter-option__swatch--diamond::after {
    content: '💎';
    position: absolute;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Price Slider Premium */
.filter-premium__dropdown--price {
    min-width: 320px;
}

.price-slider {
    position: relative;
    height: 40px;
    margin-bottom: var(--space-lg);
}

.price-slider__track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-full);
    transform: translateY(-50%);
}

.price-slider__range {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, var(--color-gold), #e8c547);
    border-radius: var(--radius-full);
}

.price-slider__input {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.price-slider__input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--color-gold);
    border: 4px solid var(--color-bg-elevated);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-fast);
}

.price-slider__input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.price-input {
    flex: 1;
}

.price-input label {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.price-input__field {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
}

.price-input__field span {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.price-input__field input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-size: var(--text-sm);
    outline: none;
}

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

.price-presets {
    display: flex;
    gap: var(--space-sm);
}

.price-preset {
    flex: 1;
    padding: var(--space-sm);
    background: transparent;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.price-preset:hover,
.price-preset.active {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background: rgba(201, 169, 98, 0.1);
}

/* Toolbar Controls */
.toolbar-controls {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.results-indicator {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
}

.results-indicator__count {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-gold);
}

.results-indicator__label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* View Switcher */
.view-switcher {
    display: flex;
    background: var(--color-bg-elevated);
    border-radius: var(--radius-md);
    padding: 4px;
    border: 1px solid var(--color-border-subtle);
}

.view-switcher__btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.view-switcher__btn svg {
    width: 20px;
    height: 20px;
}

.view-switcher__btn:hover {
    color: var(--color-text-primary);
}

.view-switcher__btn.active {
    background: var(--color-gold);
    color: var(--color-bg-primary);
}

/* Sort Premium */
.sort-premium {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
}

.sort-premium__icon {
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
}

.sort-premium__select {
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-size: var(--text-sm);
    cursor: pointer;
    outline: none;
    padding-right: var(--space-md);
}

.sort-premium__select option {
    background: var(--color-bg-elevated);
    color: var(--color-text-primary);
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-subtle);
}

.active-filters:empty {
    display: none;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(201, 169, 98, 0.15);
    border: 1px solid var(--color-gold);
    border-radius: var(--radius-full);
    color: var(--color-gold);
    font-size: var(--text-xs);
}

.filter-chip__remove {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gold);
    border: none;
    border-radius: var(--radius-full);
    color: var(--color-bg-primary);
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CATALOG GRID
   ═══════════════════════════════════════════════════════════════════════════ */
.catalog-main {
    padding: var(--space-3xl) 0;
    min-height: 60vh;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.catalog-grid.view-list {
    grid-template-columns: 1fr;
}

/* Catalog Product Card */
.catalog-card {
    position: relative;
    background: var(--color-bg-elevated);
    border-radius: var(--radius-lg);
    overflow: visible;
    border: 1px solid var(--color-border-subtle);
    transition: all var(--transition-base);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.catalog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--color-gold);
    border-color: var(--color-gold);
}

.catalog-card__image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(135deg, var(--color-bg-secondary), var(--color-bg-primary));
}

.catalog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.catalog-card:hover .catalog-card__image img {
    transform: scale(1.08);
}

.catalog-card__badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    background: var(--color-gold);
    color: var(--color-bg-primary);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-sm);
}

/* wishlist SVG color on hover/active — layout handled by .catalog-card__action */
.catalog-card__wishlist svg {
    width: 16px;
    height: 16px;
    transition: fill 0.2s;
}

.catalog-card__wishlist:hover svg,
.catalog-card__wishlist.active svg {
    fill: #e74c3c;
}

/* ── Card action buttons — right column (always visible) ──────────────────── */
.catalog-card__actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 3;
}

.catalog-card__action {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 8, 4, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 50%;
    color: #c9a84c;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.catalog-card__action:hover {
    background: #c9a84c;
    color: #0a0804;
    border-color: #c9a84c;
    transform: scale(1.1);
}

.catalog-card__wishlist.active {
    background: rgba(231, 76, 60, 0.18);
    border-color: #e74c3c;
    color: #e74c3c;
}

.catalog-card__wishlist.active svg { fill: currentColor; }

.catalog-card__quick-add.added {
    background: #4caf50 !important;
    border-color: #4caf50 !important;
    color: #fff !important;
}

.catalog-card__info {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative; /* Para posicionamiento absoluto del botón de WhatsApp */
}

.catalog-card__buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    margin-top: auto; /* Empuja los botones al fondo de la tarjeta */
}

/* Modificamos el margen del botón original para que lo maneje el contenedor */
.catalog-card__buttons .catalog-card__add-cart {
    margin-top: 0;
    flex: 1;
    height: 40px; /* Altura unificada premium */
}

.catalog-card__whatsapp {
    position: absolute;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 40px;
    height: 40px;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
    flex-shrink: 0;
    z-index: 5;
}

.catalog-card__whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
}

.catalog-card__name--has-whatsapp,
.catalog-card__price--has-whatsapp {
    padding-right: 48px; /* Espacio para que el texto no solape el botón absoluto */
}

.catalog-card__whatsapp svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.catalog-card__category {
    display: block;
    font-family: var(--font-accent);
    font-size: 0.95rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-xs);
}

.catalog-card__name {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
}

.catalog-card__price {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}



/* Pagination */
.catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border-subtle);
}

.pagination-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-full);
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.pagination-btn svg {
    width: 20px;
    height: 20px;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    gap: var(--space-xs);
}

.pagination-page {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-page:hover {
    color: var(--color-text-primary);
}

.pagination-page.active {
    background: var(--color-gold);
    color: var(--color-bg-primary);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ULTRA-PREMIUM PRODUCT MODAL
   ═══════════════════════════════════════════════════════════════════════════ */
.product-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.product-modal.active {
    display: flex;
}

.product-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.product-modal__container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    max-height: 90vh;
    background: var(--color-bg-primary);
    display: flex;
    overflow: hidden;
    animation: modalSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

@media (min-width: 1024px) {
    .product-modal__container {
        height: auto;
        min-height: 700px;
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.product-modal__close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 50;
    color: var(--color-text-primary);
}

.product-modal__close:hover {
    background: var(--color-gold);
    color: var(--color-bg-primary);
    transform: rotate(90deg);
}

.product-modal__content {
    display: flex;
    width: 100%;
    height: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LEFT COLUMN: IMMERSIVE IMAGE
   ═══════════════════════════════════════════════════════════════════════════ */
.product-modal__left {
    position: relative;
    width: 55%;
    background: #0a0a0a;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.immersive-image__container {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.immersive-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.immersive-image__container:hover .immersive-image {
    transform: scale(1.03);
}

/* Zoom Lens */
.image-zoom-lens {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 150px;
    height: 150px;
    background-repeat: no-repeat;
    pointer-events: none;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 20;
    background-color: #fff;
}

/* Floating Gallery */
.floating-gallery {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.gallery-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.immersive-badges {
    position: absolute;
    top: var(--space-xl);
    left: var(--space-xl);
    z-index: 10;
}

.immersive-badge {
    padding: var(--space-xs) var(--space-lg);
    background: var(--color-gold);
    color: var(--color-bg-primary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RIGHT COLUMN: EDITORIAL CONTENT
   ═══════════════════════════════════════════════════════════════════════════ */
.product-modal__right {
    width: 45%;
    overflow-y: auto;
    background: var(--color-bg-primary);
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--color-border-subtle) transparent;
}

.editorial-content {
    padding: 4rem 3rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Editorial Header */
.editorial-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--text-xs);
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-lg);
}

.editorial-separator {
    color: var(--color-border-subtle);
}

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

.editorial-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
    color: var(--color-text-primary);
}

.editorial-price-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border-subtle);
    margin-bottom: var(--space-xl);
}

.editorial-price {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--color-text-primary);
}

.editorial-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.editorial-rating svg {
    width: 14px;
    height: 14px;
    color: var(--color-gold);
    fill: var(--color-gold);
}

.rating-text {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-left: var(--space-sm);
}

/* Editorial Desc */
.editorial-desc {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
    font-weight: 300;
}

/* Highlight Box */
.highlight-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    padding: var(--space-lg);
    background: rgba(201, 169, 98, 0.03);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-sm);
}

.highlight-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.highlight-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.highlight-value {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-primary);
}

.highlight-value--badge {
    color: var(--color-gold);
    font-weight: 600;
}

/* Actions - SIMPLE */
.editorial-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.action-btn {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

/* Simple Primary Button */
.action-btn--primary {
    flex: 1;
    background: var(--color-text-primary);
    color: var(--color-bg-primary);
    border: none;
    border-radius: 2px;
}

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

/* Clean Like Button - NO BOX */
.action-btn--secondary {
    width: auto;
    height: auto;
    padding: var(--space-sm);
    background: transparent;
    border: none;
    color: var(--color-text-muted);
}

.action-btn--secondary:hover {
    color: #e74c3c;
    transform: scale(1.1);
}

.action-btn--secondary svg {
    width: 24px;
    height: 24px;
}

/* Accordions */
.info-accordions {
    border-top: 1px solid var(--color-border-subtle);
}

.accordion-item {
    border-bottom: 1px solid var(--color-border-subtle);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) 0;
    cursor: pointer;
    list-style: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-primary);
    transition: color var(--transition-fast);
}

.accordion-header::-webkit-details-marker {
    display: none;
}

.accordion-header:hover {
    color: var(--color-gold);
}

.accordion-icon {
    width: 14px;
    /* refined */
    height: 14px;
    transition: transform 0.3s ease;
}

details[open] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding-bottom: var(--space-lg);
    font-size: var(--text-sm);
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN - Tablet
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }

    .product-modal__content {
        flex-direction: column;
        overflow-y: auto;
    }

    .product-modal__left {
        width: 100%;
        height: 50vh;
        min-height: 350px;
    }

    .product-modal__right {
        width: 100%;
        height: auto;
        overflow: visible;
    }

    .editorial-content {
        padding: 2rem;
    }

    .editorial-title {
        font-size: 2rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN - Mobile (768px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Ocultar Hero en móvil para más espacio */
    .catalog-hero {
        display: none;
    }

    /* Toolbar más compacta */
    .catalog-toolbar {
        padding: var(--space-md) 0;
        margin-top: var(--header-height);
    }

    .toolbar-search {
        margin-bottom: var(--space-sm);
    }

    .search-premium__input {
        font-size: 16px;
        padding: var(--space-sm) var(--space-md);
        padding-left: 40px;
    }

    .search-premium__shortcut {
        display: none;
    }

    /* Mobile Filter Toggle Button */
    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-sm);
        width: 100%;
        padding: var(--space-sm) var(--space-md);
        background: var(--color-bg-elevated);
        border: 1px solid var(--color-border-subtle);
        border-radius: var(--radius-md);
        color: var(--color-text-primary);
        font-size: var(--text-sm);
        font-weight: 500;
        cursor: pointer;
        transition: all var(--transition-fast);
    }

    .mobile-filter-toggle svg {
        width: 18px;
        height: 18px;
    }

    .mobile-filter-toggle .toggle-arrow {
        width: 14px;
        height: 14px;
        transition: transform var(--transition-fast);
    }

    .mobile-filter-toggle.active .toggle-arrow {
        transform: rotate(180deg);
    }

    .mobile-filter-toggle:active {
        background: var(--color-bg-secondary);
    }

    /* Filtros ocultos por defecto en móvil */
    .filters-group {
        display: none;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
        padding-top: var(--space-sm);
    }

    .filters-group.active {
        display: grid;
    }

    .toolbar-filters {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
    }

    .filter-premium {
        width: 100%;
    }

    .filter-premium__trigger {
        justify-content: center;
        padding: var(--space-sm) var(--space-md);
    }

    .filter-premium__dropdown {
        left: 0;
        right: 0;
        width: 100%;
    }

    .toolbar-controls {
        justify-content: space-between;
        flex-wrap: wrap;
        gap: var(--space-sm);
    }

    /* Grid */
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .catalog-card__info {
        padding: var(--space-sm);
    }

    .catalog-card__name {
        font-size: var(--text-sm);
    }

    .catalog-card__price {
        font-size: var(--text-base);
    }

    /* Modal */
    .product-modal__container {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        margin: 0;
    }

    .product-modal__left {
        height: 40vh;
        min-height: 280px;
    }

    .product-modal__close {
        top: var(--space-sm);
        right: var(--space-sm);
        width: 36px;
        height: 36px;
        background: rgba(0, 0, 0, 0.5);
    }

    .editorial-content {
        padding: var(--space-lg);
    }

    .editorial-title {
        font-size: 1.75rem;
    }

    .editorial-price {
        font-size: 1.5rem;
    }

    .highlight-box {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
        padding: var(--space-md);
    }

    .highlight-label {
        font-size: 9px;
    }

    .highlight-value {
        font-size: var(--text-xs);
    }

    .action-btn {
        height: 48px;
        font-size: 11px;
    }

    .floating-gallery {
        bottom: var(--space-md);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN - Small Mobile (480px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

    /* Hero más compacto */
    .catalog-hero {
        padding: calc(var(--header-height) + var(--space-lg)) 0 var(--space-lg);
    }

    .catalog-hero__badge {
        font-size: 10px;
        padding: var(--space-xs) var(--space-sm);
    }

    .catalog-hero__title {
        font-size: 1.5rem;
    }

    .catalog-hero__stats {
        gap: var(--space-md);
    }

    /* Filtros más compactos */
    .filters-group {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-premium__icon {
        width: 32px;
        height: 32px;
    }

    .filter-premium__text {
        display: none;
    }

    .filter-premium__arrow {
        display: none;
    }

    /* Grid de una columna opcional */
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .catalog-card {
        border-radius: var(--radius-sm);
    }

    .catalog-card__badge {
        font-size: 9px;
        padding: 2px 6px;
    }

    .catalog-card__wishlist {
        width: 28px;
        height: 28px;
    }

    .catalog-card__category {
        font-size: 9px;
    }

    .catalog-card__name {
        font-size: 12px;
    }

    .catalog-card__price {
        font-size: 14px;
    }

    /* Modal fullscreen */
    .product-modal__left {
        height: 35vh;
        min-height: 220px;
    }

    .editorial-content {
        padding: var(--space-md);
    }

    .editorial-meta {
        font-size: 10px;
        gap: var(--space-sm);
    }

    .editorial-title {
        font-size: 1.4rem;
        margin-bottom: var(--space-md);
    }

    .editorial-price-block {
        padding-bottom: var(--space-md);
        margin-bottom: var(--space-md);
    }

    .editorial-price {
        font-size: 1.25rem;
    }

    .editorial-desc {
        font-size: var(--text-sm);
        margin-bottom: var(--space-lg);
    }

    .highlight-box {
        padding: var(--space-sm);
        margin-bottom: var(--space-lg);
    }

    .editorial-actions {
        gap: var(--space-md);
        margin-bottom: var(--space-xl);
    }

    .action-btn {
        height: 44px;
        font-size: 10px;
        letter-spacing: 0.1em;
    }

    .accordion-header {
        font-size: 11px;
        padding: var(--space-md) 0;
    }

    .accordion-content {
        font-size: var(--text-xs);
    }

    /* Pagination */
    .catalog-pagination {
        gap: var(--space-sm);
    }

    .pagination-btn {
        width: 36px;
        height: 36px;
    }

    .pagination-page {
        width: 32px;
        height: 32px;
        font-size: var(--text-xs);
    }
}