/* =========================
   CART — LUXURY CHECKOUT STYLE
   ========================= */

.shopify-cart {
    max-width: 1100px;
    margin: 60px auto 100px;
    padding: 0 24px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: #4a4540;
    background: #faf9f7;
}

.shopify-cart__wrapper {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

/* =========================
   CART ITEMS
   ========================= */

.shopify-cart__items {
    background: #fff;
    border: 1px solid #e8e5e1;
    border-radius: 18px;
    padding: 10px 32px;
}

.shopify-cart__item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 24px;
    padding: 26px 0;
    border-bottom: 1px solid #f0eeeb;
    align-items: center;
}

.shopify-cart__item:last-child {
    border-bottom: none;
}

/* IMAGE */

.shopify-cart__img {
    width: 90px;
    height: 115px;
    overflow: hidden;
    background: #f5f3f0;
    border-radius: 10px;
    flex-shrink: 0;
}

.shopify-cart__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* INFO */

.shopify-cart__info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.shopify-cart__top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.shopify-cart__name {
    font-size: 22px;
    line-height: 1.1;
    color: #3d3833;
    text-decoration: none;
    transition: opacity .2s ease;
}

.shopify-cart__name:hover {
    opacity: .7;
}

.shopify-cart__remove {
    font-size: 22px;
    text-decoration: none;
    color: #b5aea7;
    transition: color .2s ease;
    line-height: 1;
}

.shopify-cart__remove:hover {
    color: #3d3833;
}

/* BOTTOM */

.shopify-cart__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.shopify-cart__price {
    font-size: 18px;
    color: #3d3833;
}

/* =========================
   QUANTITY
   ========================= */

.woocommerce .quantity {
    display: flex;
    align-items: center;
}

.woocommerce .quantity input {
    width: 65px;
    height: 44px;
    border: 1px solid #e0dcd7;
    background: #faf9f7;
    text-align: center;
    font-size: 16px;
    color: #3d3833;
    font-family: inherit;
}

.woocommerce .quantity input:focus {
    outline: none;
    border-color: #b8b0a6;
    background: #fff;
}

/* =========================
   SUMMARY
   ========================= */

.shopify-cart__summary {
    position: sticky;
    top: 40px;
    background: #fff;
    border: 1px solid #e8e5e1;
    border-radius: 18px;
    padding: 32px;
    height: fit-content;
}

.shopify-cart__summary h2 {
    font-size: 15px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a8279;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e8e5e1;
    font-weight: 500;
}

/* ROWS */

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 16px;
    color: #6b6560;
}

.summary-row.total {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e8e5e1;
    font-size: 22px;
    color: #3d3833;
}

/* =========================
   BUTTON
   ========================= */

.checkout-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 18px;
    margin-top: 28px;
    background: #3d3833;
    color: #faf9f7;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 14px;
    border: none;
    transition: background .3s ease;
}

.checkout-btn:hover {
    background: #2a2622;
}

/* =========================
   EMPTY CART
   ========================= */

.cart-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    text-align: center;
    padding: 40px 20px;
}

.cart-empty p {
    font-size: 42px;
    color: #3d3833;
    letter-spacing: 0.04em;
}

/* =========================
   REMOVE WOOCOMMERCE TABLE
   ========================= */

.woocommerce-cart table.shop_table {
    border: none !important;
}

.woocommerce-cart table.shop_table td {
    border: none !important;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1024px) {

    .shopify-cart__wrapper {
        grid-template-columns: 1fr;
    }

    .shopify-cart__summary {
        position: static;
    }
}

@media (max-width: 768px) {

    .shopify-cart {
        margin: 40px auto 80px;
        padding: 0 16px;
    }

    .shopify-cart__items,
    .shopify-cart__summary {
        padding: 24px;
    }

    .shopify-cart__item {
        grid-template-columns: 75px 1fr;
        gap: 18px;
    }

    .shopify-cart__img {
        width: 75px;
        height: 95px;
    }

    .shopify-cart__name {
        font-size: 18px;
    }

    .shopify-cart__price {
        font-size: 16px;
    }

    .summary-row.total {
        font-size: 20px;
    }
}

@media (max-width: 480px) {

    .shopify-cart__top,
    .shopify-cart__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .shopify-cart__summary {
        padding: 22px;
    }

    .checkout-btn {
        font-size: 13px;
    }

    .cart-empty p {
        font-size: 30px;
    }
}