body.list-page {
    padding-top: 88px;
}

.list-page-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 5% 6rem;
    width: 100%;
    box-sizing: border-box;
}

.list-page-subtitle {
    text-align: center;
    color: #7a6250;
    margin: -0.5rem 0 1.25rem;
    font-size: 0.92rem;
}

.list-empty-state {
    text-align: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 2rem 1.25rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.list-empty-state i {
    font-size: 2.2rem;
    color: #ff6b00;
    margin-bottom: 0.75rem;
}

.list-empty-state h2 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: #222;
}

.list-empty-state p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

.list-empty-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.1rem;
    border-radius: 12px;
    background: #ff6b00;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.cart-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 1.25rem;
    align-items: start;
}

.cart-items-panel,
.cart-summary-panel {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    padding: 1rem;
}

.cart-items-list {
    display: grid;
    gap: 0.85rem;
}

.cart-item-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 0.75rem;
}

.cart-item-thumb {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    object-fit: cover;
    background: #fafafa;
    border: 1px solid #eee;
}

.cart-item-body {
    min-width: 0;
}

.cart-item-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.cart-item-title a {
    color: inherit;
    text-decoration: none;
}

.cart-item-variant {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 0.35rem;
}

.cart-item-price {
    font-size: 1rem;
    font-weight: 800;
    color: #ff6b00;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
}

.cart-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
}

.cart-qty-btn {
    width: 30px;
    height: 30px;
    border: 0;
    background: #f7f7f7;
    color: #333;
    cursor: pointer;
    font-weight: 700;
}

.cart-qty-value {
    min-width: 28px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.cart-item-remove {
    border: 0;
    background: transparent;
    color: #d32f2f;
    font-size: 0.78rem;
    cursor: pointer;
    font-weight: 600;
}

.cart-summary-panel h2 {
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
    color: #222;
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0;
    font-size: 0.9rem;
    color: #444;
}

.cart-summary-line.muted span:last-child {
    text-decoration: line-through;
    color: #999;
}

.cart-summary-line.discount span:last-child {
    color: #2e7d32;
    font-weight: 700;
}

.cart-summary-line.total {
    border-top: 1px solid #f0f0f0;
    margin-top: 0.35rem;
    padding-top: 0.75rem;
    font-size: 1rem;
}

.cart-summary-line.total strong {
    color: #ff6b00;
    font-size: 1.2rem;
}

.cart-checkout-btn,
.cart-clear-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.65rem;
}

.cart-checkout-btn {
    background: linear-gradient(135deg, #ff6b00, #ff8c00);
    color: #fff;
    box-shadow: 0 10px 24px rgba(255, 107, 0, 0.28);
}

.cart-clear-btn {
    background: #f5f5f5;
    color: #666;
}

.product-favorite-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #ececec;
    background: #fff;
    color: #9a9a9a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 0 0 auto;
}

.product-favorite-btn:hover,
.product-favorite-btn.active {
    color: #ff3d57;
    border-color: #ffd1d7;
    background: #fff5f7;
}

.product-title-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.product-title-row .product-detail-title {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.favorite-btn.active {
    color: #ff3d57 !important;
    border-color: #ffb3c0 !important;
    background: #fff0f3 !important;
}

.favorite-btn.active i {
    color: #ff1744;
}

.favorites-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ff3d57;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.cart-page .mobile-cart-bar,
body.favorites-page .mobile-cart-bar {
    display: none !important;
}

body.cart-page,
body.favorites-page {
    padding-bottom: 2rem;
}

@media (max-width: 992px) {
    body.list-page {
        padding-top: 132px;
    }

    .cart-page-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary-panel {
        position: sticky;
        bottom: 0.75rem;
        z-index: 2;
    }
}

@media (max-width: 576px) {
    .cart-item-row {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .cart-item-thumb {
        width: 72px;
        height: 72px;
    }
}
