/* =========================================================
   JORA TREND - CART PAGE
========================================================= */


/* =========================================================
   CART PAGE
========================================================= */

.cart-page {
    width: 100%;
    min-height: 70vh;
    padding: 70px 6% 90px;
    background: #fff;
}


/* =========================================================
   CART HEADING
========================================================= */

.cart-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 55px;
}

.cart-eyebrow {
    display: block;
    margin-bottom: 12px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #a17c45;
}

.cart-heading h1 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1;
    font-weight: 500;
    color: #241f1a;
}

.cart-heading h1 em {
    font-style: italic;
    font-weight: 500;
    color: #a17c45;
}

.cart-heading p {
    max-width: 600px;
    margin: 20px auto 0;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #777;
}


/* =========================================================
   CART CONTENT
========================================================= */

.cart-content {
    max-width: 1350px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 45px;
    align-items: start;
}


/* =========================================================
   CART ITEMS
========================================================= */

.cart-items {
    width: 100%;
}


/* =========================================================
   CART ITEM
========================================================= */

.cart-item {
    position: relative;
    display: grid;
    grid-template-columns: 130px minmax(180px, 1fr) 125px 120px 35px;
    gap: 22px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid #eee7df;
}


/* =========================================================
   CART IMAGE
========================================================= */

.cart-image {
    width: 130px;
    height: 145px;
    overflow: hidden;
    border-radius: 12px;
    background: #f8f5f1;
}

.cart-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cart-item:hover .cart-image img {
    transform: scale(1.04);
}


/* =========================================================
   CART DETAILS
========================================================= */

.cart-details {
    min-width: 0;
}

.cart-category {
    display: block;
    margin-bottom: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #a17c45;
}

.cart-details h2 {
    margin: 0 0 10px;
    font-family: "Cormorant Garamond", serif;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 600;
    color: #29231d;
}

.cart-price {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #555;
}


/* =========================================================
   QUANTITY
========================================================= */

.cart-quantity {
    text-align: center;
}

.cart-quantity > span {
    display: block;
    margin-bottom: 9px;
    font-family: "Montserrat", sans-serif;
    font-size: 9px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #999;
}

.quantity-box {
    display: inline-flex;
    align-items: center;
    height: 40px;
    border: 1px solid #ded7cf;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.quantity-box button {
    width: 36px;
    height: 100%;
    border: 0;
    background: transparent;
    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    color: #5c5044;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.quantity-box button:hover {
    background: #f5f0ea;
    color: #a17c45;
}

.quantity-box input {
    width: 35px;
    height: 100%;
    padding: 0;
    border: 0;
    border-left: 1px solid #eee7df;
    border-right: 1px solid #eee7df;
    outline: none;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    color: #333;
    background: #fff;
}


/* Remove number input arrows */

.quantity-box input::-webkit-inner-spin-button,
.quantity-box input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* =========================================================
   ITEM TOTAL
========================================================= */

.cart-item-total {
    text-align: right;
}

.cart-item-total > span {
    display: block;
    margin-bottom: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 9px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #999;
}

.cart-item-total strong {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #29231d;
}


/* =========================================================
   REMOVE BUTTON
========================================================= */

.remove-cart {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    color: #9b9289;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.remove-cart:hover {
    background: #f6eeee;
    color: #a84b4b;
    transform: scale(1.05);
}

.remove-cart i {
    font-size: 15px;
}


/* =========================================================
   CART SUMMARY
========================================================= */

.cart-summary {
    position: sticky;
    top: 30px;
    padding: 32px;
    border: 1px solid #eee7df;
    border-radius: 16px;
    background: #faf8f5;
}


/* =========================================================
   SUMMARY HEADING
========================================================= */

.summary-heading {
    margin-bottom: 28px;
}

.summary-heading span {
    display: block;
    margin-bottom: 7px;
    font-family: "Montserrat", sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #a17c45;
}

.summary-heading h2 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 30px;
    font-weight: 600;
    color: #29231d;
}


/* =========================================================
   SUMMARY ROW
========================================================= */

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    color: #666;
}

.summary-row strong {
    font-weight: 600;
    color: #29231d;
}

.summary-row:last-of-type strong {
    color: #a17c45;
    font-size: 14px;
    letter-spacing: 0.5px;
}


/* =========================================================
   SUMMARY DIVIDER
========================================================= */

.summary-divider {
    width: 100%;
    height: 1px;
    margin: 23px 0;
    background: #e5ddd4;
}


/* =========================================================
   SUMMARY TOTAL
========================================================= */

.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 27px;
}

.summary-total span {
    font-family: "Cormorant Garamond", serif;
    font-size: 23px;
    font-weight: 600;
    color: #29231d;
}

.summary-total strong {
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #a17c45;
}


/* =========================================================
   CHECKOUT BUTTON
========================================================= */

.checkout-btn {
    width: 100%;
    min-height: 52px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 5px;
    background: #29231d;
    color: #fff;
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.checkout-btn:hover {
    background: #a17c45;
    color: #fff;
    transform: translateY(-2px);
}

.checkout-btn i {
    font-size: 14px;
}


/* =========================================================
   CONTINUE SHOPPING
========================================================= */

.continue-shopping {
    margin-top: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: #756b61;
    transition: color 0.25s ease;
}

.continue-shopping:hover {
    color: #a17c45;
}

.continue-shopping i {
    font-size: 13px;
}


/* =========================================================
   EMPTY CART
========================================================= */

.empty-cart {
    max-width: 700px;
    margin: 20px auto 0;
    padding: 80px 30px;
    text-align: center;
    border: 1px solid #eee7df;
    border-radius: 16px;
    background: #faf8f5;
}

.empty-cart-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfd3c5;
    border-radius: 50%;
    color: #a17c45;
}

.empty-cart-icon i {
    font-size: 31px;
}

.empty-cart > span {
    display: block;
    margin-bottom: 10px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: #a17c45;
}

.empty-cart h2 {
    margin: 0 0 12px;
    font-family: "Cormorant Garamond", serif;
    font-size: 38px;
    font-weight: 600;
    color: #29231d;
}

.empty-cart p {
    max-width: 470px;
    margin: 0 auto 28px;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    line-height: 1.8;
    color: #777;
}


/* =========================================================
   EXPLORE JEWELLERY BUTTON
========================================================= */

.shop-now-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    padding: 13px 24px;
    border-radius: 5px;
    background: #29231d;
    color: #fff;
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.4px;
    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.shop-now-btn:hover {
    background: #a17c45;
    color: #fff;
    transform: translateY(-2px);
}

.shop-now-btn i {
    font-size: 14px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .cart-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .cart-summary {
        position: static;
        max-width: 500px;
        width: 100%;
        margin-left: auto;
    }

    .cart-item {
        grid-template-columns: 110px minmax(160px, 1fr) 115px 100px 35px;
        gap: 16px;
    }

    .cart-image {
        width: 110px;
        height: 125px;
    }

}


/* =========================================================
   TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 800px) {

    .cart-page {
        padding: 55px 5% 70px;
    }

    .cart-heading {
        margin-bottom: 40px;
    }

    .cart-item {
        grid-template-columns: 100px 1fr 35px;
        gap: 18px;
        padding: 20px 0;
    }

    .cart-image {
        width: 100px;
        height: 115px;
        grid-row: span 2;
    }

    .cart-details {
        align-self: center;
    }

    .cart-quantity {
        grid-column: 2;
        justify-self: start;
        text-align: left;
    }

    .cart-item-total {
        grid-column: 2;
        text-align: left;
    }

    .remove-cart {
        grid-column: 3;
        grid-row: 1;
        align-self: start;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .cart-page {
        padding: 45px 18px 60px;
    }

    .cart-heading h1 {
        font-size: 42px;
    }

    .cart-heading p {
        font-size: 14px;
        line-height: 1.7;
    }

    .cart-item {
        grid-template-columns: 85px 1fr 30px;
        gap: 13px;
        padding: 18px 0;
    }

    .cart-image {
        width: 85px;
        height: 100px;
    }

    .cart-details h2 {
        font-size: 21px;
    }

    .cart-price {
        font-size: 14px;
    }

    .cart-category {
        font-size: 8px;
        letter-spacing: 1.2px;
    }

    .cart-quantity > span,
    .cart-item-total > span {
        font-size: 8px;
    }

    .quantity-box {
        height: 35px;
    }

    .quantity-box button {
        width: 31px;
        font-size: 15px;
    }

    .quantity-box input {
        width: 30px;
        font-size: 13px;
    }

    .cart-item-total strong {
        font-size: 14px;
    }

    .cart-summary {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .summary-heading h2 {
        font-size: 27px;
    }

    .summary-total span {
        font-size: 21px;
    }

    .summary-total strong {
        font-size: 16px;
    }

    .empty-cart {
        padding: 60px 20px;
        border-radius: 12px;
    }

    .empty-cart-icon {
        width: 70px;
        height: 70px;
    }

    .empty-cart-icon i {
        font-size: 27px;
    }

    .empty-cart h2 {
        font-size: 31px;
    }

    .empty-cart p {
        font-size: 14px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .cart-page {
        padding-left: 14px;
        padding-right: 14px;
    }

    .cart-item {
        grid-template-columns: 72px 1fr 28px;
        gap: 10px;
    }

    .cart-image {
        width: 72px;
        height: 88px;
    }

    .cart-details h2 {
        font-size: 19px;
    }

    .cart-summary {
        padding: 22px 16px;
    }

}