/* =========================================================
   WILDFLOWER INFINITY DIGITAL
   SHOP PAGE
   ========================================================= */

/* =========================
   SHOP HERO
   ========================= */

.shop-hero {
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            rgba(8, 7, 6, 0.72),
            rgba(8, 7, 6, 0.82)
        ),
        url("../images/shop/shop-hero.png") center center / cover no-repeat;
}

.shop-hero-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 20px;
}

.shop-hero .section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: #c9976b;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 5px;
    margin-bottom: 28px;
}

.shop-hero .section-subtitle::before,
.shop-hero .section-subtitle::after {
    content: "";
    width: 45px;
    height: 1px;
    background: #a97852;
}

.shop-hero h1 {
    max-width: 950px;
    margin: 0 auto 25px;
    color: #ffffff;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(55px, 6vw, 88px);
    font-weight: 500;
    line-height: 0.98;
}

.shop-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: #d8d0c9;
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   EXPLORE SHOP SECTION
   ========================================================= */

.shop-categories {
    position: relative;
    background: #080808;
    padding: 50px 0 110px;
}

.shop-categories .container {
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================
   SECTION HEADING
   ========================= */

.shop-section-heading {
    text-align: center;
    margin-bottom: 55px;
}

.shop-section-heading .section-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    color: #c9976b;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 5px;

    margin-bottom: 20px;
}

.shop-section-heading .section-subtitle::before,
.shop-section-heading .section-subtitle::after {
    content: "";
    width: 48px;
    height: 1px;
    background: #a97852;
}

.shop-section-heading h2 {
    margin: 0 0 12px;

    color: #ffffff;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(42px, 5vw, 62px);
    font-weight: 500;
    line-height: 1.05;
}

.shop-section-heading p {
    margin: 0;

    color: #bdb5ae;
    font-size: 15px;
}


/* =========================================================
   CATEGORY GRID
   ========================================================= */

.shop-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}


/* =========================================================
   CATEGORY CARD
   ========================================================= */

.shop-category-card {
    position: relative;
    min-height: 245px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 28px;

    overflow: hidden;

    border: 1px solid rgba(169, 120, 82, 0.35);

    background-color: #11100f;

    text-decoration: none;

    transition:
        transform 0.35s ease,
        border-color 0.35s ease;
}


/* =========================
   CARD BACKGROUND IMAGE
   ========================= */

.shop-category-card::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            to top,
            rgba(5, 5, 5, 0.94) 5%,
            rgba(5, 5, 5, 0.68) 45%,
            rgba(5, 5, 5, 0.25) 100%
        ),
        var(--card-image);

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    transform: scale(1);
    transition: transform 0.6s ease;
}


/* =========================
   DARK OVERLAY
   ========================= */

.shop-category-card::after {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(10, 8, 7, 0.15);

    transition: background 0.35s ease;
}


/* =========================
   CARD CONTENT
   ========================= */

.shop-category-card > * {
    position: relative;
    z-index: 2;
}

.shop-category-card:hover {
    transform: translateY(-5px);
    border-color: #c9976b;
}

.shop-category-card:hover::before {
    transform: scale(1.06);
}

.shop-category-card:hover::after {
    background: rgba(10, 8, 7, 0.03);
}


/* =========================================================
   CARD ICON
   ========================================================= */

.shop-category-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: auto;

    border: 1px solid rgba(201, 151, 107, 0.65);
    border-radius: 50%;

    color: #d39b6d;

    background: rgba(8, 8, 8, 0.45);

    backdrop-filter: blur(5px);

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.shop-category-icon i {
    font-size: 17px;
}

.shop-category-card:hover .shop-category-icon {
    background: #c9976b;
    color: #111;
}


/* =========================================================
   CARD TEXT
   ========================================================= */

.shop-category-card h3 {
    margin: 0 0 8px;

    color: #ffffff;

    font-family: "Cormorant Garamond", serif;
    font-size: 27px;
    font-weight: 500;

    line-height: 1.1;
}

.shop-category-card p {
    margin: 0;

    color: #d5cec8;

    font-family: "Poppins", sans-serif;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   INDIVIDUAL CATEGORY IMAGES
========================================================= */

.shop-category-card:nth-child(1) {
    --card-image: url("../images/shop/all-products.png");
}

.shop-category-card:nth-child(2) {
    --card-image: url("../images/shop/school.png");
}

.shop-category-card:nth-child(3) {
    --card-image: url("../images/shop/teachers.png");
}

.shop-category-card:nth-child(4) {
    --card-image: url("../images/shop/business.png");
}

.shop-category-card:nth-child(5) {
    --card-image: url("../images/shop/planners.png");
}

.shop-category-card:nth-child(6) {
    --card-image: url("../images/shop/journals.png");
}

.shop-category-card:nth-child(7) {
    --card-image: url("../images/shop/faith.png");
}

.shop-category-card:nth-child(8) {
    --card-image: url("../images/shop/templates.png");
}

.shop-category-card:nth-child(9) {
    --card-image: url("../images/shop/printables.png");
}

.shop-category-card:nth-child(10) {
    --card-image: url("../images/shop/personal.png");
}

.shop-category-card:nth-child(11) {
    --card-image: url("../images/shop/bundles.png");
}

.shop-category-card:nth-child(12) {
    --card-image: url("../images/shop/special.png");
}


/* =========================================================
   SHOP PRODUCTS SECTION
   ========================================================= */

.shop-products {
    background: #0d0c0b;
    padding: 100px 0;
}

.shop-products-heading {
    text-align: center;
    margin-bottom: 50px;
}

.shop-products-heading h2 {
    color: #ffffff;
    font-family: "Cormorant Garamond", serif;
    font-size: 55px;
    font-weight: 500;
    margin-bottom: 10px;
}

.shop-products-heading p {
    color: #bdb5ae;
}


/* =========================================================
   PRODUCT GRID
   ========================================================= */

.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.shop-product-card {
    background: #121110;
    border: 1px solid rgba(169, 120, 82, 0.25);
    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.shop-product-card:hover {
    transform: translateY(-6px);
    border-color: #c9976b;
}

.shop-product-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.shop-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.5s ease;
}

.shop-product-card:hover .shop-product-image img {
    transform: scale(1.05);
}

.shop-product-content {
    padding: 25px;
}

.shop-product-content h3 {
    color: #ffffff;
    font-family: "Cormorant Garamond", serif;
    font-size: 27px;
    font-weight: 500;
    margin-bottom: 8px;
}

.shop-product-content p {
    color: #bdb5ae;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.shop-product-price {
    color: #d09a6b;
    font-size: 17px;
    font-weight: 600;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .shop-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-hero h1 {
        font-size: 65px;
    }

    .shop-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 700px) {

    .shop-hero {
        min-height: 70vh;
    }

    .shop-hero-content {
        padding: 60px 20px;
    }

    .shop-hero h1 {
        font-size: 48px;
    }

    .shop-hero p {
        font-size: 14px;
    }

    .shop-categories {
        padding: 55px 0 75px;
    }

    .shop-section-heading {
        margin-bottom: 35px;
    }

    .shop-section-heading h2 {
        font-size: 44px;
    }

    .shop-category-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .shop-category-card {
        min-height: 230px;
    }

    .shop-product-grid {
        grid-template-columns: 1fr;
    }

    .shop-products-heading h2 {
        font-size: 45px;
    }

    .coming-soon-content h2 {
        font-size: 48px;
    }
}


@media (max-width: 480px) {

    .shop-hero h1 {
        font-size: 40px;
    }

    .shop-hero .section-subtitle {
        gap: 10px;
        letter-spacing: 3px;
    }

    .shop-hero .section-subtitle::before,
    .shop-hero .section-subtitle::after {
        width: 25px;
    }

    .shop-section-heading .section-subtitle {
        gap: 10px;
        letter-spacing: 3px;
    }

    .shop-section-heading .section-subtitle::before,
    .shop-section-heading .section-subtitle::after {
        width: 25px;
    }

    .shop-category-card {
        min-height: 215px;
        padding: 23px;
    }

    .shop-category-card h3 {
        font-size: 25px;
    }
}

/* =========================================================
   CART DRAWER
========================================================= */

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 9998;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 92%;
    height: 100vh;
    background: #0b0b0b;
    border-left: 1px solid rgba(216, 155, 99, 0.35);
    z-index: 9999;

    display: flex;
    flex-direction: column;

    transform: translateX(100%);
    transition: transform 0.35s ease;
}

/* OPEN STATE */

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cart-drawer.active {
    transform: translateX(0);
}

/* HEADER */

.cart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 32px;
    border-bottom: 1px solid rgba(216, 155, 99, 0.2);
}

.cart-header .section-subtitle {
    display: block;
    margin-bottom: 8px;
    color: #d89b63;
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 600;
}

.cart-header h2 {
    margin: 0;
    color: #fff;
    font-size: 34px;
}

/* CLOSE BUTTON */

#cartClose {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(216, 155, 99, 0.35);
    border-radius: 50%;
    background: transparent;
    color: #d89b63;

    cursor: pointer;
    transition: 0.3s ease;
}

#cartClose:hover {
    background: #d89b63;
    color: #0b0b0b;
}

/* CART ITEMS */

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 25px 32px;
}

/* FOOTER */

.cart-footer {
    padding: 28px 32px;
    border-top: 1px solid rgba(216, 155, 99, 0.2);
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;

    color: #fff;
    font-size: 16px;
}

.cart-total strong {
    color: #d89b63;
    font-size: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 15px 20px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    border: 1px solid #d89b63;
    background: #d89b63;
    color: #0b0b0b;

    font-size: 14px;
    font-weight: 600;
    cursor: pointer;

    transition: 0.3s ease;
}

.checkout-btn:hover {
    background: transparent;
    color: #d89b63;
}

.cart-footer small {
    display: block;
    margin-top: 15px;

    text-align: center;
    color: #888;
    font-size: 12px;
    line-height: 1.5;
}

/* MOBILE */

@media (max-width: 600px) {
    .cart-drawer {
        width: 100%;
        max-width: 100%;
    }

    .cart-header,
    .cart-items,
    .cart-footer {
        padding-left: 22px;
        padding-right: 22px;
    }
}
/* =========================================================
   HOW IT WORKS
========================================================= */

.shop-how {
    width: 100%;
    background: #080808;
    padding: 50px 100px;
    box-sizing: border-box;
}

.shop-how .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
}


/* =========================================================
   SECTION LABEL + LINES
========================================================= */

.shop-how .section-subtitle-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 28px;

    margin: 0 auto 25px;
    padding: 0;

    box-sizing: border-box;
}

.shop-how .section-subtitle-wrap .section-subtitle {
    display: inline-block;

    margin: 0;
    padding: 0;

    color: #d89b63;

    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 600;

    letter-spacing: 4px;
    line-height: 1;

    white-space: nowrap;
}

.shop-how .section-line {
    display: block;

    width: 120px;
    height: 1px;

    flex: 0 0 120px;

    background: rgba(216, 155, 99, 0.65);
}


/* =========================================================
   HEADING
========================================================= */

.shop-how .shop-how-title {
    width: 100%;
    max-width: 900px;

    margin: 0 auto 55px;
    padding: 0;

    color: #ffffff;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(44px, 5vw, 62px);
    font-weight: 500;

    line-height: 1.05;

    text-align: center;
}


/* =========================================================
   STEPS GRID
========================================================= */

.shop-how .steps-grid {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;

    margin: 0 auto;
    padding: 0;

    box-sizing: border-box;
}


/* =========================================================
   STEP CARD
========================================================= */

.shop-how .step {
    width: 100%;
    min-height: 300px;

    padding: 38px 32px;

    box-sizing: border-box;

    background: #0b0b0b;

    border: 1px solid rgba(201, 145, 91, 0.35);

    text-align: left;
}


/* =========================================================
   NUMBER
========================================================= */

.shop-how .step > span {
    display: block;

    margin: 0 0 24px;

    color: #d89b63;

    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 500;

    letter-spacing: 2px;
}


/* =========================================================
   ICON
========================================================= */

.shop-how .step i {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 0 28px;

    border: 1px solid rgba(216, 155, 99, 0.45);
    border-radius: 50%;

    color: #d89b63;

    font-size: 16px;
}


/* =========================================================
   STEP TITLE
========================================================= */

.shop-how .step h3 {
    margin: 0 0 12px;

    color: #ffffff;

    font-family: "Cormorant Garamond", serif;
    font-size: 29px;
    font-weight: 500;

    line-height: 1.1;
}


/* =========================================================
   STEP TEXT
========================================================= */

.shop-how .step p {
    margin: 0;

    color: #bdb5ae;

    font-family: "Poppins", sans-serif;
    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .shop-how .steps-grid {
        grid-template-columns: 1fr;
        max-width: 650px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .shop-how {
        padding: 75px 0 90px;
    }

    .shop-how .container {
        padding: 0 20px;
    }

    .shop-how .section-subtitle-wrap {
        gap: 14px;
    }

    .shop-how .section-line {
        width: 55px;
        flex: 0 0 55px;
    }

    .shop-how .shop-how-title {
        font-size: 42px;
        margin-bottom: 40px;
    }

    .shop-how .step {
        min-height: 270px;
        padding: 30px 25px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .shop-how .section-subtitle-wrap {
        gap: 10px;
    }

    .shop-how .section-line {
        width: 35px;
        flex: 0 0 35px;
    }

    .shop-how .section-subtitle {
        font-size: 10px !important;
        letter-spacing: 3px !important;
    }

    .shop-how .shop-how-title {
        font-size: 38px;
    }

}