.cart-content {
    padding: 8px;
}

.restaurant-floating-cart {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
}

.restaurant-floating-cart .md-fab {
    position: relative;
}

.restaurant-cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: #ff5252;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    pointer-events: none;
}

.empty-state {
    text-align: center;
    color: #616161;
    padding: 32px 0;
}

.empty-icon {
    font-size: 48px;
    opacity: .5;
}

.empty-title {
    margin: 8px 0 4px;
    font-weight: 700;
    color: #212121;
}

.empty-subtitle {
    margin: 0;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.cart-item-card {
    display: flex;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.cart-item-card:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.cart-card-content {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
        "thumb meta qty"
        "thumb meta subtotal";
    gap: 10px 14px;
    width: 100%;
}

.thumb {
    grid-area: thumb;
}

.thumb .item-image {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    position: relative;
    overflow: visible;
}

.thumb .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card.cart-card {
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: none !important;
    padding: 12px;
    display: flex;
    width: 100%;
    background: #fff;
}

.cart-items>md-card,
.product-card.cart-card {
    width: 100%;
    box-sizing: border-box;
}

.meta {
    grid-area: meta;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta .name {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.meta .notes {
    font-size: 13px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meta .price {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta .price .current-price {
    color: #d32f2f;
    font-weight: 700;
    font-size: 16px;
}

.meta .price .old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 13px;
}

.qty-controls {
    grid-area: qty;
    display: flex;
    align-items: center;
    justify-self: end;
    margin-right: -2rem;
}

.qty-input {
    width: 38px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
}

.line-total {
    grid-area: subtotal;
    justify-self: end;
    align-self: end;
    font-weight: 700;
    font-size: 15px;
}

.item-image {
    flex: 0 0 120px;
    height: 120px;
    overflow: hidden;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    padding: 10px 14px;
    gap: 6px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-name {
    font-weight: bold;
    color: #212121;
    font-size: 16px;
}

.item-description {
    font-size: 13px;
    color: #666;
}

.item-price {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    width: 100%;
}

.item-actions .qty-controls {
    margin-right: 8px;
}

.item-actions .item-price {
    margin: 0 8px;
}

.subtotal {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    text-align: right;
}


.trash-floating {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #f44336;
    color: #f44336;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.trash-floating:hover {
    background: #ffebee;
}

.trash-floating i {
    font-size: 16px;
}

.item-image {
    position: relative;
}

.summary {
    padding: 12px 8px;
    gap: 16px;
}

.summary .total-label {
    margin-right: 16px;
    font-weight: 700;
}

.summary .total-value {
    font-size: 20px;
    font-weight: 800;
}

.cart-toolbar {
    background: #424242 !important;
    color: #fff !important;
    min-height: 56px;
    flex-shrink: 0;
}

.cart-toolbar .md-title {
    color: #fff !important;
    padding-left: 0;
}

.restaurant-sidenav {
    display: flex;
    flex-direction: column;
}

.cart-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.cart-panel .cart-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.cart-footer {
    flex: 0 0 auto;
    position: relative;
    background: #424242;
    border-top: 1px solid #424242;
    padding: 12px 16px;
    gap: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    user-select: none;
    z-index: 100;
}

.footer-btn {
    width: 100%;
}

.cart-footer.is-disabled {
    opacity: .6;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 991px) {
    .restaurant-floating-cart {
        display: none;
    }

    .restaurant-sidenav {
        width: 100vw !important;
        max-width: 100vw !important;
        height: auto !important;
        top: 0 !important;
        bottom: 72px !important;
        position: fixed !important;
        z-index: 1040;
    }

    .cart-panel .cart-content {
        padding-bottom: 20px;
    }
}