/*==================================================
GLOBAL
==================================================*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: #ffffff;
    color: #111827;
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
}

.checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    text-decoration: none;
    cursor: pointer;
}

/*==================================================
CONTAINER
==================================================*/

.cart-container {
    width: calc(100% - 240px);
    max-width: 1400px;
    margin: auto;
}


/*==================================================
CART PAGE
==================================================*/

.cart-page {
    padding: 70px 0 110px;
    background: #ffffff;
}


/*==================================================
BREADCRUMB
==================================================*/

.cart-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    margin-bottom: 45px;

    font-size: 14px;
    font-weight: 700;
}

.cart-breadcrumb a {
    color: #64748B;
    transition: .25s ease;
}

.cart-breadcrumb a:hover {
    color: #2563EB;
}

.cart-breadcrumb i {
    color: #94A3B8;
    font-size: 11px;
}

.cart-breadcrumb span {
    color: #2563EB;
}


/*==================================================
PAGE HEADING
==================================================*/

.cart-heading {
    margin-bottom: 45px;
}

.cart-heading span {
    display: block;

    color: #2563EB;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 2px;
    text-transform: uppercase;

    margin-bottom: 12px;
}

.cart-heading h1 {
    font-size: 48px;
    line-height: 1.15;

    font-weight: 900;

    color: #111827;

    margin-bottom: 12px;
}

.cart-heading p {
    color: #64748B;

    font-size: 17px;
    line-height: 1.7;
}


/*==================================================
CART LAYOUT
==================================================*/

.cart-layout {
    display: grid;

    grid-template-columns: minmax(0, 1.7fr) minmax(340px, .8fr);

    gap: 35px;

    align-items: start;
}


/*==================================================
CART ITEMS CARD
==================================================*/

.cart-items-wrapper {
    background: #ffffff;

    border: 1px solid #E5E7EB;

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 12px 35px rgba(15, 23, 42, .05);
}


/*==================================================
CART HEADER
==================================================*/

.cart-items-header {
    display: grid;

    grid-template-columns:
        minmax(260px, 1.8fr) .7fr .8fr .7fr 45px;

    gap: 20px;

    padding: 20px 25px;

    background: #F8FAFC;

    border-bottom: 1px solid #E5E7EB;

    color: #64748B;

    font-size: 13px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .8px;
}


/*==================================================
CART ITEM
==================================================*/

.cart-item {
    display: grid;

    grid-template-columns:
        minmax(260px, 1.8fr) .7fr .8fr .7fr 45px;

    gap: 20px;

    align-items: center;

    padding: 25px;

    border-bottom: 1px solid #E5E7EB;

    transition: background .25s ease;
}

.cart-item:hover {
    background: #FBFDFF;
}

.cart-item:last-child {
    border-bottom: none;
}


/*==================================================
PRODUCT
==================================================*/

.cart-product {
    display: flex;

    align-items: center;

    gap: 18px;

    min-width: 0;
}

.cart-product-image {
    width: 105px;
    height: 105px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #F8FAFC;

    border: 1px solid #E5E7EB;

    border-radius: 14px;

    padding: 10px;

    overflow: hidden;
}

.cart-product-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}

.cart-product-info {
    min-width: 0;
}

.cart-product-category {
    display: block;

    color: #2563EB;

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-bottom: 6px;
}

.cart-product-info h3 {
    font-size: 18px;

    line-height: 1.35;

    font-weight: 800;

    color: #111827;

    margin-bottom: 7px;
}

.cart-product-sku {
    color: #94A3B8;

    font-size: 13px;
}


/*==================================================
PRICE
==================================================*/

.cart-item-price {
    color: #334155;

    font-size: 16px;

    font-weight: 800;
}


/*==================================================
QUANTITY
==================================================*/

.cart-quantity {
    display: flex;

    align-items: center;

    width: fit-content;

    border: 1px solid #D1D5DB;

    border-radius: 9px;

    overflow: hidden;

    background: #ffffff;
}

.cart-quantity button {
    width: 36px;
    height: 38px;

    border: none;

    background: #F8FAFC;

    color: #475569;

    transition: .25s ease;
}

.cart-quantity button:hover {
    background: #EFF6FF;

    color: #2563EB;
}

.cart-quantity input {
    width: 42px;
    height: 38px;

    border: none;

    outline: none;

    text-align: center;

    color: #111827;

    font-size: 14px;

    font-weight: 800;

    background: #ffffff;
}


/* Remove number arrows */

.cart-quantity input::-webkit-outer-spin-button,
.cart-quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-quantity input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}


/*==================================================
ITEM TOTAL
==================================================*/

.cart-item-total {
    color: #111827;

    font-size: 17px;

    font-weight: 900;
}


/*==================================================
REMOVE BUTTON
==================================================*/

.remove-cart-item {
    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #E5E7EB;

    border-radius: 9px;

    background: #ffffff;

    color: #94A3B8;

    transition: .25s ease;
}

.remove-cart-item:hover {
    color: #EF4444;

    border-color: #FCA5A5;

    background: #FEF2F2;
}


/*==================================================
CART ACTIONS
==================================================*/

.cart-items-actions {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 20px 25px;

    background: #ffffff;

    border-top: 1px solid #E5E7EB;
}

.continue-shopping {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #2563EB;

    font-size: 15px;

    font-weight: 800;

    transition: .25s ease;
}

.continue-shopping:hover {
    gap: 12px;
}

.clear-cart {
    border: none;

    background: transparent;

    color: #EF4444;

    font-size: 14px;

    font-weight: 800;
}


/*==================================================
SUMMARY
==================================================*/

.cart-summary {
    background: #ffffff;

    border: 1px solid #E5E7EB;

    border-radius: 20px;

    padding: 30px;

    box-shadow:
        0 12px 35px rgba(15, 23, 42, .06);

    position: sticky;

    top: 25px;
}

.cart-summary h2 {
    font-size: 25px;

    font-weight: 900;

    color: #111827;

    margin-bottom: 25px;
}


/*==================================================
COUPON
==================================================*/

.coupon-box {
    padding-bottom: 25px;

    margin-bottom: 25px;

    border-bottom: 1px solid #E5E7EB;
}

.coupon-box label {
    display: block;

    color: #334155;

    font-size: 14px;

    font-weight: 800;

    margin-bottom: 10px;
}

.coupon-input-wrapper {
    display: flex;

    gap: 8px;
}

.coupon-input-wrapper input {
    min-width: 0;
    flex: 1;

    height: 45px;

    padding: 0 14px;

    border: 1px solid #D1D5DB;

    border-radius: 8px;

    outline: none;

    color: #111827;

    font-size: 14px;
}

.coupon-input-wrapper input:focus {
    border-color: #2563EB;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .08);
}

.apply-coupon {
    height: 45px;

    padding: 0 18px;

    border: none;

    border-radius: 8px;

    background: #111827;

    color: #ffffff;

    font-size: 14px;

    font-weight: 800;

    transition: .25s ease;
}

.apply-coupon:hover {
    background: #2563EB;
}

.coupon-message {
    display: none;

    margin-top: 10px;

    font-size: 13px;

    font-weight: 700;
}

.coupon-message.success {
    display: block;

    color: #16A34A;
}

.coupon-message.error {
    display: block;

    color: #EF4444;
}


/*==================================================
SUMMARY ROWS
==================================================*/

.summary-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 15px;

    color: #64748B;

    font-size: 15px;
}

.summary-row strong {
    color: #334155;

    font-weight: 800;
}

.summary-discount strong {
    color: #16A34A;
}

.summary-shipping strong {
    color: #16A34A;
}


/*==================================================
TOTAL
==================================================*/

.summary-total {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid #E5E7EB;
}

.summary-total span {
    color: #111827;

    font-size: 17px;

    font-weight: 800;
}

.summary-total strong {
    color: #2563EB;

    font-size: 28px;

    font-weight: 900;
}


/*==================================================
CHECKOUT
==================================================*/

.checkout-btn {
    width: 100%;

    height: 55px;

    margin-top: 25px;

    border: none;

    border-radius: 10px;

    background: #2563EB;

    color: #ffffff;

    font-size: 16px;

    font-weight: 900;

    transition: .3s ease;
}

.checkout-btn:hover {
    background: #1D4ED8;

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(37, 99, 235, .2);
}


/*==================================================
SECURE CHECKOUT
==================================================*/

.secure-checkout {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    margin-top: 18px;

    color: #64748B;

    font-size: 13px;

    font-weight: 700;

    text-align: center;
}

.secure-checkout i {
    color: #16A34A;
}


/*==================================================
EMPTY CART
==================================================*/

.empty-cart {
    display: none;

    text-align: center;

    padding: 80px 30px;

    background: #ffffff;

    border: 1px solid #E5E7EB;

    border-radius: 20px;

    box-shadow:
        0 12px 35px rgba(15, 23, 42, .05);
}

.empty-cart.show {
    display: block;
}

.empty-cart-icon {
    width: 90px;
    height: 90px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 25px;

    border-radius: 50%;

    background: #EFF6FF;

    color: #2563EB;

    font-size: 35px;
}

.empty-cart h2 {
    color: #111827;

    font-size: 30px;

    font-weight: 900;

    margin-bottom: 10px;
}

.empty-cart p {
    max-width: 500px;

    margin: 0 auto 25px;

    color: #64748B;

    font-size: 16px;

    line-height: 1.7;
}

.empty-cart-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 0 25px;

    border-radius: 9px;

    background: #2563EB;

    color: #ffffff;

    font-size: 15px;

    font-weight: 800;

    transition: .25s ease;
}

.empty-cart-btn:hover {
    background: #1D4ED8;
}


/*==================================================
TABLET
==================================================*/

@media (max-width: 1200px) {

    .cart-container {
        width: calc(100% - 80px);
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .cart-items-header,
    .cart-item {
        grid-template-columns:
            minmax(250px, 1.8fr) .7fr .8fr .7fr 45px;
    }

}


/*==================================================
TABLET / SMALL LAPTOP
==================================================*/

@media (max-width: 900px) {

    .cart-page {
        padding: 60px 0 80px;
    }

    .cart-heading h1 {
        font-size: 40px;
    }

    .cart-items-header {
        display: none;
    }

    .cart-item {
        grid-template-columns: 1fr auto;

        gap: 15px;

        padding: 22px;
    }

    .cart-product {
        grid-column: 1 / -1;
    }

    .cart-item-price {
        grid-column: 1;
    }

    .cart-quantity {
        grid-column: 2;

        grid-row: 2;
    }

    .cart-item-total {
        grid-column: 1;

        grid-row: 3;
    }

    .remove-cart-item {
        grid-column: 2;

        grid-row: 3;

        justify-self: end;
    }

}


/*==================================================
MOBILE
==================================================*/

@media (max-width: 768px) {

    .cart-container {
        width: calc(100% - 40px);
    }

    .cart-page {
        padding: 45px 0 70px;
    }

    .cart-breadcrumb {
        margin-bottom: 30px;

        font-size: 13px;
    }

    .cart-heading {
        margin-bottom: 30px;
    }

    .cart-heading h1 {
        font-size: 34px;
    }

    .cart-heading p {
        font-size: 15px;
    }

    .cart-items-wrapper,
    .cart-summary {
        border-radius: 16px;
    }

    .cart-item {
        padding: 18px;

        gap: 12px;
    }

    .cart-product {
        gap: 13px;
    }

    .cart-product-image {
        width: 80px;
        height: 80px;
    }

    .cart-product-info h3 {
        font-size: 16px;
    }

    .cart-product-category {
        font-size: 10px;
    }

    .cart-product-sku {
        font-size: 11px;
    }

    .cart-item-price {
        font-size: 14px;
    }

    .cart-item-total {
        font-size: 15px;
    }

    .cart-items-actions {
        flex-direction: column;

        align-items: stretch;

        padding: 18px;
    }

    .continue-shopping {
        justify-content: center;
    }

    .clear-cart {
        text-align: center;
    }

    .cart-summary {
        padding: 22px;
    }

    .cart-summary h2 {
        font-size: 22px;
    }

}


/*==================================================
SMALL MOBILE
==================================================*/

@media (max-width: 425px) {

    .cart-container {
        width: calc(100% - 30px);
    }

    .cart-heading h1 {
        font-size: 30px;
    }

    .cart-product-image {
        width: 70px;
        height: 70px;
    }

    .cart-product-info h3 {
        font-size: 15px;
    }

    .coupon-input-wrapper {
        flex-direction: column;
    }

    .apply-coupon {
        width: 100%;
    }

    .summary-total strong {
        font-size: 24px;
    }

}


/*==================================================
VERY SMALL MOBILE
==================================================*/

@media (max-width: 360px) {

    .cart-product {
        align-items: flex-start;
    }

    .cart-product-image {
        width: 60px;
        height: 60px;
    }

    .cart-product-info h3 {
        font-size: 14px;
    }

    .cart-quantity button {
        width: 32px;
    }

    .cart-quantity input {
        width: 36px;
    }

}