/* Order Creator Styles */

.product-search-container {
    position: relative;
    margin-bottom: 16px;
}

.product-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--light);
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 4px;
}

.product-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--light);
    transition: background 0.2s;
}

.product-dropdown-item:last-child {
    border-bottom: none;
}

.product-dropdown-item:hover {
    background: var(--light);
}

.product-dropdown-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--light);
    flex-shrink: 0;
}

.product-dropdown-image-placeholder {
    width: 50px;
    height: 50px;
    background: var(--light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 10px;
    text-align: center;
    flex-shrink: 0;
}

.product-dropdown-info {
    flex: 1;
    min-width: 0;
}

.product-dropdown-name {
    font-weight: 600;
    color: var(--graphite);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-dropdown-price {
    font-size: 14px;
    color: var(--primary-red);
    font-weight: 600;
}

.dropdown-empty {
    padding: 20px;
    text-align: center;
    color: #64748b;
}

.selected-products-list {
    margin-top: 16px;
}

.empty-selection {
    padding: 20px;
    text-align: center;
    color: #64748b;
    border: 2px dashed var(--light);
    border-radius: 8px;
}

.selected-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--light);
    border-radius: 8px;
    margin-bottom: 8px;
}

.selected-product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--light);
    flex-shrink: 0;
}

.selected-product-image-placeholder {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 11px;
    text-align: center;
    flex-shrink: 0;
    border: 1px solid var(--light);
}

.selected-product-info {
    flex: 1;
    min-width: 0;
}

.selected-product-name {
    font-weight: 600;
    color: var(--graphite);
    margin-bottom: 4px;
}

.selected-product-price {
    font-size: 13px;
    color: #64748b;
}

.selected-product-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-input {
    width: 60px;
    padding: 6px 8px;
    border: 2px solid var(--light);
    border-radius: 6px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    text-align: center;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary-red);
}

.order-summary {
    margin-top: 24px;
    padding: 16px;
    background: var(--light);
    border-radius: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 2px solid var(--primary-red);
    font-size: 18px;
    font-weight: 700;
}

.summary-label {
    color: #64748b;
    font-weight: 600;
}

.summary-value {
    color: var(--graphite);
    font-weight: 700;
}

.summary-total .summary-value {
    color: var(--primary-red);
    font-size: 20px;
}

@media (max-width: 768px) {
    .product-dropdown {
        max-height: 300px;
    }

    .selected-product-item {
        flex-wrap: wrap;
    }

    .selected-product-controls {
        width: 100%;
        justify-content: flex-end;
    }
}

