
/* =====================================
   ZIVO - SHOPPING CART
===================================== */

.cart-header {
    height: 76px;
    padding: 0 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

.cart-logo {
    color: #111827;
    text-decoration: none;
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.cart-logo span {
    color: #f5a623;
}

.back-marketplace,
.continue-link {
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.back-marketplace:hover,
.continue-link:hover {
    color: #e59613;
}

/* MAIN */

.cart-page {
    max-width: 1250px;
    margin: 0 auto;
    padding: 55px 25px 80px;
}

.cart-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.cart-label {
    color: #d18b16;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 9px;
}

.cart-heading h1 {
    font-size: 34px;
    color: #171717;
    margin: 0;
}

.cart-subtitle {
    color: #777777;
    font-size: 14px;
    margin-top: 10px;
}

/* CART LAYOUT */

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.cart-items-section,
.cart-summary {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 12px;
}

.cart-items-section {
    padding: 25px;
}

.cart-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eeeeee;
}

.cart-items-header h2 {
    font-size: 19px;
    margin: 0;
}

.cart-items-header span {
    color: #777777;
    font-size: 13px;
}

/* CART ITEM */

.cart-items {
    display: flex;
    flex-direction: column;
}

.cart-item {
    display: grid;
    grid-template-columns: 115px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid #eeeeee;
}

.cart-item-image {
    width: 115px;
    height: 115px;
    object-fit: contain;
    background: #f7f7f7;
    border-radius: 9px;
    padding: 8px;
}

.cart-item-details h3 {
    font-size: 15px;
    color: #222222;
    margin: 0 0 8px;
}

.cart-item-category {
    color: #888888;
    font-size: 12px;
    margin-bottom: 10px;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 800;
    color: #111111;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.quantity-button {
    width: 29px;
    height: 29px;
    border: 1px solid #dddddd;
    background: #ffffff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.quantity-button:hover {
    border-color: #f5a623;
}

.quantity-value {
    font-size: 13px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

.remove-item {
    border: none;
    background: transparent;
    color: #dc2626;
    font-size: 12px;
    cursor: pointer;
    margin-left: 8px;
}

.remove-item:hover {
    text-decoration: underline;
}

.cart-item-total {
    font-size: 15px;
    font-weight: 800;
    color: #171717;
    white-space: nowrap;
}

/* EMPTY CART */

.empty-cart {
    display: none;
    text-align: center;
    padding: 65px 20px;
}

.empty-cart-icon {
    font-size: 55px;
    margin-bottom: 15px;
}

.empty-cart h2 {
    font-size: 21px;
    margin-bottom: 10px;
}

.empty-cart p {
    color: #777777;
    font-size: 14px;
    margin-bottom: 25px;
}

.shop-now-button {
    display: inline-block;
    padding: 13px 25px;
    background: #f5a623;
    color: #171717;
    border-radius: 7px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

/* ORDER SUMMARY */

.cart-summary {
    padding: 25px;
    position: sticky;
    top: 25px;
}

.cart-summary h2 {
    font-size: 19px;
    margin: 0 0 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    font-size: 13px;
    color: #777777;
}

.summary-row strong {
    color: #222222;
    font-size: 13px;
}

.summary-divider {
    border-top: 1px solid #eeeeee;
    margin: 22px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 16px;
    font-weight: 700;
}

.summary-total strong {
    font-size: 21px;
}

.checkout-button {
    width: 100%;
    height: 49px;
    border: none;
    border-radius: 7px;
    background: #f5a623;
    color: #171717;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

.checkout-button:hover {
    background: #e59613;
    transform: translateY(-1px);
}

.checkout-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.secure-checkout {
    color: #888888;
    text-align: center;
    font-size: 11px;
    margin-top: 18px;
}

/* FOOTER */

.cart-footer {
    padding: 25px;
    text-align: center;
    background: #111827;
    color: #aaaaaa;
    font-size: 12px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 600px) {
    .cart-header {
        padding: 0 18px;
        height: 65px;
    }

    .cart-page {
        padding: 35px 15px 55px;
    }

    .cart-heading {
        align-items: flex-start;
        gap: 15px;
    }

    .cart-heading h1 {
        font-size: 27px;
    }

    .continue-link {
        display: none;
    }

    .cart-items-section {
        padding: 15px;
    }

    .cart-item {
        grid-template-columns: 85px 1fr;
        gap: 12px;
    }

    .cart-item-image {
        width: 85px;
        height: 85px;
    }

    .cart-item-total {
        grid-column: 2;
        justify-self: start;
    }

    .cart-summary {
        padding: 20px;
    }
}
