/* =========================================================
   Aribellas Fabrics
   Customer Collection Page
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    min-height: 100vh;

    color: #2b2b2b;
    background: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
}


/* =========================================================
   Collection Hero
   ========================================================= */

.collection-hero {
    position: relative;

    width: 100%;
    height: 430px;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}


.collection-hero-bg {
    position: absolute;

    inset: -30px;
    z-index: 1;

    background-position: center;
    background-size: cover;

    transform: scale(1.07);

    animation: collectionHeroMove
        16s ease-in-out infinite alternate;
}


.no-hero-image {
    background:
        linear-gradient(
            135deg,
            #9a849b,
            #5e4660
        );
}


@keyframes collectionHeroMove {

    0% {
        transform:
            scale(1.07)
            translate3d(0, 0, 0);
    }

    50% {
        transform:
            scale(1.12)
            translate3d(12px, -8px, 0);
    }

    100% {
        transform:
            scale(1.09)
            translate3d(-12px, 10px, 0);
    }

}


/* =========================================================
   Hero Overlay
   ========================================================= */

.collection-hero-overlay {
    position: absolute;

    inset: 0;
    z-index: 2;

    background: rgba(0, 0, 0, 0.28);
}


/* =========================================================
   Glass Hero Content
   ========================================================= */

.collection-hero-content {
    position: relative;
    z-index: 3;

    width: calc(100% - 40px);
    max-width: 650px;

    padding: 42px 50px;

    text-align: center;

    background: rgba(255, 255, 255, 0.22);

    border:
        1px solid
        rgba(255, 255, 255, 0.38);

    border-radius: 22px;

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.28);
}


.collection-eyebrow {
    display: block;

    margin-bottom: 13px;

    color: #fff7ef;

    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;

    letter-spacing: 3px;
    text-transform: uppercase;
}


.collection-hero-content h1 {
    margin: 0;

    color: #fffaf4;

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

    letter-spacing: 2px;
    line-height: 1.15;

    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.32),
        0 10px 26px rgba(0, 0, 0, 0.25);
}


.collection-hero-content p {
    max-width: 500px;

    margin:
        17px auto
        0;

    color: rgba(255, 255, 255, 0.92);

    font-family: Arial, sans-serif;
    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   Collection Introduction
   ========================================================= */

.collection-intro {
    width: 100%;

    background: #eef0f2;
}


.collection-intro-inner {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
    padding: 42px 24px;

    display: grid;
    grid-template-columns:
        180px
        minmax(0, 1fr)
        150px;

    align-items: center;
    gap: 30px;
}


/* =========================================================
   Back Button
   ========================================================= */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    width: fit-content;

    color: #675b69;

    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.5px;

    text-decoration: none;

    transition:
        color 0.25s ease,
        gap 0.25s ease;
}


.back-link:hover {
    color: #7b527c;

    gap: 12px;
}


/* =========================================================
   Introduction Text
   ========================================================= */

.collection-intro-text {
    text-align: center;
}


.collection-intro-text > span {
    display: block;

    margin-bottom: 7px;

    color: #927967;

    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;

    letter-spacing: 2.4px;
    text-transform: uppercase;
}


.collection-intro-text h2 {
    margin-bottom: 7px;

    color: #2c2434;

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

    letter-spacing: 0.5px;
}


.collection-intro-text p {
    color: #777078;

    font-family: Arial, sans-serif;
    font-size: 12px;

    line-height: 1.6;
}


/* =========================================================
   Fabric Count
   ========================================================= */

.collection-count {
    text-align: right;
}


.collection-count strong {
    display: block;

    color: #7b527c;

    font-size: 30px;
    font-weight: 400;
}


.collection-count span {
    color: #837a84;

    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}


/* =========================================================
   Main Collection Page
   ========================================================= */

.collection-show-page {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
    padding: 55px 24px 75px;
}


/* =========================================================
   Fabric Grid
   ========================================================= */

.fabric-grid {
    width: 100%;

    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================================
   Fabric Card
   ========================================================= */

.fabric-card {
    min-width: 0;

    overflow: hidden;

    background: #ffffff;

    border:
        1px solid
        rgba(44, 36, 52, 0.09);

    border-radius: 12px;

    box-shadow:
        0 10px 24px
        rgba(44, 36, 52, 0.09);

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


.fabric-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 35px
        rgba(44, 36, 52, 0.15);
}


/* =========================================================
   Fabric Image
   ========================================================= */

.fabric-image-wrapper {
    position: relative;

    width: 100%;
    height: 300px;

    overflow: hidden;

    background: #f3f0eb;
}


.fabric-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    filter: brightness(0.92);

    transition:
        transform 0.45s ease,
        filter 0.45s ease;
}


.fabric-card:hover .fabric-image {
    transform: scale(1.06);

    filter: brightness(1);
}


/* =========================================================
   Image Overlay
   ========================================================= */

.fabric-image-wrapper::after {
    content: "";

    position: absolute;

    inset: 0;
    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            transparent 35%,
            rgba(0, 0, 0, 0.22)
        );
}


/* =========================================================
   Missing Image
   ========================================================= */

.no-fabric-image {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 10px;

    color: #978b98;
    background:
        linear-gradient(
            135deg,
            #f0ecef,
            #e7e2e8
        );

    font-family: Arial, sans-serif;
}


.no-fabric-image i {
    font-size: 28px;
}


.no-fabric-image span {
    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1px;
    text-transform: uppercase;
}


/* =========================================================
   Glass Fabric Name
   ========================================================= */

.fabric-name-overlay {
    position: absolute;

    left: 50%;
    bottom: 20px;

    z-index: 3;

    width: calc(100% - 34px);

    padding: 14px;

    text-align: center;

    background:
        rgba(255, 255, 255, 0.25);

    border:
        1px solid
        rgba(255, 255, 255, 0.5);

    border-radius: 14px;

    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);

    box-shadow:
        0 10px 25px
        rgba(0, 0, 0, 0.2);

    transform: translateX(-50%);
}


.fabric-name-overlay h2 {
    margin: 0;

    color: #fff8ee;

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

    letter-spacing: 1.4px;
    line-height: 1.25;

    text-transform: uppercase;

    text-shadow:
        0 2px 5px
        rgba(0, 0, 0, 0.45),
        0 7px 15px
        rgba(0, 0, 0, 0.28);
}


/* =========================================================
   Fabric Details
   ========================================================= */

.fabric-card-content {
    padding: 18px 18px 19px;
}


/* =========================================================
   Item + SKU
   ========================================================= */

.fabric-meta {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 15px;

    margin-bottom: 18px;
}


.fabric-meta-item {
    min-width: 0;
}


.fabric-meta-item span {
    display: block;

    margin-bottom: 5px;

    color: #9a929b;

    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;

    letter-spacing: 1.4px;
    text-transform: uppercase;
}


.fabric-meta-item strong {
    display: block;

    overflow: hidden;

    color: #403745;

    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   Fabric Footer
   ========================================================= */

.fabric-card-footer {
    padding-top: 15px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;

    border-top:
        1px solid
        rgba(44, 36, 52, 0.08);
}


.fabric-availability small {
    display: block;

    margin-bottom: 4px;

    color: #9a929b;

    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;

    letter-spacing: 1px;
    text-transform: uppercase;
}


.fabric-availability strong {
    color: #403745;

    font-family: Arial, sans-serif;
    font-size: 11px;
}


/* =========================================================
   Stock Badge
   ========================================================= */

.stock-badge {
    flex-shrink: 0;

    padding: 7px 9px;

    display: inline-flex;
    align-items: center;
    gap: 5px;

    border-radius: 999px;

    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
}


.stock-badge.in-stock {
    color: #477257;
    background: #edf7f0;
}


.stock-badge.out-of-stock {
    color: #a15159;
    background: #fff0f1;
}


/* =========================================================
   Empty Fabrics
   ========================================================= */

.empty-fabrics {
    width: 100%;
    min-height: 330px;

    padding: 45px 24px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    background: #f5f3f5;

    border-radius: 14px;
}


.empty-fabrics-icon {
    width: 72px;
    height: 72px;

    margin-bottom: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #7b527c;

    background:
        rgba(123, 82, 124, 0.1);

    border-radius: 50%;

    font-size: 25px;
}


.empty-fabrics h2 {
    margin-bottom: 9px;

    color: #2c2434;

    font-size: 27px;
    font-weight: 400;
}


.empty-fabrics p {
    max-width: 440px;

    margin-bottom: 20px;

    color: #817982;

    font-family: Arial, sans-serif;
    font-size: 12px;

    line-height: 1.7;
}


.empty-fabrics a {
    min-height: 43px;
    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    color: #ffffff;
    background: #7b527c;

    border-radius: 999px;

    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;

    text-decoration: none;
}


/* =========================================================
   Continue Shopping
   ========================================================= */

.continue-shopping {
    width: 100%;

    padding: 65px 24px;

    background: #eef0f2;

    text-align: center;
}


.continue-shopping-inner {
    width: 100%;
    max-width: 700px;

    margin: 0 auto;
}


.continue-shopping-inner > span {
    display: block;

    margin-bottom: 10px;

    color: #937966;

    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;

    letter-spacing: 2.5px;
    text-transform: uppercase;
}


.continue-shopping h2 {
    margin-bottom: 10px;

    color: #2c2434;

    font-size: 30px;
    font-weight: 400;
}


.continue-shopping p {
    margin-bottom: 22px;

    color: #7b747c;

    font-family: Arial, sans-serif;
    font-size: 13px;

    line-height: 1.7;
}


.continue-shopping a {
    min-height: 46px;
    padding: 0 21px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    color: #ffffff;
    background: #7b527c;

    border-radius: 999px;

    box-shadow:
        0 8px 20px
        rgba(123, 82, 124, 0.2);

    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        gap 0.25s ease;
}


.continue-shopping a:hover {
    gap: 12px;

    background: #69446a;

    transform: translateY(-2px);
}


/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    width: 100%;

    padding: 34px 20px 28px;

    text-align: center;

    background: #ffffff;

    border-top:
        1px solid
        rgba(44, 36, 52, 0.12);
}


.footer-nav {
    margin-bottom: 14px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 10px;

    font-family: Arial, sans-serif;
    font-size: 12px;

    letter-spacing: 0.4px;
    text-transform: uppercase;
}


.footer-nav a {
    color: #1f1f1f;

    text-decoration: none;

    transition: color 0.3s ease;
}


.footer-nav a:hover {
    color: #7b527c;
}


.footer-nav span {
    color: #777777;
}


.footer-copy {
    margin: 0 0 6px;

    color: #9a9a9a;

    font-family: Arial, sans-serif;
    font-size: 14px;

    letter-spacing: 0.3px;
    text-transform: uppercase;
}


.footer-credit {
    margin: 0;

    color: #7d7d7d;

    font-family: Arial, sans-serif;
    font-size: 11px;

    letter-spacing: 0.4px;
    text-transform: uppercase;
}


/* =========================================================
   Desktop / Tablet
   ========================================================= */

@media (max-width: 1050px) {

    .fabric-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }


    .collection-intro-inner {
        grid-template-columns:
            150px minmax(0, 1fr) 110px;
    }

}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 800px) {

    .fabric-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .collection-intro-inner {
        grid-template-columns: 1fr;

        text-align: center;
    }


    .back-link {
        margin: 0 auto;
    }


    .collection-count {
        text-align: center;
    }

}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 650px) {

    .collection-hero {
        height: 390px;
    }


    .collection-hero-content {
        width: calc(100% - 40px);

        padding: 34px 22px;

        border-radius: 18px;
    }


    .collection-hero-content h1 {
        font-size: 33px;
    }


    .collection-hero-content p {
        font-size: 12px;
    }


    .collection-intro-inner {
        padding: 34px 22px;
    }


    .collection-show-page {
        padding:
            35px 22px
            55px;
    }


    .fabric-grid {
        grid-template-columns: 1fr;
    }


    .fabric-image-wrapper {
        height: 390px;
    }


    .fabric-name-overlay h2 {
        font-size: 20px;
    }


    .continue-shopping {
        padding: 52px 22px;
    }


    .continue-shopping h2 {
        font-size: 27px;
    }


    .site-footer {
        padding: 28px 18px 24px;
    }


    .footer-copy {
        font-size: 12px;
    }


    .footer-credit {
        font-size: 10px;
    }

}


/* =========================================================
   Small Mobile
   ========================================================= */

@media (max-width: 420px) {

    .collection-hero {
        height: 360px;
    }


    .collection-hero-content h1 {
        font-size: 29px;
    }


    .fabric-image-wrapper {
        height: 330px;
    }


    .fabric-card-content {
        padding: 16px;
    }


    .fabric-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

}