/* ============================================================
   Collier — Homepage Card Carousels
   Horizontal scrolling card rows with organic blob imagery.
   Palette: #FFFFFF · #F8F4F5 · #F2E8EA · #915F6D · #B57281 · #CC8899 · #7B4A57
   ============================================================ */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* ——— Section shell ——— */
.home-card-section {
    width: 100%;
    overflow: hidden;
    padding: 56px 0;
}

.home-card-section .lux-section__head {
    display: block;
    text-align: center;
    margin-bottom: clamp(20px, 3vw, 36px);
}

.home-card-section .section-title-maison {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: #915F6D;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: clamp(1.3rem, 2.6vw, 1.7rem);
    font-weight: 500;
}

.home-card-section .section-title-maison::before,
.home-card-section .section-title-maison::after {
    content: '';
    width: 36px;
    height: 1px;
    background: rgba(181, 114, 129, 0.55);
    flex: 0 0 auto;
}

.home-card-section .maison-label {
    color: #B57281;
}

.home-card-section .home-section-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #B57281;
    border-bottom: 1px solid rgba(181, 114, 129, 0.4);
    padding-bottom: 3px;
}

.home-card-section .home-section-link:hover {
    color: #7B4A57;
    border-bottom-color: #7B4A57;
}

/* ——— Carousel wrapper & arrows ——— */
.home-card-carousel {
    position: relative;
}

.home-card-track {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 32px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 12px 48px 32px;
    scroll-padding-left: 48px;
    scroll-padding-right: 48px;
    scrollbar-width: none;
}

.home-card-track::-webkit-scrollbar {
    display: none;
}

.carousel-arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid rgba(181, 114, 129, 0.35);
    color: #915F6D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    z-index: 6;
    box-shadow: 0 10px 24px -10px rgba(123, 74, 87, 0.3);
    transition: background 0.3s ease, color 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}

.carousel-arrow:hover {
    background: #915F6D;
    border-color: #915F6D;
    color: #FFFFFF;
}

.carousel-arrow--prev { left: 4px; }
.carousel-arrow--next { right: 4px; }

.carousel-arrow.is-disabled {
    opacity: 0.3;
    pointer-events: none;
}

.home-card-carousel.no-scroll .carousel-arrow {
    display: none;
}

.home-card-carousel.no-scroll .home-card-track {
    justify-content: center;
}

/* ——— Base card sizing ——— */
.home-product-card,
.home-category-card,
.home-event-card,
.home-review-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 240px;
    text-align: center;
}

/* ——— Product card ——— */
.home-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-product-card__media {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.product-blob-image {
    width: 220px;
    height: 260px;
    object-fit: cover;
    border-radius: 48% 52% 45% 55% / 58% 44% 56% 42%;
    background: #F8F4F5;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
    box-shadow: 0 18px 36px -24px rgba(123, 74, 87, 0.35);
}

.home-product-card a:hover .product-blob-image {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 26px 44px -24px rgba(123, 74, 87, 0.45);
}

.home-card-wish {
    position: absolute;
    top: 0;
    right: 6px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #915F6D;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.3s ease, color 0.3s ease;
}

.home-card-wish:hover {
    transform: scale(1.18);
    color: #B57281;
}

.home-card-wish.active {
    color: #CC8899;
}

.home-card-wish.active .far.fa-heart::before {
    content: '\f004';
    font-weight: 900;
}

.home-card-sale {
    position: absolute;
    left: 2px;
    bottom: 24%;
    background: #915F6D;
    color: #FFFFFF;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    z-index: 2;
    box-shadow: 0 6px 14px -6px rgba(123, 74, 87, 0.5);
}

.home-product-card__name {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
}

.home-product-card__name a {
    font-family: var(--font-heading, Georgia, serif);
    color: #7B4A57;
    transition: color 0.3s ease;
}

.home-product-card__name a:hover {
    color: #B57281;
}

.home-product-card__prices {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: auto;
}

.home-product-card .price-old {
    text-decoration: line-through;
    color: #B57281;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.home-product-card .price-new {
    color: #7B4A57;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* ——— Category card ——— */
.home-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: inherit;
}

.home-category-card__media {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    overflow: visible;
}

.category-blob-image,
.category-blob-placeholder {
    width: 220px;
    height: 280px;
    object-fit: cover;
    border-radius: 50% 50% 8px 8px;
    display: block;
    background: linear-gradient(160deg, #FFFFFF 0%, #F2E8EA 55%, #E7D2D8 100%);
    box-shadow: 0 18px 36px -24px rgba(123, 74, 87, 0.35);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
}

.home-category-card:hover .category-blob-image,
.home-category-card:hover .category-blob-placeholder {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 26px 46px -24px rgba(123, 74, 87, 0.45);
}

.home-category-card__name {
    margin: 0 0 4px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7B4A57;
}

.home-category-card__link {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: #B57281;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.home-category-card:hover .home-category-card__link {
    color: #915F6D;
    letter-spacing: 0.16em;
}

/* ——— Gallery / editorial card ——— */
.home-gallery-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 260px;
    display: block;
    overflow: hidden;
    border-radius: 22px;
}

.home-gallery-card img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    display: block;
    border-radius: 22px;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.home-gallery-card:hover img {
    transform: scale(1.05);
}

/* ——— Instagram card ——— */
.home-insta-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 220px;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    position: relative;
}

.home-insta-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    transition: transform 0.7s ease;
}

.home-insta-card::after {
    content: '\f16d';
    font-family: 'Font Awesome 6 Brands';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #FFFFFF;
    background: rgba(145, 95, 109, 0.45);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 18px;
}

.home-insta-card:hover::after { opacity: 1; }
.home-insta-card:hover img { transform: scale(1.06); }

/* ——— Review card ——— */
.home-review-card {
    width: 320px;
    background: #FFFFFF;
    border: 1px solid rgba(181, 114, 129, 0.18);
    border-radius: 22px;
    padding: 30px 26px;
    box-shadow: 0 16px 36px -24px rgba(123, 74, 87, 0.28);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.home-review-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F2E8EA;
    color: #915F6D;
    font-family: var(--font-heading, Georgia, serif);
    font-size: 1.3rem;
}

.home-review-card .review-stars {
    color: #CC8899;
    font-size: 0.8rem;
    letter-spacing: 3px;
}

.home-review-card__text {
    margin: 0;
    font-family: var(--font-editorial, Georgia, serif);
    font-size: 0.92rem;
    line-height: 1.75;
    color: #7B4A57;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-review-card__name {
    margin: auto 0 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #915F6D;
}

/* ——— Promo banner (standalone) ——— */
.home-promo-section .lux-promo-banner {
    border-radius: 24px;
    min-height: 360px;
}

/* ——— Tablet & mobile ——— */
@media (max-width: 768px) {
    .home-card-section {
        padding: 42px 0;
    }

    /* Beat home-mobile.css row-layout rule: carousel heads stay centered */
    .home-page .home-card-section .lux-section__head,
    .home-card-section .lux-section__head {
        display: block !important;
        text-align: center !important;
    }

    .home-card-section .section-title-maison {
        font-size: clamp(1.05rem, 4.2vw, 1.35rem);
        gap: 12px;
        letter-spacing: 0.12em;
    }

    .home-card-section .section-title-maison::before,
    .home-card-section .section-title-maison::after {
        width: 24px;
    }

    .home-card-track {
        gap: 14px;
        padding: 10px 18px 28px;
        scroll-padding-left: 18px;
        scroll-padding-right: 18px;
    }

    .carousel-arrow {
        display: none;
    }

    /* Smaller cards: ~2.2 cards visible per row on phones */
    .home-product-card,
    .home-category-card,
    .home-event-card {
        width: 44vw;
        max-width: 200px;
        min-width: 150px;
    }

    .product-blob-image {
        width: 100%;
        height: 200px;
    }

    .category-blob-image,
    .category-blob-placeholder {
        width: 100%;
        height: 215px;
    }

    .home-product-card__media {
        margin-bottom: 12px;
    }

    .home-product-card__name {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .home-product-card .price-old {
        font-size: 0.72rem;
    }

    .home-product-card .price-new {
        font-size: 0.85rem;
    }

    .home-card-wish {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
        right: 0;
    }

    .home-card-sale {
        font-size: 0.52rem;
        padding: 4px 11px;
    }

    .home-category-card__media {
        margin-bottom: 12px;
    }

    .home-category-card__name {
        font-size: 0.7rem;
        letter-spacing: 0.14em;
    }

    .home-category-card__link {
        font-size: 0.62rem;
    }

    /* Review cards hold text — slightly wider, next card still peeks */
    .home-review-card {
        width: 62vw;
        max-width: 250px;
        min-width: 210px;
        padding: 22px 18px;
    }

    .home-review-card__text {
        font-size: 0.84rem;
        line-height: 1.65;
    }

    .home-review-card__avatar {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }

    .home-gallery-card {
        width: 44vw;
        max-width: 200px;
    }

    .home-gallery-card img {
        height: 215px;
    }

    .home-insta-card {
        width: 36vw;
        max-width: 160px;
    }

    .home-insta-card img {
        height: 140px;
    }
}

@media (max-width: 420px) {
    .home-product-card,
    .home-category-card,
    .home-event-card {
        width: 45vw;
        min-width: 140px;
    }

    .product-blob-image {
        height: 185px;
    }

    .category-blob-image,
    .category-blob-placeholder {
        height: 200px;
    }

    .home-review-card {
        width: 64vw;
        min-width: 200px;
    }

    .home-gallery-card {
        width: 45vw;
    }

    .home-gallery-card img {
        height: 200px;
    }
}
