/* ============================================================
   PRODUCTOS.CSS — MV Moda Femenina
   "Atelier Boutique" — editorial product catalog
   ============================================================ */

/* ── Page base ── */

.page-boutique {
    background: white;
}

/* ── Intro header ── */

/* Max-width content constraints */
.bq-grid { max-width: 1440px; margin-left: auto; margin-right: auto; }

.bq-intro {
    padding: 120px 28px 48px;
    text-align: center;
    background: white;
    border-bottom: 1px solid var(--border-light);
}

.bq-eyebrow {
    font-family: var(--f-italic);
    font-style: italic;
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}

.bq-title {
    font-family: var(--f-display);
    font-size: clamp(48px, 10vw, 96px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -1px;
    color: var(--ink);
    margin-bottom: 16px;
}

.bq-title em {
    font-family: var(--f-italic);
    font-style: italic;
    font-weight: 300;
    color: var(--gold-dark);
}

.bq-sub {
    font-family: var(--f-body);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--warm-gray-2);
}

/* ── Filter bar ── */

.bq-filter-bar {
    position: sticky;
    top: 64px;
    z-index: 40;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 12px;
}

.bq-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.bq-tabs::-webkit-scrollbar { display: none; }

.bq-tab {
    font-family: var(--f-body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--warm-gray);
    background: none;
    border: none;
    cursor: pointer;
    padding: 18px 16px;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s;
}

.bq-tab::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.bq-tab.active {
    color: var(--ink);
    font-weight: 500;
}

.bq-tab.active::after { transform: scaleX(1); }
.bq-tab:hover { color: var(--ink); }

.bq-meta {
    font-family: var(--f-italic);
    font-style: italic;
    font-size: 12px;
    color: var(--warm-gray-2);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Product grid ── */

.bq-grid {
    padding: 4px 4px 80px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

/* ── Product card ── */

.bq-card {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--cream-3);
    text-decoration: none;
    cursor: pointer;
    aspect-ratio: 3/4;
}

/* Featured cards — uniform grid, no spanning on mobile */
.bq-card--featured {
    grid-column: span 1;
    aspect-ratio: 3/4;
}

.bq-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bq-card:hover .bq-card-img { transform: scale(1.04); }

/* Gradient overlay — always present, gets darker on hover */
.bq-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 40%,
        rgba(10, 8, 6, 0.65) 100%
    );
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

.bq-card:hover .bq-card-overlay { opacity: 1; }

/* Card info — always visible */
.bq-card-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 18px;
    color: var(--cream);
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.bq-card-name {
    font-family: var(--f-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: 4px;
}

.bq-card-price {
    font-family: var(--f-display);
    font-size: 15px;
    color: var(--champagne);
    font-feature-settings: 'tnum';
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.bq-card:hover .bq-card-price {
    opacity: 1;
    transform: translateY(0);
}

/* Featured card: larger text */
.bq-card--featured .bq-card-name {
    font-size: 13px;
    letter-spacing: 3px;
}

.bq-card--featured .bq-card-price {
    font-size: 18px;
}

/* Wishlist button */
.bq-card-wish {
    position: absolute;
    top: 12px; right: 12px;
    width: 34px; height: 34px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: var(--warm-gray);
    transition: background 0.2s, color 0.2s;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.2s, color 0.2s;
    z-index: 2;
}

.bq-card:hover .bq-card-wish { opacity: 1; }
.bq-card-wish:hover { background: white; color: var(--bordeaux); }
.bq-card-wish--active svg { fill: var(--bordeaux); stroke: var(--bordeaux); color: var(--bordeaux); }

/* Badge */
.bq-card-badge {
    position: absolute;
    top: 12px; left: 12px;
    font-family: var(--f-body);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 10px;
    z-index: 2;
}

.bq-card-badge--new {
    background: rgba(26,23,20,0.75);
    color: var(--champagne);
    border: 1px solid rgba(212,175,125,0.4);
    backdrop-filter: blur(4px);
}

.bq-card-badge--sale {
    background: rgba(90,26,32,0.85);
    color: white;
    backdrop-filter: blur(4px);
}

/* WhatsApp order button — appears on hover on desktop */
.bq-card-wa {
    position: absolute;
    bottom: 16px; right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--f-body);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--cream);
    background: rgba(26, 23, 20, 0.88);
    border: 1px solid rgba(212, 175, 125, 0.3);
    padding: 9px 14px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s, background 0.2s, border-color 0.2s;
    z-index: 2;
    border-radius: 2px;
}

.bq-card:hover .bq-card-wa {
    opacity: 1;
    transform: translateY(0);
}

.bq-card-wa:hover {
    background: var(--ink);
    border-color: var(--gold);
    color: var(--champagne);
}

/* ── Empty / loading states ── */

.bq-skeleton {
    background: linear-gradient(90deg, var(--cream-3) 25%, var(--cream-4) 50%, var(--cream-3) 75%);
    background-size: 200% 100%;
    animation: bqShimmer 1.5s infinite;
    aspect-ratio: 3/4;
}

.bq-skeleton--featured {
    grid-column: span 2;
    aspect-ratio: 4/3;
}

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

.bq-empty {
    grid-column: span 2;
    text-align: center;
    padding: 80px 20px;
}

.bq-empty-title {
    font-family: var(--f-display);
    font-size: 28px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 12px;
}

.bq-empty-sub {
    font-size: 13px;
    color: var(--warm-gray);
}

/* ── Search overlay ── */

.bq-search-wrap {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(250, 246, 239, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 20px 40px;
    overflow-y: auto;
}

.bq-search-box {
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bq-search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 14px;
    margin-bottom: 32px;
}

.bq-search-field {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.bq-search-icon {
    color: var(--warm-gray);
    flex-shrink: 0;
}

.bq-search-input {
    flex: 1;
    font-family: var(--f-display);
    font-size: clamp(22px, 5vw, 36px);
    font-weight: 400;
    border: none;
    outline: none;
    background: transparent;
    color: var(--ink);
    letter-spacing: 0.5px;
}

.bq-search-input::placeholder {
    color: var(--warm-gray-2);
    font-style: italic;
    font-family: var(--f-italic);
}

.bq-search-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--warm-gray);
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.bq-search-close:hover { color: var(--ink); }

/* Results list */
.bq-search-results { display: flex; flex-direction: column; gap: 0; }

.bq-search-hint {
    font-family: var(--f-italic);
    font-style: italic;
    font-size: 14px;
    color: var(--warm-gray-2);
    text-align: center;
    padding: 40px 0;
}

.bq-search-result {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background 0.2s;
    animation: bqFadeIn 0.25s ease both;
}

.bq-search-result:first-child { border-top: 1px solid var(--border-light); }
.bq-search-result:hover { background: var(--cream-2); padding-left: 12px; border-radius: 4px; }

.bq-search-result-img {
    width: 64px;
    height: 80px;
    object-fit: cover;
    object-position: center top;
    background: var(--cream-3);
    flex-shrink: 0;
}

.bq-search-result-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }

.bq-search-result-name {
    font-family: var(--f-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink);
}

.bq-search-result-cat {
    font-family: var(--f-italic);
    font-style: italic;
    font-size: 12px;
    color: var(--warm-gray);
}

.bq-search-result-price {
    font-family: var(--f-display);
    font-size: 16px;
    color: var(--gold-dark);
    font-feature-settings: 'tnum';
    flex-shrink: 0;
}

.bq-search-no-results {
    text-align: center;
    padding: 48px 0;
}

.bq-search-no-results p:first-child {
    font-family: var(--f-display);
    font-size: 22px;
    color: var(--ink);
    margin-bottom: 8px;
}

.bq-search-no-results p:last-child {
    font-size: 13px;
    color: var(--warm-gray);
}

/* ── Card fade-in animation ── */

.bq-card {
    animation: bqFadeIn 0.5s ease both;
}

@keyframes bqFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Desktop ── */

@media (min-width: 768px) {
    .bq-filter-bar { top: 72px; padding: 0 48px; }
    .bq-tab { padding: 22px 20px; }

    .bq-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 6px 6px 100px;
    }

    .bq-card--featured {
        grid-column: span 1;
        aspect-ratio: 3/4;
    }

    /* First two products side-by-side extra large */
    .bq-card--hero {
        grid-column: span 2;
        aspect-ratio: 16/9;
    }

    .bq-intro { padding: 140px 60px 60px; }

    .bq-card-info { padding: 28px 24px; }
}

@media (min-width: 1100px) {
    .bq-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .bq-card--featured { grid-column: span 1; }
}
