/* =========================================
   ZAREEI STUDIO
   SHOPPING CART
========================================= */

.cart-page {
    padding: 80px 0 100px;
    background: var(--background);
    min-height: 70vh;
}

/* =========================================
   CART HEADER
========================================= */

.cart-header {
    margin-bottom: 45px;
}

.cart-label {
    display: block;
    margin-bottom: 10px;
    color: var(--secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cart-header h1 {
    margin: 0;
    color: var(--primary);
    font-size: 38px;
    line-height: 1.2;
}

/* =========================================
   CART LAYOUT
========================================= */

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 35px;
    align-items: start;
}

/* =========================================
   CART ITEMS
========================================= */

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;

    padding: 20px;

    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .05);
}

/* =========================================
   PRODUCT IMAGE
========================================= */

.cart-item-image {
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 10px;
    background: #f1f0ed;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.cart-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px;

    color: var(--secondary);
    font-size: 11px;
    text-align: center;
}

/* =========================================
   PRODUCT INFO
========================================= */

.cart-item-info {
    min-width: 0;
}

.cart-item-info h2 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.cart-item-info h2 a {
    color: var(--primary);
    text-decoration: none;
    transition: color .25s ease;
}

.cart-item-info h2 a:hover {
    color: var(--secondary);
}

.cart-item-category {
    display: block;
    margin-bottom: 12px;

    color: #777;
    font-size: 12px;
}

/* =========================================
   PRICE
========================================= */

.cart-item-price {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 15px;
}

.cart-item-price del {
    color: #999;
    font-size: 13px;
}

.cart-item-price strong {
    color: var(--secondary);
    font-size: 16px;
}

/* =========================================
   QUANTITY
========================================= */

.cart-quantity-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cart-quantity-form label {
    color: #555;
    font-size: 12px;
}

.cart-quantity-form input {
    width: 65px;
    height: 38px;

    padding: 0 8px;

    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 7px;

    background: #fff;
    color: var(--primary);

    text-align: center;
    font-size: 14px;
}

.cart-quantity-form button {
    height: 38px;

    padding: 0 13px;

    border: 0;
    border-radius: 7px;

    background: var(--primary);
    color: #fff;

    cursor: pointer;

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

    transition:
        background .25s ease,
        transform .25s ease;
}

.cart-quantity-form button:hover {
    background: var(--secondary);
    color: var(--primary);
}

/* =========================================
   REMOVE
========================================= */

.cart-remove-form {
    margin-top: 10px;
}

.cart-remove-form button {
    padding: 0;

    border: 0;
    background: transparent;

    color: #888;

    cursor: pointer;

    font-size: 12px;

    transition: color .25s ease;
}

.cart-remove-form button:hover {
    color: #b33;
}

/* =========================================
   LINE TOTAL
========================================= */

.cart-item-total {
    min-width: 110px;
    text-align: right;
}

.cart-item-total span {
    display: block;
    margin-bottom: 7px;

    color: #888;
    font-size: 11px;
}

.cart-item-total strong {
    color: var(--primary);
    font-size: 17px;
}

/* =========================================
   SUMMARY
========================================= */

.cart-summary {
    position: sticky;
    top: 110px;

    padding: 28px;

    background: #fff;

    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
}

.cart-summary h2 {
    margin: 0 0 25px;

    color: var(--primary);
    font-size: 21px;
}

/* =========================================
   SUMMARY ROW
========================================= */

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 0;

    border-bottom: 1px solid rgba(0, 0, 0, .08);

    color: #666;
    font-size: 14px;
}

.cart-summary-row strong {
    color: var(--primary);
}

.cart-summary-total {
    padding-top: 18px;
    margin-top: 5px;

    border-bottom: 0;

    color: var(--primary);
    font-size: 16px;
}

.cart-summary-total strong {
    color: var(--secondary);
    font-size: 21px;
}

.cart-summary-currency {
    margin: -5px 0 22px;

    color: #888;

    font-size: 11px;
    text-align: right;
}

/* =========================================
   CONTINUE SHOPPING
========================================= */

.cart-continue-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 46px;

    box-sizing: border-box;

    margin-top: 8px;

    border: 1px solid var(--primary);
    border-radius: 8px;

    color: var(--primary);

    text-decoration: none;

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

    transition: all .25s ease;
}

.cart-continue-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* =========================================
   CLEAR CART
========================================= */

.cart-clear-form {
    margin-top: 12px;
}

.cart-clear-form button {
    width: 100%;
    min-height: 42px;

    border: 0;
    background: transparent;

    color: #999;

    cursor: pointer;

    font-size: 12px;

    transition: color .25s ease;
}

.cart-clear-form button:hover {
    color: #b33;
}

/* =========================================
   EMPTY CART
========================================= */

.cart-empty {
    max-width: 650px;

    margin: 20px auto 0;
    padding: 70px 30px;

    background: #fff;

    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 16px;

    text-align: center;

    box-shadow: 0 8px 30px rgba(0, 0, 0, .05);
}

.cart-empty-icon {
    margin-bottom: 20px;

    font-size: 48px;
}

.cart-empty h2 {
    margin: 0 0 12px;

    color: var(--primary);
    font-size: 25px;
}

.cart-empty p {
    margin: 0 auto 28px;

    max-width: 450px;

    color: #777;

    font-size: 14px;
    line-height: 1.8;
}

.cart-empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 0 25px;

    border-radius: 8px;

    background: var(--primary);
    color: #fff;

    text-decoration: none;

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

    transition: all .25s ease;
}

.cart-empty-btn:hover {
    background: var(--secondary);
    color: var(--primary);
}

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

@media (max-width: 1000px) {

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .cart-page {
        padding: 55px 0 70px;
    }

    .cart-header {
        margin-bottom: 30px;
    }

    .cart-header h1 {
        font-size: 30px;
    }

    .cart-item {
        grid-template-columns: 85px minmax(0, 1fr);
        gap: 15px;

        padding: 15px;
    }

    .cart-item-image {
        width: 85px;
        height: 85px;
    }

    .cart-item-info h2 {
        font-size: 16px;
    }

    .cart-item-total {
        grid-column: 1 / -1;

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

        min-width: 0;

        padding-top: 12px;

        border-top: 1px solid rgba(0, 0, 0, .08);

        text-align: left;
    }

    .cart-item-total span {
        margin: 0;
    }

    .cart-summary {
        padding: 22px;
    }

}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 420px) {

    .cart-header h1 {
        font-size: 26px;
    }

    .cart-item {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 12px;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
    }

    .cart-quantity-form {
        gap: 6px;
    }

    .cart-quantity-form input {
        width: 55px;
    }

    .cart-quantity-form button {
        padding: 0 9px;
    }

}
