﻿/* ============================================================
   PRODUCTOS.CSS  —  B&W edition
   Matches exact HTML class names from productos.html
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

:root {
    --ink: #111111;
    --white: #ffffff;
    --card-bg: #f2f2f2; /* grey pill inside card */
    --page-bg: #fafafa;
    --border: #e5e5e5;
    --muted: #888888;
    --radius-card: 22px;
    --radius-btn: 40px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ══════════════════════════════════════════════
   WRAPPER
══════════════════════════════════════════════ */
.products-wrapper {
    width: 100%;
    background: var(--page-bg);
    font-family: Montserrat, sans-serif;
    color: var(--ink);
}

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.products-hero {
    position: relative;
    background: linear-gradient(135deg, #1c1c1c 0%, #0a0a0a 100%);
    overflow: hidden;
    padding: 0;
    min-height: 620px;
    display: flex;
    align-items: center;
}

    /* Subtle diagonal lines overlay */
    .products-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: repeating-linear-gradient( -45deg, transparent, transparent 80px, rgba(255,255,255,0.015) 80px, rgba(255,255,255,0.015) 81px );
        pointer-events: none;
    }

/* Decorative shapes — soft glows */
.products-hero_shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.products-hero_shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

    .products-hero_shape.is-1 {
        width: 700px;
        height: 700px;
        top: -350px;
        right: -200px;
        background: rgba(200, 180, 160, 0.06);
    }

    .products-hero_shape.is-2 {
        width: 400px;
        height: 400px;
        bottom: -150px;
        left: 30%;
        background: rgba(160, 150, 140, 0.04);
    }

    .products-hero_shape.is-3 {
        display: none;
    }

    .products-hero_shape.is-4 {
        display: none;
    }

.products-hero_container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
    position: relative;
    z-index: 2;
}

.products-hero_content {
    padding: 100px 0 140px;
    text-align: left;
}

/* Label above title */
.products-hero_label {
    display: block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 32px;
}

.products-hero_title {
    font-size: clamp(52px, 9vw, 96px);
    font-weight: 300;
    color: var(--white);
    margin: 0;
    letter-spacing: -2px;
    line-height: 1.05;
    font-family: 'Playfair Display', Georgia, serif;
}

    .products-hero_title em {
        font-style: italic;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.75);
    }

/* Collection info in hero */
.products-hero_collection {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    max-width: 320px;
}

.products-hero_collection-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
}

.products-hero_collection-subtitle {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

/* Wave divider */
.products-hero_wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 3;
    line-height: 0;
}

    .products-hero_wave svg {
        width: 100%;
        display: block;
    }

/* ══════════════════════════════════════════════
   PRODUCTS PAGE
══════════════════════════════════════════════ */
.products-page {
    background: var(--page-bg);
}

.products-page_container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 40px 80px;
}

/* ── Page Header ── */
.products-page_header {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    margin-bottom: 32px !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
}

.products-page_header-left {
}

.products-page_title {
    font-size: 24px !important;
    font-weight: 500 !important;
    font-style: italic !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    color: var(--ink) !important;
    margin: 0 0 6px !important;
    letter-spacing: 0 !important;
}

.products-page_subtitle {
    font-size: 10px !important;
    color: var(--muted) !important;
    margin: 0 !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

.products-page_header-right {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Filter / Sort buttons */
.products-page_filter-btn,
.products-page_sort-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    height: 38px !important;
    padding: 0 16px !important;
    background: transparent !important;
    color: var(--ink) !important;
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    font-family: Montserrat, sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background 200ms ease, border-color 200ms ease !important;
    white-space: nowrap !important;
}

    .products-page_filter-btn:hover,
    .products-page_sort-btn:hover {
        background: var(--card-bg) !important;
        border-color: #ccc !important;
    }

.products-page_filter-icon,
.products-page_sort-icon {
    flex-shrink: 0 !important;
}

/* ── Main layout ── */
.products-page_main {
    position: relative;
}

/* ══════════════════════════════════════════════
   FILTER SIDEBAR (slide-in overlay)
══════════════════════════════════════════════ */
.products-page_sidebar {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    align-items: flex-start;
    justify-content: flex-end;
}

    .products-page_sidebar.is-open {
        display: flex;
    }

.products-page_filters-card {
    width: 380px;
    max-width: 92vw;
    height: 100vh;
    background: var(--white);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideInRight 280ms var(--ease) both;
    box-shadow: -12px 0 40px rgba(0,0,0,0.14);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.products-page_filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--ink);
}

.products-page_filters-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.products-page_filters-close {
    border: 1.5px solid rgba(255,255,255,0.35) !important;
    background: transparent !important;
    color: var(--white) !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    transition: background 150ms !important;
}

    .products-page_filters-close:hover {
        background: rgba(255,255,255,0.15) !important;
    }

.products-page_active-filters {
    padding: 0;
    min-height: 0;
}

.products-page_filter-groups {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

    .products-page_filter-groups::-webkit-scrollbar {
        width: 3px;
    }

    .products-page_filter-groups::-webkit-scrollbar-thumb {
        background: #e0e0e0;
    }

.products-page_filter-group {
    padding: 4px 24px 12px;
    border-bottom: 1px solid var(--border);
}

    .products-page_filter-group:last-child {
        border-bottom: none;
    }

    /* Selects rendered by iPOS inside filter groups */
    .products-page_filter-group select,
    .products-page_filter-group label {
        display: block !important;
        width: 100% !important;
    }

    .products-page_filter-group label {
        font-size: 10px !important;
        font-weight: 700 !important;
        letter-spacing: 2px !important;
        text-transform: uppercase !important;
        color: var(--muted) !important;
        margin: 14px 0 8px !important;
    }

    .products-page_filter-group select {
        height: 40px !important;
        padding: 0 32px 0 12px !important;
        border: 1.5px solid var(--border) !important;
        border-radius: 8px !important;
        font-family: Montserrat, sans-serif !important;
        font-size: 13px !important;
        color: var(--ink) !important;
        background: var(--white) !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 12px center !important;
        cursor: pointer !important;
    }

        .products-page_filter-group select:focus {
            outline: none !important;
            border-color: var(--ink) !important;
        }

/* Apply button in filter sidebar */
.products-page_apply-btn {
    display: block !important;
    width: calc(100% - 48px) !important;
    margin: 20px 24px !important;
    height: 48px !important;
    background: var(--ink) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: var(--radius-btn) !important;
    font-family: Montserrat, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: background 180ms !important;
}

    .products-page_apply-btn:hover {
        background: #333 !important;
    }

/* ══════════════════════════════════════════════
   SORT DROPDOWN (center modal)
══════════════════════════════════════════════ */
.products-page_sort-dropdown {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
}

    .products-page_sort-dropdown.is-open {
        display: flex;
    }

.products-page_sort-card {
    width: 420px;
    max-width: calc(100vw - 32px);
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.2);
    animation: popIn 240ms var(--ease) both;
}

@keyframes popIn {
    from {
        transform: scale(0.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.products-page_sort-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--ink);
}

.products-page_sort-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.products-page_sort-close {
    border: 1.5px solid rgba(255,255,255,0.35) !important;
    background: transparent !important;
    color: var(--white) !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: background 150ms !important;
}

    .products-page_sort-close:hover {
        background: rgba(255,255,255,0.15) !important;
    }

.products-page_sort-options {
    padding: 12px 16px 20px;
}

/* Each sort row */
.products-page_sort-option {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 13px 14px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: background 150ms !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--ink) !important;
    text-decoration: none !important;
    margin-bottom: 2px !important;
}

    .products-page_sort-option:hover {
        background: #f5f5f5 !important;
    }

    .products-page_sort-option.is-selected {
        background: #f0f0f0 !important;
        font-weight: 700 !important;
        border-left: 3px solid var(--ink) !important;
    }

.products-page_sort-option-icon {
    width: 38px !important;
    height: 38px !important;
    background: #f0f0f0 !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    color: var(--ink) !important;
    transition: background 150ms !important;
}

.products-page_sort-option.is-selected .products-page_sort-option-icon {
    background: var(--ink) !important;
    color: var(--white) !important;
}

.products-page_sort-option span {
    flex: 1 !important;
}

.products-page_sort-option-check {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    border: 1.5px solid var(--border) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    color: transparent !important;
    transition: background 150ms, border-color 150ms, color 150ms !important;
}

.products-page_sort-option.is-selected .products-page_sort-option-check {
    background: var(--ink) !important;
    border-color: var(--ink) !important;
    color: var(--white) !important;
}

/* ══════════���═══════════════════════════════════
   PRODUCT GRID
══════════════════════════════════════════════ */
.products-page_grid-wrapper {
    width: 100%;
}

.products-page_grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
}

/* ══════════════════════════════════════════════
   PRODUCT CARD
══════════════════════════════════════════════ */
.products-page_card {
    display: flex !important;
    flex-direction: column !important;
    background: var(--white) !important;
    border-radius: var(--radius-card) !important;
    overflow: hidden !important;
    text-decoration: none !important;
    color: var(--ink) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important;
    transition: box-shadow 280ms ease, transform 280ms ease !important;
    cursor: pointer !important;
    border: 1.5px solid transparent !important;
}

    .products-page_card:hover {
        box-shadow: 0 10px 32px rgba(0,0,0,0.13) !important;
        transform: translateY(-4px) !important;
        border-color: var(--border) !important;
    }

/* Image wrapper — grey rounded bg */
.products-page_card-image-wrapper {
    margin: 0 !important;
    background: var(--card-bg) !important;
    border-radius: var(--radius-card) var(--radius-card) 0 0 !important;
    overflow: hidden !important;
    aspect-ratio: 3 / 4 !important;
    padding: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

.products-page_card-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    transition: transform 400ms ease !important;
    display: block !important;
}

.products-page_card:hover .products-page_card-image {
    transform: scale(1.06) !important;
}

/* Card content */
.products-page_card-content {
    padding: 18px 20px 22px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.products-page_card-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--ink) !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

.products-page_card-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-top: auto !important;
}

/* Price */
.products-page_card-price {
    margin: 0 !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

    .products-page_card-price del {
        font-size: 11px !important;
        color: #bbb !important;
        font-weight: 400 !important;
        text-decoration: line-through !important;
    }

    .products-page_card-price ins {
        font-size: 17px !important;
        font-weight: 700 !important;
        color: var(--ink) !important;
        text-decoration: none !important;
    }

    .products-page_card-price .amount {
        font-size: inherit !important;
    }

/* Add button */
.products-page_add-btn {
    flex-shrink: 0 !important;
    height: 34px !important;
    padding: 0 18px !important;
    background: var(--ink) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: var(--radius-btn) !important;
    font-family: Montserrat, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    opacity: 0 !important;
    transform: scale(0.85) !important;
    transition: opacity 220ms ease, transform 220ms ease, background 150ms !important;
    pointer-events: none !important;
}

.products-page_card:hover .products-page_add-btn {
    opacity: 1 !important;
    transform: scale(1) !important;
    pointer-events: auto !important;
}

.products-page_add-btn:hover {
    background: #333 !important;
}

/* ══════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════ */
.products-page_pagination {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 48px !important;
    flex-wrap: wrap !important;
}

.products-page_pagination-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    height: 44px !important;
    padding: 0 20px !important;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-btn) !important;
    background: var(--white) !important;
    color: var(--ink) !important;
    font-family: Montserrat, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 150ms, border-color 150ms, color 150ms !important;
}

    .products-page_pagination-btn:hover {
        background: var(--ink) !important;
        border-color: var(--ink) !important;
        color: var(--white) !important;
    }

    .products-page_pagination-btn[disabled],
    .products-page_pagination-btn.disabled {
        opacity: 0.3 !important;
        pointer-events: none !important;
    }

.products-page_pagination-numbers {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

.products-page_pagination-num {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 10px !important;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-btn) !important;
    background: var(--white) !important;
    color: var(--ink) !important;
    font-family: Montserrat, sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background 150ms, border-color 150ms, color 150ms !important;
}

    .products-page_pagination-num:hover {
        background: var(--ink) !important;
        border-color: var(--ink) !important;
        color: var(--white) !important;
    }

    .products-page_pagination-num.w--current,
    .products-page_pagination-num.current {
        background: var(--ink) !important;
        border-color: var(--ink) !important;
        color: var(--white) !important;
        font-weight: 700 !important;
    }

/* Load previous button */
#btn_prev_prod {
    display: block !important;
    width: fit-content !important;
    margin: 0 auto 24px !important;
    padding: 12px 32px !important;
    background: transparent !important;
    color: var(--muted) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-btn) !important;
    font-family: Montserrat, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: color 150ms, border-color 150ms !important;
}

    #btn_prev_prod:hover {
        color: var(--ink) !important;
        border-color: var(--ink) !important;
    }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media screen and (max-width: 1200px) {
    .products-page_grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
    }
}

@media screen and (max-width: 1024px) {
    .products-page_container {
        padding: 28px 24px 60px !important;
    }

    .products-hero_container {
        padding: 0 24px !important;
    }

    .products-hero_title {
        font-size: 60px !important;
    }

    .products-hero {
        min-height: 540px !important;
    }

    .products-hero_content {
        padding: 80px 0 120px !important;
    }

    .products-hero_container {
        padding: 0 40px !important;
    }

    .products-hero_collection {
        margin-top: 36px !important;
        padding-top: 24px !important;
    }

    .products-hero_collection-title {
        font-size: 20px !important;
    }
}

@media screen and (max-width: 767px) {
    .products-hero_title {
        font-size: 44px !important;
    }

    .products-hero {
        min-height: 500px !important;
    }

    .products-hero_content {
        padding: 60px 0 100px !important;
    }

    .products-hero_container {
        padding: 0 24px !important;
    }

    .products-hero_label {
        font-size: 9px !important;
        letter-spacing: 3px !important;
        margin-bottom: 24px !important;
        gap: 10px !important;
    }

        .products-hero_label::before,
        .products-hero_label::after {
            width: 30px !important;
        }

    .products-hero_collection {
        margin-top: 32px !important;
        padding-top: 20px !important;
        max-width: 100% !important;
    }

    .products-hero_collection-title {
        font-size: 18px !important;
    }

    .products-hero_collection-subtitle {
        font-size: 9px !important;
    }



    .products-page_container {
        padding: 20px 16px 60px !important;
    }

    .products-page_grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    .products-page_header {
        margin-bottom: 20px !important;
    }

    .products-page_title {
        font-size: 18px !important;
    }

    .products-page_filters-card {
        width: 100vw !important;
    }

    .products-page_sort-card {
        width: calc(100vw - 32px) !important;
    }
}

@media screen and (max-width: 479px) {
    .products-page_grid {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 16px !important;
    }

    .products-page_card-image-wrapper {
        margin: 10px 10px 0 !important;
    }

    .products-page_card-content {
        padding: 10px 12px 14px !important;
    }

    .products-page_header-right {
        gap: 8px !important;
    }

    .products-page_filter-btn,
    .products-page_sort-btn {
        padding: 0 14px !important;
        font-size: 12px !important;
    }
}

/* ============================================================
   PRODUCTOS.CSS — Enhanced B&W edition v2
   Improvements:
   - Richer hero with animated grain + diagonal rule
   - Card stagger entrance animation (CSS nth-child, no JS opacity risk)
   - Richer card hover: image zoom + bottom info reveal strip
   - Sort option hover icon fill transition
   - Filter sidebar improved group headers
   - Pagination active state glow
   - Micro-transitions on all interactive elements
   - Underline accent on page title
============================================================ */

/* ── Extra tokens ── */
:root {
    --shadow-card: 0 2px 12px rgba(0,0,0,0.07);
    --shadow-hover: 0 16px 40px rgba(0,0,0,0.15);
    --shadow-modal: 0 28px 70px rgba(0,0,0,0.22);
    --transition: all 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ══ HERO improvements ══ */

/* Grain overlay for texture */
.products-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 200px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

/* Diagonal stripe accent */
.products-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: repeating-linear-gradient( -55deg, transparent, transparent 18px, rgba(255,255,255,0.025) 18px, rgba(255,255,255,0.025) 19px );
    pointer-events: none;
    z-index: 1;
}

.products-hero_content {
    position: relative;
    z-index: 2;
}

/* Title with animated underline */
.products-hero_title {
    position: relative;
    display: inline-block;
}

    .products-hero_title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 48px;
        height: 3px;
        background: #fff;
        border-radius: 2px;
    }

/* Large background number for depth */
.products-hero_container::before {
    content: '◆';
    position: absolute;
    right: 40px;
    bottom: 20px;
    font-size: 160px;
    color: rgba(255,255,255,0.04);
    line-height: 1;
    pointer-events: none;
    z-index: 1;
    font-family: Montserrat, sans-serif;
    font-weight: 900;
}

/* ══ PAGE TITLE underline ══ */
.products-page_title {
    position: relative !important;
    display: inline-block !important;
    padding-bottom: 10px !important;
}

    .products-page_title::after {
        content: '' !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 32px !important;
        height: 2px !important;
        background: var(--ink) !important;
        border-radius: 2px !important;
    }

/* ══ HEADER BUTTON polish ══ */
.products-page_filter-btn,
.products-page_sort-btn {
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
    position: relative !important;
    overflow: hidden !important;
}

    /* Ripple fill on click */
    .products-page_filter-btn::before,
    .products-page_sort-btn::before {
        content: '' !important;
        position: absolute !important;
        inset: 0 !important;
        background: var(--ink) !important;
        transform: scaleX(0) !important;
        transform-origin: left !important;
        transition: transform 250ms var(--ease) !important;
        z-index: 0 !important;
        border-radius: inherit !important;
    }

    .products-page_filter-btn:hover::before,
    .products-page_sort-btn:hover::before {
        transform: scaleX(1) !important;
    }

    .products-page_filter-btn > *,
    .products-page_sort-btn > * {
        position: relative !important;
        z-index: 1 !important;
    }

/* ══ CARD stagger entrance ══ */
@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.products-page_card:nth-child(1) {
    animation: cardEnter 480ms ease-out 0ms both;
}

.products-page_card:nth-child(2) {
    animation: cardEnter 480ms ease-out 60ms both;
}

.products-page_card:nth-child(3) {
    animation: cardEnter 480ms ease-out 120ms both;
}

.products-page_card:nth-child(4) {
    animation: cardEnter 480ms ease-out 180ms both;
}

.products-page_card:nth-child(5) {
    animation: cardEnter 480ms ease-out 240ms both;
}

.products-page_card:nth-child(6) {
    animation: cardEnter 480ms ease-out 300ms both;
}

.products-page_card:nth-child(7) {
    animation: cardEnter 480ms ease-out 360ms both;
}

.products-page_card:nth-child(8) {
    animation: cardEnter 480ms ease-out 420ms both;
}

.products-page_card:nth-child(9) {
    animation: cardEnter 480ms ease-out 480ms both;
}

.products-page_card:nth-child(10) {
    animation: cardEnter 480ms ease-out 540ms both;
}

.products-page_card:nth-child(11) {
    animation: cardEnter 480ms ease-out 600ms both;
}

.products-page_card:nth-child(12) {
    animation: cardEnter 480ms ease-out 660ms both;
}

/* ══ CARD hover — bottom reveal strip ══ */
.products-page_card {
    position: relative !important;
}

    /* Dark footer strip that slides up on hover with "Ver producto" */
    .products-page_card::after {
        content: 'Ver producto →' !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: var(--ink) !important;
        color: var(--white) !important;
        text-align: center !important;
        padding: 10px !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        letter-spacing: 2.5px !important;
        text-transform: uppercase !important;
        transform: translateY(100%) !important;
        transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1) !important;
        border-radius: 0 0 var(--radius-card) var(--radius-card) !important;
        font-family: Montserrat, sans-serif !important;
        pointer-events: none !important;
        z-index: 2 !important;
    }

    .products-page_card:hover::after {
        transform: translateY(0) !important;
    }

    /* Lift + stronger shadow on hover */
    .products-page_card:hover {
        box-shadow: var(--shadow-hover) !important;
        transform: translateY(-5px) !important;
    }

        /* Image zooms more */
        .products-page_card:hover .products-page_card-image {
            transform: scale(1.08) !important;
        }

/* ══ SORT option icon animation ══ */
.products-page_sort-option-icon {
    transition: background 200ms ease, color 200ms ease, transform 200ms ease !important;
}

.products-page_sort-option:hover .products-page_sort-option-icon {
    background: var(--ink) !important;
    color: var(--white) !important;
    transform: scale(1.08) !important;
}

/* ══ FILTER group headers (iPOS rendered labels) ══ */
.products-page_filter-group {
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 6px 24px 16px !important;
}

    .products-page_filter-group:last-child {
        border-bottom: none !important;
    }

/* ══ FILTER sidebar scroll indicator ══ */
.products-page_filter-groups {
    mask-image: linear-gradient(to bottom, black calc(100% - 32px), transparent 100%) !important;
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 32px), transparent 100%) !important;
}

/* ══ APPLY button pulse ══ */
@keyframes btnPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(17,17,17,0.3);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(17,17,17,0);
    }
}

.products-page_apply-btn {
    animation: btnPulse 2.5s ease-in-out infinite !important;
}

    .products-page_apply-btn:hover {
        animation: none !important;
    }

/* ══ PAGINATION glow on active ══ */
.products-page_pagination-num.w--current,
.products-page_pagination-num.current {
    box-shadow: 0 4px 14px rgba(17,17,17,0.35) !important;
}

/* ══ SORT card wider on larger screens ══ */
@media screen and (min-width: 600px) {
    .products-page_sort-card {
        width: 460px !important;
    }
}

/* ══ Card badge (discount) ══ */
.products-page_card-badge {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    background: var(--ink) !important;
    color: var(--white) !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    z-index: 5 !important;
    pointer-events: none !important;
}

/* ══ Out-of-stock pill ══ */
.products-page_card-oos {
    position: absolute !important;
    bottom: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(255,255,255,0.9) !important;
    border: 1px solid #ddd !important;
    border-radius: 20px !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: var(--ink) !important;
    padding: 5px 14px !important;
    white-space: nowrap !important;
    z-index: 5 !important;
    pointer-events: none !important;
    backdrop-filter: blur(4px) !important;
}

/* ══ Card image wrapper must be relative for badge positioning ══ */
.products-page_card-image-wrapper {
    position: relative !important;
}
