/* ============================================================
   HOME-FEATURED.CSS — MV Moda Femenina
   Featured products, pillars, gold divider, responsive
   ============================================================ */

.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 0 12px;
    scroll-padding-left: 16px;
    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:first-child {
    margin-left: 16px;
}
.prod-card:last-child {
    margin-right: 16px;
}

.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';
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.prod-card-price-orig {
    font-size: 11px;
    text-decoration: line-through;
    opacity: 0.6;
}

.prod-card-price-sale {
    color: var(--gold-dark);
}

.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: 0 20px;
    background: var(--cream);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.pillar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 18px 4px;
    border-top: 1px solid var(--border);
}

.pillar:first-child {
    border-top: 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-info::before {
        display: none;
    }

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

    .sec-brand-inner {
        padding: 100px 60px;
    }

        .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 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        flex-direction: unset;
        padding: 40px 60px;
        max-width: 1100px;
        margin: 0 auto;
    }

    .pillar {
        border-top: none;
        border-left: 1px solid var(--border);
    }

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

/* ── Tablet (1024px) ── */

@media (min-width: 1024px) {
        .col-grid {
        height: 600px;
    }
        .col-name {
        font-size: 44px;
    }

    .sec-brand-inner {
        padding: 100px 80px;
    }

    .prod-card {
        width: 270px;
        max-width: 300px;
    }

        .sec-pillars {
        padding: 48px 80px;
    }
}

/* ── Large Desktop (1280px) ── */

@media (min-width: 1280px) {
        .col-grid {
        height: 700px;
    }

    .sec-brand-inner {
        padding: 120px 100px;
    }

    .prod-grid {
        padding: 4px 100px 20px;
        gap: 32px;
    }

    .prod-card {
        width: 300px;
        max-width: 340px;
    }

        .sec-pillars {
        padding: 56px 120px;
    }
}

/* ── 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;
}
