/* Shopee-like Cart Structure adapted for YasMimos */
    body {
        background-color: var(--bg-color) !important;
    }
    
    main.container {
        padding: 0;
        max-width: 100%;
    }

    .cart-container {
        padding-bottom: 90px; /* Space for sticky bottom bar */
        margin-top: 0;
    }
    
    /* Section block */
    .cart-section {
        background: var(--card-bg);
        margin-bottom: 12px;
        padding: 15px;
    }
    
    .cart-section-title {
        font-weight: bold;
        color: var(--text-color);
        margin-bottom: 15px;
        font-size: 1.05rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    /* Product Item */
    .cart-item {
        display: flex;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .cart-item:first-child {
        padding-top: 0;
    }
    
    .cart-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .cart-item-img {
        width: 85px;
        height: 85px;
        border-radius: 8px;
        object-fit: cover;
        margin-right: 12px;
        border: 1px solid #f0f0f0;
    }
    
    .cart-item-details {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .cart-item-title {
        font-size: 0.95rem;
        color: var(--text-color);
        margin: 0 0 5px 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.3;
    }
    
    .cart-item-desc {
        font-size: 0.8rem;
        color: var(--text-light, #757575);
        background: var(--input-bg);
        padding: 4px 8px;
        border-radius: 4px;
        display: inline-block;
        margin-bottom: 5px;
        align-self: flex-start;
    }
    
    .cart-item-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 5px;
    }
    
    .cart-item-price {
        color: var(--accent-color);
        font-weight: bold;
        font-size: 1.1rem;
    }
    
    /* Quantity Controls */
    .qty-controls {
        display: flex;
        align-items: center;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        overflow: hidden;
    }
    .qty-btn {
        width: 28px;
        height: 28px;
        background: var(--input-bg);
        border: none;
        color: var(--text-color);
        font-size: 1rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
    .qty-input {
        width: 32px;
        height: 28px;
        border: none;
        border-left: 1px solid var(--input-border, #e0e0e0);
        border-right: 1px solid var(--input-border, #e0e0e0);
        text-align: center;
        font-size: 0.9rem;
        background: var(--input-bg);
        color: var(--text-color);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .btn-delete-item {
        color: #bbb;
        background: none;
        border: none;
        font-size: 1.1rem;
        padding: 5px;
        cursor: pointer;
        margin-left: 10px;
        transition: color 0.2s;
    }
    
    /* Action Rows (Coupon & Tip) */
    .action-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
        flex-wrap: wrap;
        gap: 8px;
    }
    .action-row:last-child {
        border-bottom: none;
    }
    .action-label {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--text-color);
        font-size: 0.95rem;
    }
    .action-label i {
        color: var(--accent-color);
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
    }
    .action-value {
        display: flex;
        align-items: center;
        gap: 15px;
        flex: 1;
        justify-content: flex-end;
    }
    .action-input {
        border: none;
        text-align: right;
        font-size: 0.95rem;
        outline: none;
        flex: 1;
        min-width: 30px;
        background: transparent;
        color: var(--text-color);
        padding-right: 5px;
    }
    .action-input::placeholder {
        color: #aaa;
    }
    /* Hide number input spinners that cause overlaps on mobile */
    input[type=number]::-webkit-inner-spin-button, 
    input[type=number]::-webkit-outer-spin-button { 
        -webkit-appearance: none; 
        appearance: none;
        margin: 0; 
    }
    input[type=number] {
        -moz-appearance: textfield;
        appearance: textfield;
    }
    .action-btn {
        background: none;
        border: none;
        color: var(--accent-color);
        font-weight: bold;
        cursor: pointer;
        padding: 5px;
        font-size: 0.9rem;
    }

    /* Cross selling scroll */
    .cs-scroll {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 5px;
        margin: 0 -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .cs-scroll::-webkit-scrollbar {
        display: none;
    }
    .cs-card {
        min-width: 140px;
        max-width: 140px;
        background: var(--card-bg);
        border: 1px solid var(--input-border, #f0f0f0);
        border-radius: 8px;
        padding: 10px;
        text-align: center;
        box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    }
    .cs-img {
        width: 100%;
        height: 100px;
        object-fit: cover;
        border-radius: 6px;
        margin-bottom: 8px;
    }
    .cs-title {
        font-size: 0.85rem;
        color: var(--text-color);
        margin-bottom: 5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .cs-price {
        color: var(--accent-color);
        font-weight: bold;
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    .cs-btn {
        background: var(--accent-color);
        color: white;
        border: none;
        width: 100%;
        padding: 6px 0;
        border-radius: 4px;
        font-size: 0.85rem;
        font-weight: bold;
        cursor: pointer;
    }

    /* Payment Details Box */
    .payment-details {
        font-size: 0.9rem;
        color: #757575;
    }
    .payment-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
    }
    .payment-row.total {
        font-weight: bold;
        color: var(--text-color);
        font-size: 1.1rem;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #f0f0f0;
    }

    /* Sticky Bottom Checkout Bar */
    .sticky-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        display: flex;
        justify-content: flex-end;
        align-items: center;
        z-index: 1000;
        height: 70px;
    }
    
    .bottom-total {
        margin-right: 15px;
        text-align: right;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .bottom-total-label {
        font-size: 0.9rem;
        color: var(--text-color);
    }
    
    .bottom-total-value {
        color: var(--accent-color);
        font-size: 1.3rem;
        font-weight: bold;
    }
    
    .btn-checkout {
        background: var(--accent-color);
        color: white;
        border: none;
        padding: 0 25px;
        height: 100%;
        font-weight: bold;
        font-size: 1rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        min-width: 140px;
    }

    @media (min-width: 768px) {
        .cart-container {
            max-width: 700px;
            margin: 20px auto;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            padding-bottom: 0;
        }
        .sticky-bottom-bar {
            position: sticky;
            bottom: 0;
            border-radius: 0 0 12px 12px;
        }
        body {
            background-color: var(--bg-color) !important;
        }
        main.container {
            padding: 0 15px;
        }
    }
    
    .empty-cart {
        text-align: center;
        padding: 60px 20px;
        background: var(--card-bg);
        margin-top: 10px;
    }
    
    .empty-cart i {
        font-size: 4rem;
        color: #eee;
        margin-bottom: 20px;
    }

    /* Helper classes para evitar problemas no linter da IDE */
    .hidden-el {
        display: none;
    }
    .msg-success-c {
        color: var(--success-color);
    }
    .msg-error-c {
        color: var(--error-color);
    }