/* ==========================================================
   SHOP PAGE — iStyle
   Luxury minimalist collections page
   ========================================================== */


/* ==========================================================
   SHARED
   ========================================================== */

.istyle-shop {
    width: 100%;
    background: #fff;
}


/* ==========================================================
   SECTION HEADING
   ========================================================== */

.shop-section-heading {
    text-align: center;
    margin-bottom: 64px;
}

.shop-section-heading .eyebrow {
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 12px;
}

.shop-section-heading h2 {
    font-family: serif;
    font-weight: 400;
    font-size: 42px;
    margin: 0;
    color: var(--burgundy);
    line-height: 1.1;
}


/* ==========================================================
   COLLECTIONS
   ========================================================== */

.shop-collections {
    padding: 120px 60px;
}

.shop-collections__inner {
    max-width: 1400px;
    margin: 0 auto;
}

.shop-collections__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}


/* ==========================================================
   COLLECTION CARD
   ========================================================== */

.shop-collection-card {
    min-width: 0;
    border-radius: 0;
    overflow: hidden;
    background: white;

    box-shadow: none;

    transition:
        box-shadow 0.45s ease,
        transform 0.45s ease;
}

.shop-collection-card:hover {
    box-shadow: none;
    transform: translateY(-3px);
}

.shop-collection-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}


/* ==========================================================
   COLLECTION IMAGE
   ========================================================== */

.shop-collection-card__image-wrap {
    position: relative;
    height: auto;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 0;
}

.shop-collection-card__img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;

    transition:
        transform 0.6s
        cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.shop-collection-card:hover
.shop-collection-card__img {
    transform: scale(1.05);
}


/* ==========================================================
   IMAGE OVERLAY
   ========================================================== */

.shop-collection-card__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.02) 0%,
            rgba(0, 0, 0, 0.18) 100%
        );

    pointer-events: none;

    transition: background 0.4s ease;
}

.shop-collection-card:hover
.shop-collection-card__overlay {
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.04) 0%,
            rgba(0, 0, 0, 0.25) 100%
        );
}


/* ==========================================================
   CARD CONTENT
   ========================================================== */

.shop-collection-card__content {
    padding: 32px 32px 38px;
}

.shop-collection-card__content h3 {
    font-family: serif;
    font-weight: 400;
    font-size: 26px;

    margin: 0 0 10px;

    color: var(--burgundy);
    line-height: 1.2;
}

.shop-collection-card__content p {
    font-size: 14px;
    line-height: 1.75;

    color: var(--text-muted);

    margin: 0 0 26px;

    max-width: 380px;
}


/* ==========================================================
   COLLECTION BUTTON
   ========================================================== */

.shop-collection-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 13px 30px;

    background: var(--burgundy);
    color: var(--ivory);

    border: 1px solid var(--burgundy);
    border-radius: 6px;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.2em;
    text-transform: uppercase;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.shop-collection-card:hover
.shop-collection-card__btn {
    background: var(--ivory);
    color: var(--burgundy);

    transform: translateY(-2px);
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {

    .shop-collections {
        padding: 80px 30px;
    }

    /*
     * IMPORTANT:
     * Keep TWO columns.
     * Do NOT change this to 1fr.
     */

    .shop-collections__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .shop-collection-card__image-wrap {
        height: 400px;
    }

    .shop-section-heading h2 {
        font-size: 32px;
    }

    .shop-section-heading {
        margin-bottom: 48px;
    }

}

/* ==========================================================
   MOBILE
   Two cards side by side
   ========================================================== */

@media (max-width: 767px) {

    .shop-collections {
        padding: 42px 14px 70px;
    }

    .shop-collections__inner {
        width: 100%;
        max-width: 100%;
    }


    /* ------------------------------------------
       TWO COLUMN GRID
       ------------------------------------------ */

    .shop-collections__grid {
        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 28px 12px !important;

        width: 100%;
        margin: 0;
        padding: 0;
    }


    /* ------------------------------------------
       HEADING
       ------------------------------------------ */

    .shop-section-heading {
        margin-bottom: 30px;
    }

    .shop-section-heading .eyebrow {
        font-size: 9px;
        margin-bottom: 9px;
    }

    .shop-section-heading h2 {
        font-size: 30px;
    }


    /* ------------------------------------------
       COLLECTION CARD
       ------------------------------------------ */

    .shop-collection-card {
        width: 100%;
        min-width: 0;

        border-radius: 0;

        background: transparent;

        box-shadow: none;

        overflow: hidden;
    }

    .shop-collection-card:hover {
        transform: none;
        box-shadow: none;
    }


    /* ------------------------------------------
       IMAGE
       ------------------------------------------ */

    .shop-collection-card__image-wrap {
        width: 100%;

        height: auto !important;

        aspect-ratio: 3 / 4;

        border-radius: 0;

        overflow: hidden;
    }

    .shop-collection-card__img {
        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center;

        display: block;
    }

    .shop-collection-card:hover
    .shop-collection-card__img {
        transform: none;
    }


    /* Make overlay more subtle on mobile */

    .shop-collection-card__overlay {
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0) 50%,
                rgba(0, 0, 0, 0.08) 100%
            );
    }


    /* ------------------------------------------
       CONTENT
       ------------------------------------------ */

    .shop-collection-card__content {
        padding: 12px 3px 0;

        text-align: center;
    }

    .shop-collection-card__content h3 {
        margin: 0 0 6px;

        font-family: inherit;

        font-size: 16px;
        font-weight: 400;

        line-height: 1.25;

        color: var(--burgundy);
    }


    /*
     * Hide descriptions on mobile.
     * Keeps the shop clean like a fashion store.
     */

    .shop-collection-card__content p {
        display: none;
    }


    /* ------------------------------------------
       BUTTON
       ------------------------------------------ */

    .shop-collection-card__btn {
        display: inline-block;

        min-height: 0;

        margin-top: 2px;

        padding: 0;

        background: transparent;

        color: var(--burgundy);

        border: 0;
        border-radius: 0;

        font-size: 10px;
        font-weight: 500;

        letter-spacing: 0.12em;

        text-decoration: underline;
        text-underline-offset: 4px;
    }

    .shop-collection-card:hover
    .shop-collection-card__btn {
        background: transparent;
        color: var(--burgundy);

        transform: none;
    }
}


/* ==========================================================
   EXTRA SMALL PHONES
   Still TWO columns
   ========================================================== */

@media (max-width: 390px) {

    .shop-collections {
        padding:
            38px 10px
            60px;
    }

    .shop-collections__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 24px 9px !important;
    }

    .shop-section-heading h2 {
        font-size: 27px;
    }

    .shop-collection-card__content {
        padding:
            10px 2px
            0;
    }

    .shop-collection-card__content h3 {
        font-size: 14px;
    }

    .shop-collection-card__btn {
        font-size: 9px;
        letter-spacing: 0.1em;
    }
}
/* ==========================================================
   COLLECTION IMAGES — FINAL CLEAN VERSION
========================================================== */

.shop-collection-card__image-wrap {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 4 / 5 !important;
    overflow: hidden !important;
    background: #f3ece2 !important;
}

.shop-collection-card__img {
    position: absolute !important;
    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;
    max-width: none !important;

    object-fit: cover !important;
    object-position: center !important;

    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Tops */
.shop-collection-card:nth-child(1) .shop-collection-card__img {
    object-position: center 30% !important;
}

/* Swimming Hijabs */
.shop-collection-card:nth-child(2) .shop-collection-card__img {
    object-position: center 22% !important;
}

/* Linen Pants */
.shop-collection-card:nth-child(3) .shop-collection-card__img {
    object-position: center 30% !important;
}