/* ================= PAGE overrides ================= */
.page-shell-inner {
    border-radius: 0;
    background: white;
}

/* ================= HERO SLIDER ================= */
.hero-slider {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    background: #f1f1f1;
    margin-top: 3px;
    /* Reduced gap below navbar */
}

/* Visibility toggles for responsive banners */
.mobile-slider {
    display: none;
}

.desktop-slider {
    display: block;
}

@media (max-width: 1024px) {
    .mobile-slider {
        display: block;
        /* Show mobile banners on small screens */
    }

    .desktop-slider {
        display: none;
        /* Hide desktop banners */
    }

    /* Hide slider navigation dots on mobile */
    .mobile-slider .slider-nav {
        display: none;
    }

    /* Override Desktop hero-slider fixed heights for Mobile images */
    .hero-slider.mobile-slider {
        height: auto;
        min-height: auto;
        width: 90%;
        max-width: none;
        position: relative;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        aspect-ratio: 4 / 5;
    }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Slider Controls */
.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* ================= NEW ARRIVALS ================= */
.new-arrivals {
    padding: 30px 4px;
    background: #e1e3e2;
    /* Light gray background like the reference */
    text-align: center;
}

.favorite-section-margin {
    padding-top: 0;
}

.section-title {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.title-brush {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-weight: 500;
    font-style: italic;
    background-color: #8492c3;
    /* Periwinkle custom brush backing */
    color: #111;
    padding: 10px 50px;
    clip-path: polygon(2% 10%, 8% 5%, 15% 12%, 25% 4%, 35% 15%, 45% 6%, 55% 12%, 65% 5%, 75% 14%, 85% 6%, 95% 15%, 98% 8%,
            100% 20%, 97% 35%, 100% 50%, 96% 65%, 100% 80%, 98% 95%,
            92% 88%, 85% 95%, 75% 85%, 65% 96%, 55% 88%, 45% 95%, 35% 85%, 25% 96%, 15% 85%, 8% 95%, 2% 90%, 0% 95%,
            5% 80%, 0% 65%, 4% 50%, 0% 35%, 3% 20%, 0% 5%);
    display: inline-block;
}

.title-text {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #111;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.arrivals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2px;
    /* Tiny gap between images like reference */
}

/* ================= PRODUCT CARD (CLEAN) ================= */
.product-card {
    background: #dbdddc;
    /* Light gray background to match reference */
    display: flex;
    flex-direction: column;
}

.card-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    position: relative;
    background: #dbdddc;
    /* Match outer card */
}

.card-badge {
    position: absolute;
    top: 14px;
    left: 18px;
    /* Moved slightly right */
    background: rgba(255, 255, 255, 0.85);
    /* Slightly more solid so it's readable */
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 8px;
    /* Kept small per request */
    font-weight: 700;
    color: #444;
    /* Dark gray */
    z-index: 5;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    /* Ensures emoji and text align nicely without clipping */
    align-items: center;
    justify-content: center;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Back to cover so there's no fake wide grey margins from 'contain' */
    mix-blend-mode: multiply;
    /* Helps blend product images into the grey background if they aren't fully transparent */
    transition: transform 0.4s ease;
}

.product-card:hover .card-img img {
    transform: scale(1.05);
}

.card-info {
    padding: 16px 16px 20px;
    text-align: left;
}

.card-title {
    font-size: 14px;
    color: #444;
    margin-bottom: 6px;
    font-weight: 500;
}

.card-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.card-price {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.card-original-price {
    font-size: 13px;
    font-weight: 500;
    color: #888;
    text-decoration: line-through;
}

.card-sizes {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.card-size-chip {
    font-size: 9px;
    font-weight: 600;
    padding: 3px 6px;
    border: 1px solid #c0c0c0;
    border-radius: 3px;
    color: #555;
    text-transform: uppercase;
}

/* ================= SHOP BY CATEGORY ================= */
.shop-by-category {
    padding: 30px 4px;
    background: #e1e3e2;
    /* Keep matching the light gray */
    text-align: center;
}

.category-circles-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 220px;
}

.circle-img-wrapper {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    background: #ccc;
    /* fallback */
}

.circle-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Focus more on top half of model */
}

.circle-item:hover .circle-img-wrapper {
    transform: scale(1.03);
}

.circle-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #333;
    text-transform: uppercase;
    text-align: center;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .hero-slider {
        height: 40vh;
        min-height: 250px;
    }

    .new-arrivals {
        padding: 20px 4px;
    }

    .arrivals-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card:nth-child(2n) {
        border-right: none;
    }

    .shop-by-category {
        padding: 20px 4px;
    }

    .category-circles-grid {
        gap: 20px;
    }

    .circle-item {
        width: 140px;
    }

    .circle-img-wrapper {
        width: 140px;
        height: 140px;
    }
}

/* ================= HOME DECOR & UNIFIED COLLECTION GRID ================= */
.home-decor-collections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 60px;
    padding: 0 15px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.hd-collection-card {
    position: relative;
    display: block;
    aspect-ratio: 9/11;
    /* Slightly taller than square, matching the photo */
    text-decoration: none;
    overflow: hidden;
}

.hd-coll-img-wrapper {
    width: 100%;
    height: 100%;
    background-color: #eaeaea;
    /* FOUC fallback */
}

.hd-collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    /* Force cover for grid uniformity */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.hd-coll-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 40%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 30px 20px;
}

.hd-coll-title {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.hd-coll-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    font-size: 11px;
    font-weight: 600;
    padding: 12px 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hd-collection-card:hover img {
    transform: scale(1.05);
}

.hd-collection-card:hover .hd-coll-btn {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 992px) {
    .home-decor-collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .home-decor-collections-grid {
        grid-template-columns: 1fr;
    }

    .hd-collection-card {
        aspect-ratio: 4/5;
    }
}