/* UNIFIED CART DESIGN - PRO VERSION (MINIMALIST REDESIGN) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.cart-screen, .favs-screen {
    background: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #111;
}

.cart-unified-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* HEADER - CONSOLIDATED */
.cart-integrated-header {
    padding: env(safe-area-inset-top, 0) 16px 0;
    border-bottom: 1px solid #f2f2f2;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: calc(44px + env(safe-area-inset-top, 0));
    flex-shrink: 0;
}

.cart-integrated-header h2 {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.2px;
}

.cart-header-close {
    position: absolute;
    right: 12px;
    background: #f8f8f8;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* SCROLL AREA */
.cart-scroll-area {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
}

.cart-scroll-area::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

/* PRODUCT CARD */
.cart-item-card {
    display: flex;
    padding: 12px 16px;
    border-bottom: 1px solid #f8f8f8;
    gap: 12px;
    position: relative;
}

.cart-img-side {
    width: 70px;
    height: 95px;
    border-radius: 2px;
    background-size: cover;
    background-position: center;
    background-color: #f9f9f9;
    flex-shrink: 0;
}

.cart-info-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding-right: 20px;
}

.cart-item-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #111;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ref-text {
    font-size: 0.6rem;
    color: #999;
}

.cart-price-block {
    margin: 2px 0 6px;
}

.price-current {
    color: #111;
    font-weight: 700;
    font-size: 0.8rem;
}

/* MINI QTY SELECTOR */
.cart-qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 4px;
    width: fit-content;
    height: 24px;
}

.cart-qty-selector button {
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
}

.cart-qty-selector span {
    width: 22px;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #111;
}

/* ACTIONS */
.cart-card-actions-top {
    position: absolute;
    right: 12px;
    top: 12px;
}

.action-btn-minimal i,
.action-btn-minimal svg {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
}

/* FOOTER - COMPACT */
.cart-footer-minimal {
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0));
    border-top: 1px solid #f2f2f2;
    background: #fff;
}

.summary-minimal {
    margin-bottom: 8px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
    font-size: 0.75rem;
    color: #666;
}

.summary-item.total {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid #f2f2f2;
    font-weight: 800;
    font-size: 0.85rem;
    color: #111;
}

.shipping-info-text {
    text-align: left;
    font-size: 0.65rem;
    color: #999;
    margin-top: 2px;
}

.btn-checkout-black {
    width: 100%;
    background: #111 !important;
    color: #fff !important;
    border: none;
    height: 36px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.footer-trust {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.6rem;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* EMPTY STATE */
.empty-state-unified {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.empty-icon-bg i,
.empty-icon-bg svg {
    margin-bottom: 15px;
    color: #eee;
    width: 32px;
    height: 32px;
}

.empty-state-unified h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.btn-explore-pro {
    background: #111;
    color: #fff;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    border: none;
}