/* =================================
   KanoMart Cart CSS
================================= */


/* =================================
   RESET
================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f6f7f9;

    color: #222;

    min-height: 100vh;

}


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

.cart-header {

    height: 64px;

    background: #ffffff;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 16px;

    position: sticky;

    top: 0;

    z-index: 100;

    border-bottom: 1px solid #e5e5e5;

}


.back-btn {

    width: 42px;

    height: 42px;

    border: none;

    background: #f3f4f6;

    border-radius: 50%;

    font-size: 21px;

    cursor: pointer;

}


.back-btn:active {

    transform: scale(0.95);

}


.header-title {

    font-size: 20px;

    font-weight: 800;

    color: #111827;

}


.cart-header-count {

    font-size: 12px;

    color: #64748b;

}


.cart-header-count span {

    font-weight: 800;

    color: #111827;

}


/* =================================
   MAIN CONTAINER
================================= */

.cart-container {

    width: 100%;

    max-width: 1100px;

    margin: 0 auto;

    padding: 16px;

}


/* =================================
   CART CONTENT
================================= */

.cart-content {

    display: flex;

    flex-direction: column;

    gap: 18px;

}


.cart-content[hidden] {

    display: none;

}


/* =================================
   SECTION TITLE
================================= */

.section-title {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 12px;

}


.section-title h2 {

    font-size: 20px;

    color: #111827;

}


.section-title span {

    font-size: 13px;

    color: #64748b;

}


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

.cart-items {

    display: flex;

    flex-direction: column;

    gap: 12px;

}


/* =================================
   CART ITEM
================================= */

.cart-item {

    background: #ffffff;

    border-radius: 16px;

    padding: 12px;

    display: flex;

    gap: 12px;

    box-shadow:
        0 4px 15px
        rgba(0, 0, 0, 0.05);

}


.cart-item-image {

    width: 95px;

    height: 95px;

    flex-shrink: 0;

    object-fit: contain;

    background: #f8fafc;

    border-radius: 12px;

}


.cart-item-info {

    flex: 1;

    min-width: 0;

}


.cart-item-name {

    font-size: 16px;

    font-weight: 800;

    color: #111827;

    line-height: 1.3;

}


.cart-item-seller {

    margin-top: 5px;

    font-size: 12px;

    color: #64748b;

}


.cart-item-price {

    margin-top: 7px;

    font-size: 17px;

    font-weight: 900;

    color: #0f8a4b;

}


/* =================================
   ITEM BOTTOM
================================= */

.cart-item-bottom {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-top: 10px;

}


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

.cart-quantity {

    display: inline-flex;

    align-items: center;

    border: 1px solid #d1d5db;

    border-radius: 9px;

    overflow: hidden;

}


.cart-quantity button {

    width: 34px;

    height: 34px;

    border: none;

    background: #f3f4f6;

    font-size: 20px;

    cursor: pointer;

}


.cart-quantity button:active {

    background: #e5e7eb;

}


.cart-quantity span {

    width: 38px;

    text-align: center;

    font-size: 14px;

    font-weight: 800;

}


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

.remove-item-btn {

    border: none;

    background: transparent;

    color: #dc2626;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    padding: 6px;

}


/* =================================
   ITEM TOTAL
================================= */

.cart-item-total {

    text-align: right;

    font-size: 15px;

    font-weight: 900;

    color: #111827;

}


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

.cart-summary {

    background: #ffffff;

    border-radius: 18px;

    padding: 20px;

    box-shadow:
        0 4px 18px
        rgba(0, 0, 0, 0.06);

}


.cart-summary h2 {

    font-size: 20px;

    margin-bottom: 18px;

    color: #111827;

}


.summary-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 14px;

    font-size: 14px;

}


.summary-row span {

    color: #64748b;

}


.summary-row strong {

    color: #111827;

}


.summary-divider {

    height: 1px;

    background: #eeeeee;

    margin: 18px 0;

}


.total-row {

    margin-bottom: 20px;

}


.total-row span {

    color: #111827;

    font-size: 16px;

    font-weight: 800;

}


.total-row strong {

    color: #0f8a4b;

    font-size: 22px;

    font-weight: 900;

}


/* =================================
   CHECKOUT BUTTON
================================= */

.checkout-btn {

    width: 100%;

    min-height: 50px;

    border: none;

    border-radius: 12px;

    background: #0f8a4b;

    color: #ffffff;

    font-size: 16px;

    font-weight: 800;

    cursor: pointer;

}


.checkout-btn:active {

    transform: scale(0.98);

}


.checkout-btn:disabled {

    background: #9ca3af;

    cursor: not-allowed;

}


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

.continue-shopping-btn {

    width: 100%;

    min-height: 46px;

    margin-top: 10px;

    border: 1px solid #d1d5db;

    border-radius: 12px;

    background: #ffffff;

    color: #111827;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

}


.continue-shopping-btn:active {

    background: #f3f4f6;

}


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

.empty-cart {

    min-height: 70vh;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 30px;

}


.empty-cart[hidden] {

    display: none;

}


.empty-cart-icon {

    width: 85px;

    height: 85px;

    border-radius: 50%;

    background: #e8f5ee;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 40px;

    margin-bottom: 18px;

}


.empty-cart h2 {

    font-size: 23px;

    color: #111827;

    margin-bottom: 8px;

}


.empty-cart p {

    max-width: 330px;

    color: #64748b;

    line-height: 1.6;

    font-size: 14px;

    margin-bottom: 20px;

}


.empty-cart button {

    border: none;

    background: #0f8a4b;

    color: #ffffff;

    padding: 12px 20px;

    border-radius: 10px;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

}


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

@media (min-width: 700px) {

    .cart-container {

        padding: 30px;

    }


    .cart-item {

        padding: 16px;

    }


    .cart-item-image {

        width: 120px;

        height: 120px;

    }

}


/* =================================
   DESKTOP
================================= */

@media (min-width: 900px) {

    .cart-content {

        display: grid;

        grid-template-columns:
            minmax(0, 1.5fr)
            minmax(300px, 0.7fr);

        align-items: start;

        gap: 25px;

    }


    .cart-summary {

        position: sticky;

        top: 84px;

    }

}