/* ============================================================
   HOME.CSS — MV Moda Femenina
   All home page sections below the hero
   ============================================================ */

/* ── Shared section helpers ── */

.sec-eyebrow {
    font-family: var(--f-italic);
    font-style: italic;
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 10px;
}

.sec-title {
    font-family: var(--f-display);
    font-size: clamp(22px, 5vw, 36px);
    font-weight: 400;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink);
}

.sec-divider {
    display: flex;
    justify-content: center;
    margin: 14px 0 28px;
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 8px;
}

/* ── Collections ── */

.sec-collections { padding: 0; }

.col-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: var(--max-content);
    margin: 0 auto;
}

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

.col-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.8s ease;
    filter: brightness(0.75);
}

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

.col-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.55) 100%);
}

.col-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px;
    color: var(--cream);
}

.col-sub {
    font-family: var(--f-italic);
    font-style: italic;
    font-size: 12px;
    color: var(--champagne);
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.col-name {
    font-family: var(--f-display);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 12px;
}

.col-cta {
    font-family: var(--f-body);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--champagne);
    border-bottom: 1px solid rgba(212,175,125,0.5);
    padding-bottom: 3px;
    display: inline-block;
    transition: padding-left 0.3s, color 0.3s;
}

.col-card:hover .col-cta { padding-left: 6px; color: white; }

/* ── Brand story ── */

.sec-brand {
    padding: 72px 28px 64px;
    background: var(--cream-2);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

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

.brand-title {
    font-family: var(--f-display);
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--ink);
    line-height: 1.1;
}

.brand-title em {
    font-family: var(--f-italic);
    font-style: italic;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--gold-dark);
}

.brand-rule {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 280px;
}

.brand-rule span:not(.brand-rule-gem) {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold));
}

.brand-rule span:last-child {
    background: linear-gradient(to left, transparent, var(--gold));
}

.brand-rule-gem {
    color: var(--gold);
    font-size: 9px;
    flex-shrink: 0;
}

.brand-body {
    font-size: 14px;
    line-height: 1.9;
    color: var(--warm-gray);
    max-width: 400px;
}

.brand-body strong { color: var(--ink); font-weight: 500; }

.brand-logo-img {
    width: min(160px, 45vw);
    height: auto;
    opacity: 0.7;
    margin: 4px 0;
    filter: sepia(0.2) brightness(0.85);
}

.brand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border: 1px solid var(--gold);
    font-family: var(--f-body);
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold-dark);
    text-decoration: none;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.brand-btn:hover {
    background: var(--gold);
    color: var(--cream);
    border-color: var(--gold);
}

/* ── Featured products ── */

.sec-featured {
    padding: 60px 0;
    background: var(--cream);
    overflow-x: clip;    /* clips visual bleed without blocking touch scroll */
    overflow-y: visible;
}

.sec-featured-head {
    text-align: center;
    margin-bottom: 32px;
    padding: 0 20px;
}

/* ── Carousel wrapper ── */
.prod-carousel-wrap {
    position: relative;
    margin-bottom: 32px;
}

.prod-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 20px 12px;
    cursor: grab;
    touch-action: pan-x;          /* enable horizontal swipe on all touch devices */
}

.prod-grid:active { cursor: grabbing; }
.prod-grid::-webkit-scrollbar { display: none; }

.prod-card {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    flex-shrink: 0;
    width: 58vw;
    max-width: 220px;
    scroll-snap-align: start;
}

.prod-card-img-wrap {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--cream-3);
    margin-bottom: 10px;
}

.prod-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s ease;
}

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

.prod-card-wish {
    position: absolute;
    top: 10px; right: 10px;
    width: 32px; height: 32px;
    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;
    transition: background 0.2s;
    color: var(--warm-gray);
}

.prod-card-wish:hover { background: white; color: var(--bordeaux); }

.prod-card-name {
    font-family: var(--f-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 4px;
    line-height: 1.4;
}

.prod-card-price {
    font-family: var(--f-display);
    font-size: 14px;
    color: var(--warm-gray);
    font-feature-settings: 'tnum';
}

.featured-cta {
    text-align: center;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border: 1px solid var(--ink);
    font-family: var(--f-body);
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    transition: background 0.25s, color 0.25s;
}

.btn-outline:hover { background: var(--ink); color: var(--cream); }

/* ── Trust pillars ── */

.sec-pillars {
    padding: 22px 20px;
    background: var(--cream);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    scrollbar-width: none;
}

.sec-pillars::-webkit-scrollbar { display: none; }

.pillar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 180px;
    padding: 10px 24px;
    border-left: 1px solid var(--border);
}

.pillar:first-child { border-left: none; }

.pillar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pillar-icon svg { width: 28px; height: 28px; stroke: var(--gold); }

.pillar-text { display: flex; flex-direction: column; gap: 2px; }

.pillar-title {
    font-family: var(--f-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink);
    line-height: 1.3;
}

.pillar-sub {
    font-size: 11px;
    color: var(--warm-gray);
    line-height: 1.4;
}

/* ── Skeleton loader ── */

.prod-card-skeleton {
    aspect-ratio: 3/4;
    background: linear-gradient(90deg, var(--cream-3) 25%, var(--cream-4) 50%, var(--cream-3) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 2px;
}

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

/* ── Carousel arrows ── */
.prod-carousel-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    color: var(--ink);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.prod-carousel-arrow:hover { border-color: var(--gold); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.prod-carousel-arrow--prev { left: 4px; }
.prod-carousel-arrow--next { right: 4px; }

/* ── Desktop ── */

@media (min-width: 768px) {
    .col-grid {
        flex-direction: row;
        height: 520px;
    }

    .col-card {
        flex: 1;
        aspect-ratio: auto;
        height: 100%;
    }

    .col-name { font-size: 36px; }

    .sec-brand {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        padding: 100px 60px;
        max-width: 1100px;
        margin: 0 auto;
    }

    .sec-featured { padding: 80px 0; }

    .prod-carousel-wrap { max-width: var(--max-content); margin: 0 auto; }

    .prod-grid {
        padding: 4px 60px 16px;
        gap: 24px;
    }

    .prod-card {
        width: 240px;
        max-width: 280px;
    }

    .prod-carousel-arrow { display: flex; }

    .sec-pillars {
        grid-template-columns: repeat(4, 1fr);
        padding: 60px 60px;
        gap: 40px;
    }
}

/* ── Gold divider ── */

.sec-gold-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 28px;
}

.sec-gold-divider::before,
.sec-gold-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    opacity: 0.6;
}

.sec-gold-divider-gem {
    color: var(--gold);
    font-size: 10px;
    flex-shrink: 0;
}
