/* ═══════════════════════════════════════════════════════════════
   Lutador Luxury Catalog — glassmorphism, 3D cards, cinematic UI
   ═══════════════════════════════════════════════════════════════ */

.page-shop {
    --lux-wine: #2d0a0a;
    --lux-burgundy: #5c1515;
    --lux-gold: #d4af37;
    --lux-gold-soft: #e8c97a;
    --lux-beige: #f5f0e8;
    --lux-glass: rgba(255, 255, 255, 0.72);
    --lux-glass-border: rgba(255, 255, 255, 0.45);
    --lux-radius: 20px;
    --lux-ease: cubic-bezier(0.22, 1, 0.36, 1);
    background: var(--lux-beige);
    overflow-x: clip;
}

.page-shop .site-main {
    position: relative;
    background: transparent;
}

/* Ambient background */
.lux-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.lux-ambient__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    will-change: transform;
    animation: lux-float 18s var(--lux-ease) infinite;
}

.lux-ambient__orb--1 {
    width: min(480px, 60vw);
    height: min(480px, 60vw);
    top: -10%;
    right: -5%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.35), transparent 70%);
}

.lux-ambient__orb--2 {
    width: min(400px, 50vw);
    height: min(400px, 50vw);
    bottom: 10%;
    left: -8%;
    background: radial-gradient(circle, rgba(92, 21, 21, 0.25), transparent 70%);
    animation-delay: -6s;
}

.lux-ambient__orb--3 {
    width: 280px;
    height: 280px;
    top: 40%;
    left: 35%;
    background: radial-gradient(circle, rgba(45, 10, 10, 0.12), transparent 70%);
    animation-delay: -12s;
}

@keyframes lux-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 24px) scale(1.05); }
}

.catalog-page {
    position: relative;
    z-index: 1;
}

.catalog-page__container {
    max-width: 1440px;
}

/* Glass filter panel */
.catalog-filter-panel,
.catalog-filter-panel--drawer {
    background: var(--lux-glass);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    border: 1px solid var(--lux-glass-border);
    border-radius: var(--lux-radius);
    box-shadow:
        0 24px 64px rgba(45, 10, 10, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.catalog-sidebar {
    z-index: 2;
}

.lux-filters__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(45, 10, 10, 0.08);
}

.lux-filters__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--lux-wine);
    margin: 0;
}

.lux-filters__reset {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--lux-burgundy);
    text-decoration: none;
    transition: color 0.2s;
}

.lux-filters__reset:hover {
    color: var(--lux-gold);
}

.lux-filter-group {
    border-bottom: 1px solid rgba(45, 10, 10, 0.06);
    margin-bottom: 0.25rem;
}

.lux-filter-group__summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 0;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5a4545;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s;
}

.lux-filter-group__summary::-webkit-details-marker {
    display: none;
}

.lux-filter-group__summary::after {
    content: "\f282";
    font-family: bootstrap-icons;
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.35s var(--lux-ease);
}

.lux-filter-group[open] .lux-filter-group__summary::after {
    transform: rotate(180deg);
}

.lux-filter-group__body {
    padding-bottom: 1rem;
    animation: lux-filter-open 0.4s var(--lux-ease);
}

@keyframes lux-filter-open {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.lux-input,
.lux-filters .form-control,
.lux-filters .form-select {
    border-radius: 14px;
    border: 1px solid rgba(45, 10, 10, 0.1);
    background: rgba(255, 255, 255, 0.65);
    min-height: 46px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lux-input:focus {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.lux-filters__input-wrap {
    position: relative;
}

.lux-filters__input-wrap > i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9a8585;
    pointer-events: none;
}

.lux-filters__input-wrap .form-control {
    padding-left: 2.5rem;
}

.lux-size-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.lux-size-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lux-size-chip span {
    display: inline-flex;
    min-width: 40px;
    padding: 0.4rem 0.65rem;
    justify-content: center;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(45, 10, 10, 0.12);
    cursor: pointer;
    transition: all 0.25s var(--lux-ease);
}

.lux-size-chip input:checked + span {
    background: linear-gradient(135deg, var(--lux-burgundy), var(--lux-wine));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(45, 10, 10, 0.2);
}

/* Price slider */
.lux-price-slider {
    position: relative;
    padding: 0.5rem 0 2rem;
}

.lux-price-slider__track {
    position: relative;
    height: 6px;
    background: rgba(45, 10, 10, 0.1);
    border-radius: 999px;
    margin: 1.25rem 0;
}

.lux-price-slider__fill {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, var(--lux-burgundy), var(--lux-gold));
    border-radius: 999px;
    left: 0;
    right: 0;
    transition: left 0.1s, right 0.1s;
}

.lux-price-slider__input {
    position: absolute;
    width: 100%;
    height: 6px;
    top: 1.25rem;
    margin: 0;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.lux-price-slider__input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff, #f0e6d0);
    border: 2px solid var(--lux-gold);
    box-shadow: 0 4px 12px rgba(45, 10, 10, 0.2);
    cursor: pointer;
    pointer-events: auto;
}

.lux-price-slider__labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--lux-wine);
}

.lux-btn-apply {
    position: relative;
    overflow: hidden;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--lux-burgundy), var(--lux-wine));
    color: #fff;
    font-weight: 700;
    box-shadow: 0 12px 32px rgba(45, 10, 10, 0.25);
    transition: transform 0.35s var(--lux-ease), box-shadow 0.35s var(--lux-ease);
}

.lux-btn-apply:hover {
    color: #fff;
    box-shadow: 0 16px 40px rgba(45, 10, 10, 0.32);
}

.lux-filters__status {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    color: #6b5a5a;
}

/* Main header */
.catalog-main__header {
    background: var(--lux-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--lux-glass-border);
    border-radius: var(--lux-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 40px rgba(45, 10, 10, 0.06);
}

.catalog-main__title {
    font-family: var(--font-display);
    color: var(--lux-wine);
}

.catalog-main__count {
    background: linear-gradient(135deg, var(--lux-burgundy), var(--lux-wine));
}

.catalog-view-toggle {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
}

.catalog-view-toggle__btn.active {
    background: linear-gradient(135deg, var(--lux-burgundy), var(--lux-wine));
}

/* Grid — 4 col desktop */
.catalog-grid {
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Luxury product card */
.lux-product-card {
    perspective: 1200px;
    opacity: 1;
    transform: none;
    transition: opacity 0.7s var(--lux-ease), transform 0.7s var(--lux-ease);
}

html.lux-js .lux-product-card[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
}

html.lux-js .lux-product-card.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.lux-product-card__tilt {
    position: relative;
    height: 100%;
    border-radius: var(--lux-radius);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.12s ease-out, box-shadow 0.4s var(--lux-ease);
    box-shadow:
        0 16px 48px rgba(45, 10, 10, 0.08),
        0 4px 12px rgba(45, 10, 10, 0.04);
    will-change: transform;
}

.lux-product-card:hover .lux-product-card__tilt {
    box-shadow:
        0 32px 64px rgba(45, 10, 10, 0.14),
        0 0 0 1px rgba(212, 175, 55, 0.2);
}

.lux-product-card__glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(
        600px circle at var(--glow-x, 50%) var(--glow-y, 50%),
        rgba(212, 175, 55, 0.18),
        transparent 40%
    );
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.35s;
}

.lux-product-card:hover .lux-product-card__glow {
    opacity: 1;
}

.lux-product-card__border-glow {
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--lux-radius) + 1px);
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.5),
        transparent 40%,
        transparent 60%,
        rgba(92, 21, 21, 0.4)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 4;
}

.lux-product-card:hover .lux-product-card__border-glow {
    opacity: 1;
}

.lux-product-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(180deg, #faf6f0 0%, #efe8dc 100%);
}

.lux-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s var(--lux-ease);
    will-change: transform;
}

.lux-product-card:hover .lux-product-card__img {
    transform: scale(1.08);
}

.lux-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: lux-badge-pulse 3s ease-in-out infinite;
}

.lux-badge--new {
    background: linear-gradient(135deg, var(--lux-burgundy), var(--lux-wine));
    color: #fff;
}

.lux-badge--sale {
    background: linear-gradient(135deg, var(--lux-gold-soft), var(--lux-gold));
    color: var(--lux-wine);
}

@keyframes lux-badge-pulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(45, 10, 10, 0.2); }
    50% { box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35); }
}

.lux-product-card__wish {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    color: #6b5a5a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s var(--lux-ease), color 0.2s;
}

.lux-product-card:hover .lux-product-card__wish {
    transform: scale(1.08);
}

.lux-product-card__wish.is-active {
    color: var(--lux-burgundy);
}

.lux-product-card__quick {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    opacity: 0;
    z-index: 5;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--lux-wine);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 8px 24px rgba(45, 10, 10, 0.15);
    transition: opacity 0.35s var(--lux-ease), transform 0.35s var(--lux-ease);
}

.lux-product-card:hover .lux-product-card__quick {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.lux-product-card__body {
    padding: 1.1rem 1.15rem 1.25rem;
    position: relative;
    z-index: 2;
}

.lux-product-card__cat {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--lux-gold);
    display: block;
    margin-bottom: 0.25rem;
}

.lux-product-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.lux-product-card__price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--lux-wine);
}

.lux-product-card__actions {
    margin-top: 0.75rem;
    transform: translateY(8px);
    opacity: 0.92;
    transition: transform 0.4s var(--lux-ease), opacity 0.4s;
}

.lux-product-card:hover .lux-product-card__actions {
    transform: translateY(0);
    opacity: 1;
}

.lux-btn-cart {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--lux-burgundy), var(--lux-wine));
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: box-shadow 0.35s var(--lux-ease);
}

.lux-btn-cart:hover {
    color: #fff !important;
    box-shadow: 0 10px 28px rgba(45, 10, 10, 0.3);
}

.lux-btn-cart__ripple,
.lux-btn-apply__ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    pointer-events: none;
}

/* Skeleton */
.catalog-grid.is-loading .lux-product-card {
    pointer-events: none;
}

.lux-skeleton-grid {
    display: none;
    grid-template-columns: inherit;
    gap: inherit;
}

.catalog-grid.is-loading .lux-skeleton-grid {
    display: grid;
}

.catalog-grid.is-loading .catalog-grid__item {
    display: none;
}

.lux-skeleton-card {
    border-radius: var(--lux-radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
}

.lux-skeleton-card__img {
    aspect-ratio: 4 / 5;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(212, 175, 55, 0.12) 50%,
        rgba(255, 255, 255, 0.3) 100%
    );
    background-size: 200% 100%;
    animation: lux-shimmer 1.4s ease-in-out infinite;
}

.lux-skeleton-card__line {
    height: 12px;
    margin: 1rem;
    border-radius: 8px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(200, 180, 150, 0.2) 50%,
        rgba(255, 255, 255, 0.4) 100%
    );
    background-size: 200% 100%;
    animation: lux-shimmer 1.4s ease-in-out infinite;
}

.lux-skeleton-card__line--short {
    width: 60%;
    margin-top: 0.5rem;
}

@keyframes lux-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Quick view modal */
.lux-quick-modal .modal-content {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    background: var(--lux-glass);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    box-shadow: 0 40px 100px rgba(45, 10, 10, 0.2);
}

.lux-quick-modal .modal-body {
    padding: 0;
}

.lux-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.lux-quick__media {
    background: linear-gradient(145deg, #2d0a0a, #1a0505);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lux-quick__media img {
    max-height: 320px;
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.lux-quick__info {
    padding: 2rem;
}

.lux-quick__cat {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--lux-gold);
}

.lux-quick__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--lux-wine);
    margin: 0.5rem 0;
}

.lux-quick__price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--lux-wine);
}

@media (max-width: 767px) {
    .lux-quick {
        grid-template-columns: 1fr;
    }

    .lux-product-card__tilt {
        transition: transform 0.2s ease, box-shadow 0.3s ease;
    }
}

/* List view */
.catalog-grid[data-view="list"] .lux-product-card__tilt {
    display: grid;
    grid-template-columns: 160px 1fr;
}

.catalog-grid[data-view="list"] .lux-product-card__media {
    aspect-ratio: 1;
    grid-row: 1 / 3;
}

.catalog-grid[data-view="list"] .lux-product-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.catalog-grid[data-view="list"] .lux-product-card__actions {
    transform: none;
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .lux-product-card,
    .lux-ambient__orb,
    .lux-badge {
        animation: none !important;
        transition: none !important;
    }

    .lux-product-card {
        opacity: 1;
        transform: none;
    }

    .lux-product-card__tilt {
        transform: none !important;
    }
}
